https://api.stockcontext.com/mcp and the 21 public stockcontext_* tools load. Auth is the same X-API-Key header REST uses. This page gets you from zero to a verified stockcontext_snapshot call.
Get a key
Create one at stockcontext.com/dashboard/keys. The raw secret (prefixsctx_) is shown once at creation. Export it so the client config below can reference it:Add the server
In Claude Code, register the hosted server over HTTP:mcp.json
Smoke test
Confirm the tools loaded, then callstockcontext_snapshot for AAPL:{ "data": ... } envelope unchanged, as text JSON, structured content, or both, depending on the client:stockcontext_snapshot AAPL (trimmed)
freshness, as_of, market_status, and cache_age_seconds (int; 0 when freshly computed). Trimmed here; the live response also returns performance, range_52w, and a fundamentals_quick block where each headline multiple (pe_ttm, ps_ttm, pb, ev_ebitda_ttm) is a {value, vs_5y} object, not a bare float. See snapshot for the full payload.What failure looks like
A REST error comes back in the{ "error": ... } envelope, which most clients render as a tool-error string [CODE] message (retryable: ...). Two you should expect:PLAN_UPGRADE_REQUIRED is an access result, not an outage. The full set of codes lives in error codes.Troubleshooting
Two failure modes that look similar but have different causes:- No tools load at all. The client never reached or never authenticated with the server. Check the URL is exactly
https://api.stockcontext.com/mcp, the transport is HTTP (not stdio), and theX-API-Keyheader is actually being sent. At the wire, a missing or invalid key is rejected during the handshake with a plain HTTP401carrying the REST error envelope, and most clients surface that as “no tools” or a connection error, not as a tool failure. - Tools load but a call errors. The connection and key work; the plan or arguments do not. Tool failures render as the bracket string:
[PLAN_UPGRADE_REQUIRED] This endpoint requires Starter or Builder. … (retryable: false)means a Free key called a paid tool.
stockcontext_search, stockcontext_coverage, stockcontext_snapshot, and stockcontext_valuation are available. See plans and limits for what each plan includes.
Custom clients
Writing your own client instead of using a turnkey one? The server speaks standard MCP over Streamable HTTP: POST JSON-RPC tohttps://api.stockcontext.com/mcp with your X-API-Key header plus Accept: application/json, text/event-stream, run the usual initialize → notifications/initialized handshake, then tools/list and tools/call. Nothing here is StockContext-specific: any spec-compliant MCP client implementation works unchanged.
Tools reference
All 21 public tools, their REST routes, and argument conventions.