mcp · twelvedata — Claude Code MCP server: what it does, how to install
Streams live stock, crypto, and forex market feeds to your AI assistant. Useful for checking technical indicators, corporate earnings, and recent trends in chat.
claude mcp add --transport http mcp https://mcp.twelvedata.com/mcpWhat mcp does
The server links financial market data from Twelve Data with your assistant. It exposes real-time rates for equities, foreign exchange pairs, and digital assets. The tool also pulls price history, corporate earnings, dividend data, market headlines, and over 60 technical indicators.
Setup comes in two variants. The hosted endpoint at https://mcp.twelvedata.com/mcp works without local packages. It authenticates through a browser prompt via OAuth, linking your personal key automatically. The self-hosted route requires Python 3.10 or newer and a local .env file holding TWELVE_DATA_API_KEY. It communicates over standard I/O or an HTTP server on port 8000. Docker is supported too.
By default, the local HTTP process binds to 0.0.0.0 without access control, which risks exposing your credential across your network. Setting MCP_HOST=127.0.0.1 keeps the traffic strictly local.
What it helps with
- Fetch live market quotes for equities, forex pairs, and crypto
- Calculate technical indicators such as RSI directly in your prompt
- Check corporate earnings releases and dividend schedules
- Track current market headlines and top asset movers
Example prompts for the agent
- Use Twelve Data to get the latest quote and volume for AAPL.
- Show me TSLA RSI using Twelve Data.
- Check recent earnings and news for NVDA.
How to install mcp
Platform CLI: remote server
claude mcp add --transport http mcp https://mcp.twelvedata.com/mcpPlatform CLI: remote server
codex mcp add twelvedata-mcp --url https://mcp.twelvedata.com/mcpConfig file
{
"mcpServers": {
"twelvedata-mcp": {
"url": "https://mcp.twelvedata.com/mcp"
}
}
}Config file
{
"servers": {
"twelvedata-mcp": {
"type": "http",
"url": "https://mcp.twelvedata.com/mcp"
}
}
}Platform CLI: remote server
gemini mcp add -t http twelvedata-mcp https://mcp.twelvedata.com/mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about mcp
How do I install mcp in Claude Code?
Run claude mcp add --transport http mcp https://mcp.twelvedata.com/mcp in your terminal and finish signing in via the browser popup.
What does Twelve Data MCP do?
It connects your coding assistant to market data, including live and past prices for stocks, crypto, forex, plus earnings reports and 60+ technical indicators.
How does cloud connection differ from self-hosting?
The cloud endpoint at https://mcp.twelvedata.com/mcp relies on browser OAuth without token pasting. Running locally needs Python 3.10+ and a TWELVE_DATA_API_KEY stored in .env.
Similar MCP servers
Everything for Finance and business →mcp by other authors comes first.