DocsGPT icon indicating copy to clipboard operation
DocsGPT copied to clipboard

🚀 Feature: Twelve Data MCP connector preset

Open dartpain opened this issue 2 months ago • 4 comments

🔖 Feature description

Add Twelve Data to the Connectors catalog as a remote MCP preset, so agents can answer market questions with live data after one OAuth sign-in. That covers quotes and price history for stocks in 90+ countries, forex, crypto, ETFs and funds, technical indicators, and fundamentals.

Twelve Data runs a hosted MCP server at https://mcp.twelvedata.com/mcp. It answers an unauthenticated request with a 401 that points to OAuth metadata, and its authorization server supports dynamic client registration, which is exactly what the preset list requires (see the inclusion rules at the top of docsgpt/connectors/presets/mcp.yaml). Users don't need to register an app or paste an API key.

🎤 Why is this feature needed?

People ask agents things like "how did NVDA do this week?", "compare the 1-year performance of AAPL and MSFT" or "what's the RSI on EUR/USD?". DocsGPT has no market-data connector today. Twelve Data has a free plan and global coverage, so it's a good default.

✌️ How do you aim to achieve this?

This is a small, self-contained change. No Python code is needed beyond the catalog entry:

  1. Add an entry to docsgpt/connectors/presets/mcp.yaml, following the existing ones (e.g. Sentry or Stripe):
    • key: mcp:twelvedata, name: Twelve Data, a one-line description
    • icon: twelvedata, category: business
    • mcp_url: https://mcp.twelvedata.com/mcp, auth_kind: mcp_oauth
    • capabilities: most likely [read]; confirm with tools/list
    • docs_url: https://twelvedata.com/docs/mcp
  2. Add the icon at frontend/src/assets/connectors/twelvedata.svg (use Twelve Data's official brand mark).
  3. Add the description key settings.connectors.descriptions.mcp_twelvedata to all seven locale files in frontend/src/locale/ (de en es jp ru zh zh-TW).
  4. Add Twelve Data to the preset lists in docs/content/Sources/Connectors/index.mdx (the "MCP presets" section) and docs/content/Tools/mcp-tools.mdx.
  5. If a test lists or validates the presets (see tests/connectors/test_catalog.py), update it.

Before choosing capabilities, sign in once and look at the server's tools/list to see which tools read and which ones write.

Notes for Twelve Data:

  • Sign-in: the hosted server only accepts OAuth sign-in, not API keys.
  • Free plan limits: the free Basic plan is enough to test, with 800 API credits a day and 8 a minute. Some fundamentals endpoints may need a paid plan; note in the PR which tools worked on the free plan.

Other presets are being added in parallel this month and touch the same YAML and locale files, so expect to rebase on main before merge.

Acceptance criteria

  • Twelve Data appears on the Connectors page with its icon and description in every locale.
  • Connecting it opens Twelve Data's OAuth sign-in, and the connection then works as an agent tool. For example, "what was AAPL's closing price yesterday?" returns real data.
  • ruff check ., python -m pytest tests/connectors and cd frontend && npm run lint pass.

🔄️ Additional Information

Please attach a screenshot of the Twelve Data card on the Connectors page and of an agent answering a market question with it. UI work follows frontend/DESIGN.md. Vercel (#2874) is a similar issue, so it's a useful reference.

dartpain avatar Oct 02 '26 14:10 dartpain

Hi, could you please assign this issue to me? I can work on it. Thanks!

Soumava-221B avatar Oct 03 '26 03:10 Soumava-221B

@Soumava-221B, you are assigned.

  • Open a PR or post progress here within 14 days; otherwise, the issue may be made available to others.
  • Read CONTRIBUTING.md and frontend/DESIGN.md before starting.
  • Include a screenshot or short recording of the change in your PR.

Automated triage. A maintainer will follow up.

arc53-machine avatar Oct 03 '26 03:10 arc53-machine

dear maintenaner if this issue is available to work on, i would like to get it assigned.

bhushan4work avatar Oct 12 '26 09:10 bhushan4work

Hi @bhushan4work i am working on this, will push a PR today

Soumava-221B avatar Oct 12 '26 09:10 Soumava-221B