# Context7: an MCP server we run in production

Canonical: https://scalably.io/mcp/context7-mcp
Source: https://github.com/upstash/context7
Registry: not published to the MCP registry
Provenance: third-party server, pinned at hosted, verified 2026-10-02.
Integrity: no independent hash is published for this third-party listing; the raw endpoint at https://scalably.io/mcp/context7-mcp.md mirrors this representation byte for byte
This is the machine-readable representation of the page at the canonical URL. Same facts, denser format.

## Direct answer
Current library documentation before any version-sensitive claim or dependency change.

## Install
- Claude Code: `claude mcp add --transport http context7 https://mcp.context7.com/mcp`
- Codex: `codex mcp add context7 --url https://mcp.context7.com/mcp`
- Claude Desktop: not available for this server.

## Environment
No environment variables.

## Tools
| Tool | Description |
|---|---|
| `resolve-library-id` | Resolves a library name into a Context7 library ID, ranked against the user's question. |
| `query-docs` | Retrieves documentation for a library ID, focused on the given query. |

## Setup
- API key: `claude mcp add --scope user --header "Authorization: Bearer YOUR_API_KEY" --transport http context7 https://mcp.context7.com/mcp`.
- OAuth instead: use `https://mcp.context7.com/mcp/oauth`, then `/mcp` in Claude Code and choose Authenticate. OAuth works over HTTP only.
- Local stdio alternative: `claude mcp add --scope user context7 -- npx -y @upstash/context7-mcp --api-key YOUR_API_KEY`.
- One-command setup: `npx ctx7 setup` (Node.js 18+) signs in, generates a key and installs the skill.
- A free key comes from context7.com/dashboard.


## Limits
- Free plan: 1,000 API calls a month, then blocked except for 20 bonus calls a day. Pro is $10 per seat a month with 2,000 calls per seat, then $5 per 1,000.
- Private repositories are Pro and Enterprise only.
- Library docs are community-contributed; Context7 doesn't guarantee their accuracy, so verify version-sensitive claims against the vendor too.

Sources: github.com/upstash/context7 README, context7.com/docs (all-clients, OAuth), context7.com/plans.


## Reliability
- CI: not applicable, this is a third-party project we do not control.
- Pinned at hosted
- Verified 2026-10-02
- We run this server in production, pinned at the exact version, with the install command derived mechanically from that pin so it can be re-verified against the published package.

## Related
- Read more: [Claude Code plugins: install, build, and distribute](https://scalably.io/blog/claude-code-plugins), [Claude Code MCP: how to add an MCP server](https://scalably.io/blog/claude-code-mcp)
