Context7
Rank #3io.github.upstash/context7
Up-to-date code docs for any prompt
What you can do with Context7
Context7 pulls up-to-date, version-specific library documentation and code examples straight from the source into the model's context, so generated code stops relying on stale training data or invented APIs.
- Look up current usage of a library or API
- Generate code against a specific framework version
- Fetch setup or configuration steps for a service
- Target a known library by its Context7 ID
What Context7 can and cannot do
Two tools: resolve-library-id turns a library name into a Context7-compatible ID, and query-docs fetches documentation for that ID against a query. The same index is also reachable through the ctx7 CLI (ctx7 library, ctx7 docs) when the agent uses skills instead of MCP.
- resolve-library-id
- query-docs
- Library projects are community-contributed; Context7 does not guarantee their accuracy, completeness or security
- Only the MCP server is open source; the API backend, parser and crawler are private
- Without an API key the service applies lower rate limits
What you need before using Context7
The registry listing declares no required environment variables or authentication. This is declared metadata, not a verified install — the repository README is the authority.
MCP Toplist probed the public endpoint on Oct 5, 2026 and could not complete the MCP handshake (jsonrpc error). Requirements remain unverified.
Declared by Glama, last synced Oct 16, 2026. Not independently verified by MCP Toplist.
- Runtime
- None for the remote server; Node.js 18+ for npx ctx7 setup or the @upstash/context7-mcp package
- Credentials
- API key recommended (free, from context7.com/dashboard); npx ctx7 setup obtains one via OAuth
- Payment
- Free API key raises rate limits; the README does not describe paid tiers
- CONTEXT7_API_KEY · optional
Hosted endpoint declared as public.
Connect Context7 and confirm it works
- Run npx ctx7 setup and choose MCP mode (or CLI + Skills); it signs in via OAuth and generates an API key
- Or add https://mcp.context7.com/mcp as an HTTP server with header Authorization: Bearer <API key>
- Optionally add a standing rule (CLAUDE.md, Cursor Rules) telling the agent to use Context7 for library questions
claude mcp add --transport http context7 https://mcp.context7.com/mcpclaude mcp add context7 -e "CONTEXT7_API_KEY=<your CONTEXT7_API_KEY>" -- npx -y @upstash/context7-mcpReplace each placeholder with your own value before saving.
Published as mcp bundle `https://github.com/upstash/context7/releases/download/mcpb-v4.4.2/context7.mcpb` — install it through your client’s extension manager.
[mcp_servers.context7]
url = "https://mcp.context7.com/mcp"Add to ~/.codex/config.toml.
[mcp_servers.context7]
command = "npx"
args = ["-y", "@upstash/context7-mcp"]
[mcp_servers.context7.env]
CONTEXT7_API_KEY = "<your CONTEXT7_API_KEY>"Add to ~/.codex/config.toml. Replace each placeholder with your own value before saving.
Published as mcp bundle `https://github.com/upstash/context7/releases/download/mcpb-v4.4.2/context7.mcpb` — install it through your client’s extension manager.
https://mcp.context7.com/mcpSettings → Connectors → “Add custom connector”, then paste this URL.
{
"mcpServers": {
"context7": {
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp"
],
"env": {
"CONTEXT7_API_KEY": "<your CONTEXT7_API_KEY>"
}
}
}
}Add to claude_desktop_config.json (Settings → Developer → Edit Config). Replace each placeholder with your own value before saving.
Published as mcp bundle `https://github.com/upstash/context7/releases/download/mcpb-v4.4.2/context7.mcpb` — install it through your client’s extension manager.
{
"mcpServers": {
"context7": {
"url": "https://mcp.context7.com/mcp"
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (per project).
{
"mcpServers": {
"context7": {
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp"
],
"env": {
"CONTEXT7_API_KEY": "<your CONTEXT7_API_KEY>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (per project). Replace each placeholder with your own value before saving.
Published as mcp bundle `https://github.com/upstash/context7/releases/download/mcpb-v4.4.2/context7.mcpb` — install it through your client’s extension manager.
{
"servers": {
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp"
}
}
}Save as .vscode/mcp.json in your workspace.
{
"servers": {
"context7": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp"
],
"env": {
"CONTEXT7_API_KEY": "<your CONTEXT7_API_KEY>"
}
}
}
}Save as .vscode/mcp.json in your workspace. Replace each placeholder with your own value before saving.
Published as mcp bundle `https://github.com/upstash/context7/releases/download/mcpb-v4.4.2/context7.mcpb` — install it through your client’s extension manager.
{
"mcpServers": {
"context7": {
"serverUrl": "https://mcp.context7.com/mcp"
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
{
"mcpServers": {
"context7": {
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp"
],
"env": {
"CONTEXT7_API_KEY": "<your CONTEXT7_API_KEY>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json. Replace each placeholder with your own value before saving.
Published as mcp bundle `https://github.com/upstash/context7/releases/download/mcpb-v4.4.2/context7.mcpb` — install it through your client’s extension manager.
{
"mcpServers": {
"context7": {
"url": "https://mcp.context7.com/mcp"
}
}
}{
"mcpServers": {
"context7": {
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp"
],
"env": {
"CONTEXT7_API_KEY": "<your CONTEXT7_API_KEY>"
}
}
}
}Replace each placeholder with your own value before saving.
Published as mcp bundle `https://github.com/upstash/context7/releases/download/mcpb-v4.4.2/context7.mcpb` — install it through your client’s extension manager.
Ask: "Create a Next.js middleware that checks for a valid JWT in cookies and redirects unauthenticated users to /login. use context7"
Expected: The agent calls resolve-library-id then query-docs for Next.js and writes middleware based on the current documentation rather than guessed APIs.
When to choose another server
- Ref Tools MCP#7,355
You want documentation search that also covers your own private docs and PDFs.
- Docfork MCP#4,061
You want a different curated library-docs index to compare coverage against.
- Deepwiki MCP Server#4,585
You want AI-generated wiki pages for a GitHub repository rather than its official docs.
What changed, and when this was checked
- First listed
- Apr 9, 2025
- Latest version published
- Oct 15, 2026
- Version history
- 18 versions tracked (below)
- Requirements evidence
- MCP Toplist probed the public endpoint on Oct 5, 2026 and could not complete the MCP handshake (jsonrpc error). Requirements remain unverified.
- Profile checked
- Oct 9, 2026 against README
- Ranking data as of
- Oct 16, 2026
- Official MCP ↗listed since Apr 25, 2026 · still listed
- mcp.so ↗listed since Jun 4, 2026 · still listed
- Smithery ↗listed since Jun 4, 2026 · still listed
- Glama ↗listed since Jun 4, 2026 · delisted, last seen Jun 8, 2026
- PulseMCP ↗listed since Jun 4, 2026 · still listed
- Glama ↗listed since Jun 8, 2026 · still listed
- mcp.so ↗listed since Aug 25, 2026 · still listed
Do you maintain Context7? to correct or enrich this profile.
Available versions (18)
| Version | Published |
|---|---|
| 4.4.2 | Oct 15, 2026 |
| 4.4.1 | Oct 13, 2026 |
| 4.4.0 | Oct 13, 2026 |
| 4.3.0 | Oct 9, 2026 |
| 4.2.1 | Oct 9, 2026 |
| 4.2.0 | Oct 7, 2026 |
| 4.1.3 | Oct 7, 2026 |
| 4.1.2 | Oct 7, 2026 |
| 4.1.1 | Sep 14, 2026 |
| 4.1.0 | Sep 11, 2026 |
| 4.0.7 | Sep 9, 2026 |
| 4.0.5 | Sep 4, 2026 |
| 4.0.4 | Aug 28, 2026 |
| 4.0.3 | Aug 28, 2026 |
| 1.0.31 | Nov 28, 2025 |
| 1.0.30 | Nov 24, 2025 |
| 1.0.0 | Oct 22, 2025 |
| 0.1.0 | Nov 25, 2024 |
Ranks ahead of 144,393 of 144,396 servers on MCP Toplist.
Show your rank
Maintain this server? Add the live rank badge to your README — it updates automatically as the leaderboard changes.
[](https://mcptoplist.com/server/io.github.upstash%2Fcontext7)<a href="https://mcptoplist.com/server/io.github.upstash%2Fcontext7"><img src="https://mcptoplist.com/badge/io.github.upstash%2Fcontext7.svg" alt="MCP Toplist: #3 of 144,396" /></a>Variants: append ?metric=score or ?metric=stars to the image URL.
Frequently asked questions
- Who maintains Context7?
- Context7 is maintained by upstash, which publishes 3 MCP servers (20 total versions) tracked on MCP Toplist.
- Is Context7 listed on the Official MCP Registry?
- Yes — Context7 is listed on the Official MCP Registry, alongside mcp.so, Smithery, Glama and PulseMCP.
- How many versions does Context7 have?
- MCP Toplist tracks 18 versions of Context7, most recently published on Oct 15, 2026.
- Where can I find the source code for Context7?
- The source code for Context7 is hosted at github.com/upstash/context7-mcp.
Stacks that run this server
- MCP Toplistby @christophe · 2 servers