Skip to main content
StockContext has a hosted MCP endpoint:
Use the Streamable HTTP transport. Authenticate with the same API key you use for the REST API, sent as a bearer token:
Create a key on the dashboard keys page: https://stockcontext.com/dashboard/keys.
Keep the key server-side. Do not paste it into public repos, client bundles, logs, screenshots, or prompts.

Claude Code

claude.ai and Claude Desktop

Add a custom connector with: If the client asks for an MCP server URL only, use https://stockcontext.com/mcp and add the bearer header in the connector’s authentication or advanced headers section.

Cursor and generic MCP JSON

Use a remote HTTP MCP server entry:
For clients that only support local stdio MCP servers, use the bridge recommended by that client and configure it to send the same Authorization: Bearer <key> header to https://stockcontext.com/mcp.

Tools

Tool surface: 10 data tools + stock_flag, a feedback endpoint (not a data tool, not exposed over MCP). The MCP server exposes only those data tools and forwards each call to schema 2. The schema parameter may be omitted or sent; MCP always serves schema 2. Tool results are the raw JSON response body as text. Non-200 API responses are passed through too, because they are typed envelopes the agent should read.

Refusals

A refused value is a first-class answer. In schema 2, unprovable values and unavailable blocks use typed unavailable / reason fields with recovery guidance. Do not retry a refusal hoping for a number; read the reason, report it, or follow the recovery action when one is provided. For the full request parameters, see the API reference and the Schema 2 docs.