# Twelvedata [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/pipeworx-io/mcp-twelvedata  
**GitHub Stars:** 0  
**npm Downloads (last month):** 592  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/twelvedata

## Description
Twelve Data: stocks/ETF/forex/crypto time series, quotes, dividends, splits, earnings.

## Tools
Capabilities this server exposes over MCP:

- **time_series** — Twelve Data OHLC time series for a stock, forex, crypto, or ETF symbol. Requires symbol and interval (e.g. '1min', '1h', '1day'). Returns timestamped open/high/low/close + volume.
- **quote** — Twelve Data real-time quote snapshot for a symbol: open, high, low, close, volume, 52-week range, exchange, currency. Use for a full current-day market snapshot.
- **price** — Twelve Data latest trade price for a single symbol (stock, forex, crypto, ETF). Returns a single numeric price field. Lightest endpoint for current-price lookups.
- **eod** — Twelve Data end-of-day closing quote for a symbol. Returns the last closing price, volume, and date. Use for daily settlement prices rather than intraday data.
- **exchange_rate** — Twelve Data live forex exchange rate for a currency pair symbol (e.g. 'EUR/USD'). Optional dp (decimal places) and timezone. Returns rate, timestamp, and pair identifiers.
- **currency_conversion** — Twelve Data real-time currency conversion: pass a forex pair symbol (e.g. 'EUR/USD') and an amount to get the converted value at the current exchange rate.
- **stocks** — Twelve Data reference list of all supported stock symbols with exchange and country metadata. Use to discover or validate tickers before querying price endpoints.
- **forex_pairs** — Twelve Data reference list of all supported forex currency pairs (e.g. EUR/USD). Use to enumerate or validate pair symbols before querying exchange_rate or time_series.
- **cryptocurrencies** — Twelve Data reference list of all supported cryptocurrency symbols with exchange metadata. Use to discover or validate crypto tickers before querying price endpoints.
- **etfs** — Twelve Data reference list of supported ETF symbols (64,000+ listings worldwide) with exchange and country metadata — paged, default 200 rows, `count` is the total matched. Filter by symbol (e.g. "SPY"), country or exchange. Use to discover or validate ETF tickers before querying price endpoints. A stock ticker (e.g. "AAPL") is not an ETF and returns an empty list with `empty_reason: wrong_instrument_class` — use the stocks tool for those.
- **indices** — Twelve Data reference list of supported market index symbols with exchange metadata — about 1,300 NON-US indices (e.g. N225 Nikkei 225, 000001 SSE Composite, NSEI Nifty 50), paged, default 200 rows. Filter by country (e.g. "Japan", "India", "China"), exchange or symbol. US indices (SPX, DJI, IXIC, NDX, VIX) are NOT in Twelve Data's reference list and quoting them requires a Grow-or-higher Twelve Data key via _apiKey — a US filter here returns that refusal, not an empty list. Use to discover or validate index tickers before querying time_series.
- **earnings** — Twelve Data earnings history and upcoming earnings dates for a stock symbol: EPS estimate, EPS actual, surprise percentage, and report date per quarter.
- **earnings_calendar** — Twelve Data broad earnings calendar — upcoming and recent earnings announcements across all covered symbols. Returns symbol, date, EPS estimate, and time of day (before/after market).
- **dividends** — Twelve Data historical dividends for a stock / ETF symbol: ex-date, amount, frequency. Use for income analysis and dividend-capture strategies on Twelve-Data-covered symbols.
- **splits** — Twelve Data historical stock splits for a symbol: ratio, date. Use to adjust historical Twelve Data prices across split events.
- **profile** — Twelve Data company profile for a stock symbol: name, sector, industry, employees, CEO, description, website, address, and exchange listing details.
- **technical_indicator** — Compute a technical indicator time series for a stock/forex/crypto symbol via Twelve Data — RSI, SMA, EMA, MACD, Bollinger Bands (bbands), ADX, ATR, Stochastic, CCI, and more. PREFER for "RSI(14) of AAPL", "50-day and 200-day SMA of TSLA", "MACD for BTC/USD", "Bollinger Bands of SPY". This is the right tool for ANY "RSI / SMA / EMA / MACD / moving average / technical indicator for <ticker>" question. Computes ONE indicator per call: if several are requested (e.g. "RSI and the 50-day and 200-day SMA"), call this once per indicator starting with the first — do NOT decline just because multiple indicators are asked for. Returns dated indicator values.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "twelvedata": {
    "command": "npx",
    "args": ["-y","@pipeworx/mcp-twelvedata"],
    "env": {
      "PLATFORM_TWELVEDATA_KEY": "",
      "PIPEWORX_API_KEY": "",
      "PIPEWORX_META_TOOLS": "",
      "NODE_USE_ENV_PROXY": ""
    }
  }
}
```

**Requires environment variables:** `PLATFORM_TWELVEDATA_KEY`, `PIPEWORX_API_KEY`, `PIPEWORX_META_TOOLS`, `NODE_USE_ENV_PROXY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Twelvedata does

Twelvedata exposes Twelve Data market-data operations through the Model Context Protocol. It covers stocks, ETFs, forex pairs, cryptocurrencies, and supported market indices. The available data includes intraday and daily OHLC series, quote snapshots, latest trade prices, end-of-day closes, foreign-exchange rates, currency conversions, company profiles, earnings, dividends, and split history.

Reference tools help an agent find valid symbols before requesting data. Stock, forex-pair, cryptocurrency, ETF, and index lookups can return exchange, country, or other instrument metadata. ETF results are paged and default to 200 rows; index results are also paged and focus on roughly 1,300 non-US indices.

## How it works

A remote MCP client can connect to `https://gateway.pipeworx.io/twelvedata/mcp`. The endpoint exposes the Twelvedata tool pack together with shared Pipeworx gateway tools. `ask_pipeworx` can route plain-language questions across the wider catalog, while the direct tools handle Twelve Data requests explicitly.

The same service can be called over HTTP. For example, a POST request to `/v1/tools/time_series` with a symbol and interval retrieves an OHLC series. A local npm package, `@pipeworx/mcp-twelvedata`, acts as a stdio bridge and forwards MCP calls to the hosted endpoint, so it still needs network access and has no offline mode.

## Setup and configuration

Add the hosted URL to an MCP client, or configure the npm bridge with `npx -y @pipeworx/mcp-twelvedata`. Anonymous hosted calls are available for initial use. The local bridge allows up to 50 calls per day without a key; a Pipeworx account key raises that limit to 200 calls per day and is passed as a Bearer token.

Authentication can also use the platform variable `PLATFORM_TWELVEDATA_KEY`, or an `_apiKey` argument for supported requests. Set `PIPEWORX_META_TOOLS=1` if the local bridge should list the shared gateway tools in addition to the Twelvedata tools. Requests behind an HTTPS proxy may require `NODE_USE_ENV_PROXY=1` on Node versions that support that option.

## Tools and capabilities

- `time_series` returns timestamped open, high, low, close, and volume values for a requested interval.
- `quote`, `price`, and `eod` provide full snapshots, lightweight latest prices, or daily closing data.
- `exchange_rate` and `currency_conversion` handle live forex rates and amount conversions.
- `stocks`, `forex_pairs`, `cryptocurrencies`, `etfs`, and `indices` discover or validate instrument symbols.
- `earnings` and `earnings_calendar` provide company-specific or broad earnings information.
- `dividends`, `splits`, and `profile` support income analysis, price-history adjustments, and company research.
- `technical_indicator` computes one indicator per call, including RSI, SMA, EMA, MACD, Bollinger Bands, ADX, ATR, Stochastic, and CCI.

## Limitations and notes

Twelve Data coverage and plan limits apply to the returned data. US indices such as SPX, DJI, IXIC, NDX, and VIX are not in the reference index list; quoting them requires a Grow-or-higher Twelve Data key supplied through `_apiKey`. Passing a stock ticker to the ETF lookup returns a wrong-instrument-class result rather than ETF data. The gateway and local bridge both depend on network connectivity, and the local bridge's default tool list can include shared meta-tools when configured to do so.

_Full upstream README: https://allmcps.com/mcp/twelvedata/readme_

