Twelve Data MCP Server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
Connect Claude, ChatGPT, and other AI assistants to the Twelve Data financial API — real-time and historical prices, 60+ technical indicators, fundamentals, earnings, dividends, ETFs, company news, market movers, and more.
You need a Twelve Data account. Sign up at twelvedata.com.
There are two ways to use it. **Most people should use the cloud server (Option 1)** — there is nothing to install.
---
Option 1 — Use our cloud server (recommended)
Connect your AI assistant to our hosted server:
That's it. No installation, no API key to copy and paste. When you connect, a browser window opens and you log in with your Twelve Data account — your personal API key is linked automatically and stays tied to your account.
How to add it
**Claude (Desktop / Web) and ChatGPT** support custom connectors / MCP servers:
1. Open your assistant's **Connectors** (or **Integrations** / **MCP servers**) settings.
2. Add a new connector with the URL https://mcp.twelvedata.com/mcp.
3. When prompted, click **Connect / Log in** — a Twelve Data login page opens in your browser.
4. Authorize, and you're done. Ask things like *"What's the RSI for AAPL?"* or *"Show me TSLA's latest earnings."*
> The exact menu names differ between apps and versions, but the flow is always the same: add the URL, then log in via the browser popup.
The MCP host does not issue tokens. The connector URL is https://mcp.twelvedata.com/mcp. The client must follow that URL's protected-resource metadata to the authorization server named there. Do not point a connector at the host root (it answers 404), or at this host's /register or /.well-known/oauth-authorization-server.
Perplexity (custom remote connector)
Perplexity Pro, Max, and Enterprise users can add the hosted server as a custom remote connector. That is a per-account setup, not a listing in Perplexity's public curated directory.
1. In Perplexity, open **Account settings → Connectors → + Custom connector** and select **Remote**. On Enterprise, an admin may need to allow custom connectors first.
2. Set **Name** to Twelve Data and **MCP Server URL** to https://mcp.twelvedata.com/mcp.
3. Choose **OAuth** for authentication and **Streamable HTTP** for transport. Leave the Client ID and Client Secret blank so Perplexity can use dynamic client registration on the authorization server named in the server's protected-resource metadata.
4. Accept Perplexity's custom connector acknowledgement and click **Add**. Then click the Twelve Data connector card to start authentication, sign in to your Twelve Data account, and authorize access.
5. Once the connector is enabled, try these prompts:
- "Use Twelve Data to find the AAPL symbol."
- "Use Twelve Data to get the latest quote for AAPL, including price and volume."
- "Use Twelve Data to show the last five daily closing prices for AAPL."
- "Use Twelve Data to show AAPL RSI."
Each person signs in with their own Twelve Data account. If an Enterprise admin shares the connector, require individual authentication for each member. Do not paste a Twelve Data API key into the connector's API Key authentication field.
If the OAuth window is blocked, login fails, or tools stop after idle time, open the Twelve Data connector, disable it, enable it again, and sign in. Reconnect this way rather than switching the connector to API Key auth. Confirm the URL is exactly https://mcp.twelvedata.com/mcp with no trailing slash, and that the Twelve Data plan includes the requested data. See Perplexity's custom remote connector guide for the current settings screens.