Twelve Data

v1.0.0Finance & Fintechstable

Twelve Data MCP (Model Context Protocol) Server provides seamless, real-time access to financial market data via WebSocket, enabling reliable streaming of price quotes, market metrics, and events directly into your applications.

claudemcpmcp-servertwelvedata
Share:
66
Stars
0
Downloads
0
Weekly
0/5

What is Twelve Data?

Twelve Data is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to twelve data mcp (model context protocol) server provides seamless, real-time access to financial market data via websocket, enabling reliable streaming of price quotes, market metrics, and events dire...

Twelve Data MCP (Model Context Protocol) Server provides seamless, real-time access to financial market data via WebSocket, enabling reliable streaming of price quotes, market metrics, and events directly into your applications.

This server falls under the Finance & Fintech category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Twelve Data MCP (Model Context Protocol) Server provides sea

Use Cases

Stream real-time financial market data via WebSocket.
Access price quotes and market metrics.
Receive market events and price updates reliably.
twelvedata

Maintainer

LicenseMIT License
Languagepython
Versionv1.0.0
UpdatedMay 15, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx twelve-data-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Twelve Data

The Twelve Data MCP Server connects AI assistants to Twelve Data's financial market data API, giving them real-time and historical access to stock quotes, forex rates, cryptocurrency prices, ETFs, mutual funds, 100+ technical indicators, and fundamental financial data. Its primary feature is a U-tool — an AI-powered universal router that uses GPT-4o to translate natural language requests into the correct Twelve Data API endpoint and parameters, making it possible to ask complex market questions in plain English. Traders, analysts, and developers use it to embed live financial intelligence directly into their AI-assisted workflows.

Prerequisites

  • Python 3.9 or later with pip or uv installed
  • A free or paid Twelve Data API key from twelvedata.com
  • An OpenAI API key (required for the U-tool natural language routing feature)
  • An MCP-compatible client such as Claude Desktop or VS Code with MCP support
1

Install the package

Install mcp-server-twelve-data using uv (recommended) or pip.

# Using uv (recommended)
uvx mcp-server-twelve-data --help

# Using pip
pip install mcp-server-twelve-data
2

Obtain your API keys

Sign up at twelvedata.com for a Twelve Data API key. Also obtain an OpenAI API key from platform.openai.com — it is required by the U-tool for natural language parameter generation.

3

Test the server from the command line

Run the server manually to confirm both API keys are accepted. Replace the placeholders with your real keys.

uvx mcp-server-twelve-data -k YOUR_TWELVE_DATA_API_KEY -u YOUR_OPENAI_API_KEY
4

Add to your MCP client configuration

Edit your MCP client config file and add the twelve-data entry. Pass your API keys as command-line arguments.

{
  "mcpServers": {
    "twelvedata": {
      "command": "uvx",
      "args": [
        "mcp-server-twelve-data",
        "-k", "YOUR_TWELVE_DATA_API_KEY",
        "-u", "YOUR_OPENAI_API_KEY"
      ]
    }
  }
}
5

Restart your MCP client and verify

Fully restart the client so it launches the new server. Ask a financial question to confirm the connection to Twelve Data is live.

Twelve Data Examples

Client configuration

Configuration block for Claude Desktop's claude_desktop_config.json using uvx.

{
  "mcpServers": {
    "twelvedata": {
      "command": "uvx",
      "args": [
        "mcp-server-twelve-data",
        "-k", "YOUR_TWELVE_DATA_API_KEY",
        "-u", "YOUR_OPENAI_API_KEY"
      ]
    }
  }
}

Prompts to try

The U-tool routes these natural language queries to the right Twelve Data endpoints automatically.

- "Show me Apple's stock price and 52-week range."
- "Calculate the 14-day RSI for Bitcoin."
- "Get Tesla's revenue growth and price-to-earnings ratio."
- "What are the top-gaining S&P 500 stocks today?"
- "Plot EUR/USD exchange rate over the last 30 days."

Troubleshooting Twelve Data

The server starts but returns 'Invalid API key' errors.

Double-check that your Twelve Data API key is correct and has not exceeded its plan's rate limit. Free-tier keys are limited to 8 requests per minute.

The U-tool fails to route requests or returns 'OpenAI error'.

Verify your OpenAI API key is valid and has available credits. The U-tool requires GPT-4o access, so ensure your account has access to that model.

uvx command not found.

Install uv with: curl -LsSf https://astral.sh/uv/install.sh | sh — then restart your terminal. Alternatively use pip install mcp-server-twelve-data and replace 'uvx' with 'python -m mcp_server_twelve_data' in the config.

Frequently Asked Questions about Twelve Data

What is Twelve Data?

Twelve Data is a Model Context Protocol (MCP) server that twelve data mcp (model context protocol) server provides seamless, real-time access to financial market data via websocket, enabling reliable streaming of price quotes, market metrics, and events directly into your applications. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Twelve Data?

Follow the installation instructions on the Twelve Data GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Twelve Data?

Twelve Data works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Twelve Data free to use?

Yes, Twelve Data is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Finance & Fintech MCP Servers

Explore all finance & fintech servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "twelve-data-mcp-server": { "command": "npx", "args": ["-y", "twelve-data-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Twelve Data?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides