Using StockFit with AI

StockFit supports the Model Context Protocol (MCP) with OAuth 2.1 authentication. Sign in once in a browser — your AI client handles tokens automatically. No API keys to copy or rotate.

1

Add to your MCP config

OAuth 2.1

Same config for everyone — no API key needed. Your client opens a browser the first time you connect, you sign in, and tokens refresh automatically after that.

mcp.json
{
  "mcpServers": {
    "stockfit": {
      "type": "http",
      "url": "https://api.stockfit.io/mcp"
    }
  }
}
Static API key (legacy)For scripted use, CI, or older MCP clients without OAuth

Replace YOUR_API_KEY with the token from your dashboard. This path uses mcp-remote to bridge HTTP → stdio for clients that don't yet support OAuth or HTTP transport directly.

mcp.json (legacy)
{
  "mcpServers": {
    "stockfit": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://api.stockfit.io/mcp",
        "--header",
        "Authorization: Bearer YOUR_API_KEY"
      ]
    }
  }
}
Get a Free StockFit Account

No credit card. The OAuth flow uses your StockFit login.

Using StockFit with AI | MCP Integration | StockFit API