Twelve Data

The data layer for financial AI.

Real-time and historical market data for stocks, forex, crypto, ETFs, and fundamentals. 100k+ instruments, one API, one MCP server. Built for the people training models, running backtests, and shipping agents.

We ship the data. You bring the model. No proprietary models on this page yet, just the raw material and the tooling to plug it in.

Live demo + full app · API docs · Free API key


Featured dataset

twelvedata/financial-world-model

A reproducible financial ML dataset built on the Twelve Data API. ~50 large-cap stocks plus macro tickers (SPY, VIX, TLT, sector ETFs) across three timeframes: 1min, 1h, 1day.

Three output formats, one pipeline

Built for research you can trust

from datasets import load_dataset

ds = load_dataset("twelvedata/financial-world-model")

For LLM fine-tuning on market data, time-series foundation models, and world-model / predictive-dynamics research.


MCP server

Market data as tools for Claude, Cursor, and any MCP client. The centerpiece is u-tool, an AI-powered universal router over 100+ Twelve Data endpoints. Describe what you want in English; u-tool uses vector search and GPT-4o to pick the endpoint, fill in parameters, and call it.

One tool, the entire Twelve Data ecosystem.

Connect it to Claude Desktop or any MCP client

{
  "mcpServers": {
    "twelvedata": {
      "command": "npx",
      "args": [
        "mcp-remote", "https://mcp.twelvedata.com/mcp",
        "--header", "Authorization:${AUTH_HEADER}",
        "--header", "X-OpenAPI-Key:${OPENAI_API_KEY}"
      ],
      "env": {
        "AUTH_HEADER": "apikey YOUR_TWELVE_DATA_API_KEY",
        "OPENAI_API_KEY": "YOUR_OPENAI_API_KEY"
      }
    }
  }
}

Things an agent can now answer

Install options and source: github.com/twelvedata/mcp


API quickstart

If you're not using MCP, the REST API is one call away.

import requests

r = requests.get(
    "https://api.twelvedata.com/time_series",
    params={"symbol": "AAPL", "interval": "1day", "apikey": "YOUR_KEY"},
)
print(r.json())

Full reference: twelvedata.com/docs


Use cases


Roadmap

More asset coverage and datasets are on the way. Reference notebooks and baseline models will follow. Contributions and feedback welcome — open an issue on the MCP repo or the dataset page.


twelvedata.com · API docs · Dataset · MCP server · GitHub · X