Integrations / Gemini CLI

Market data for Gemini CLI: add the TradingData MCP server

Gemini CLI reads MCP servers from its settings file and can discover TradingData's OAuth configuration on its own; an API key header works too.

Steps

  1. 1Add the server to ~/.gemini/settings.json with one of the snippets below.
  2. 2Restart Gemini CLI and run /mcp to confirm the tools are listed.
  3. 3With oauth enabled, the first call opens your browser to approve access.
~/.gemini/settings.json (OAuth)
{
  "mcpServers": {
    "tradingdata": {
      "httpUrl": "https://mcp.tradingdata.io",
      "oauth": { "enabled": true }
    }
  }
}
~/.gemini/settings.json (API key)
{
  "mcpServers": {
    "tradingdata": {
      "httpUrl": "https://mcp.tradingdata.io",
      "headers": { "Authorization": "Bearer td_your_api_key" }
    }
  }
}

Replace td_your_api_key with a key from your dashboard (API keys). Each key can be revoked on its own.

What Gemini CLI can answer with it

  • How are markets doing today?
  • Compare Nvidia and AMD gross margins over six quarters.
  • What did Meta guide for next quarter?
  • Which SPY strikes carry the most open interest this week?
  • Are insiders selling Tesla?
  • Is the Bitcoin perp market crowded long?

All 48 tools are listed on the tools page.

Questions

Does it work with the Gemini API as well?
Yes. Any SDK that supports MCP tools can point at the same URL with an API key as the authorization header.
What data does the agent get?
Quotes and history for stocks, ETFs, indices, futures, FX and crypto; option chains with greeks; SEC filings, financial statements, insider trades, short interest, analyst estimates, segment financials and earnings releases; dividends, institutional holders and the earnings calendar; macro series; crypto perpetuals, options, DeFi and on-chain metrics. 30 tools, each described so the model picks the right one.
Does it cost anything?
No. Every account is free, with a fair-use limit of tool calls per minute and no monthly cap. No card is asked for.

Other clients