Server URL:
https://mcp.context.dev/mcpUse the exact URL, including /mcp. Don’t put an API key in the URL.Let your agent connect it
Paste this into the coding agent you want to connect:Agent prompt
Connect your client
- Codex
- Claude Code
- Gemini CLI
- Cursor
- VS Code
- Windsurf
- OpenCode
- Hermes
- Cline
- Amp
- Claude Desktop
- Other clients
Add the hosted server. Codex detects OAuth and opens browser sign-in:If sign-in does not start, run Confirm it is configured:In the Codex terminal UI, use
codex mcp login context; add --no-browser to print the URL instead. To use the server in one trusted project only, add this to .codex/config.toml in that project instead, then run codex mcp login context there:/mcp to inspect active servers. The ChatGPT desktop app, Codex CLI, and Codex IDE extension share the same host configuration; you can also add a Streamable HTTP server from Settings → MCP servers and select Authenticate.See the official Codex MCP documentation for current client controls and project-scoped configuration.For ChatGPT on the web, use the Context.dev plugin.Test the connection
Start a new conversation and ask:
Use the connected Context.dev server to retrieve the live Brand profile for stripe.com. Tell me which tool you called and don’t answer from memory.
A working connection shows a Context.dev tool call and live output. Clients may prefix tool names with the server name, so check the server and operation rather than one exact display name.
Authentication and usage
The server uses the OAuth authorization-code flow with PKCE and two scopes:api.read: reading, scraping, enrichment, and batch and monitor data.api.write: anything that starts work or changes account state, such as batches, monitors, webhook retries, file parsing, feedback, and scrape clicks.
Authorization: Bearer <key> or X-API-Key: <key>. Use a header, not the URL, because URLs end up in configuration files, logs, and history.
If you belong to more than one organization, choose which one the connection uses on the consent screen; your default organization is preselected. Sign-in creates an API key named Context MCP in that organization, and tool calls use its credits. To revoke access, remove the connection in your client and disable that key on the API keys page.
Each tool call runs the matching API request; see credits for what each operation costs.
Troubleshooting
This server runs Context.dev API tools. To search this documentation from an agent, use the separate docs MCP server at
https://docs.context.dev/mcp.
Credit and entitlement errors
402 USAGE_EXCEEDED becomes a tool execution error, with isError: true, a factual explanation in text content, and structured details in structuredContent. Both surfaces include the billing settings URL, known credit and refill details, and the request ID. A credit failure does not become an HTTP authentication failure at the MCP transport.
Inspect the account with get-usage, which costs no credits and works at zero balance. Wait until the account can cover the operation before retrying it. Reconnecting and token refresh do not restore credits. A missing feature entitlement returns 403 PAID_PLAN_REQUIRED; temporary throttling returns 429 RATE_LIMITED with its retry guidance. Authentication failures require sign-in recovery.
Concurrency failures expose structured tool errors with error_code: "RATE_LIMITED", error_data.limit_type: "concurrency", the known limit and remaining slots, retry delay, and retry_condition: "available_concurrency". The MCP includes values from error_data and rate-limit headers. Wait for capacity or review subscription limits; for per-minute throttling, follow Retry-After.
Recovery explains the actual account limitation and links to existing subscription settings. It does not automatically initiate checkout or instruct the model to recommend a purchase. Account fields describe facts and do not force ChatGPT recommendations.