MCP server · Upstash
Context7
Pick it for up-to-date library docs in prompts; queries go to Context7's hosted service.
Tools: 2, ~1,060 tokens of tool definitions loaded into the model's context (default configuration; measured 2026-10-27, v4.4.4). Compare all servers →
All 2 tools, by token cost
- resolve-library-id607
- query-docs453
Install
Remote https://mcp.context7.com/mcp or `npx -y @upstash/context7-mcp` (see README). Official install docs ↗
Credentials: Optional Context7 API key (higher rate limits).
What it can access
Sends library names/queries to Context7's hosted service and returns docs.
Minimal safe setup
- It only needs outbound HTTPS to Context7; your library names and queries go to Context7's hosted service, whose backend is private (not in the open-source repo). An API key is optional. source ↗
Common setup errors
- Rate-limit errors.
- Get a free API key at context7.com/dashboard and send it as
Authorization: Bearer <key>(remote) or--api-key(local). source ↗ 401 Unauthorized.- Check the key starts with
ctx7skand the header format isAuthorization: Bearer <key>. source ↗ ERR_MODULE_NOT_FOUNDor request timeouts with the local npx server.- Use Node 20+ and
@latest, try bunx/deno, or skip local Node entirely with the remote endpoint https://mcp.context7.com/mcp. On Windows/macOS timeouts, point the config at the full node path. source ↗ 404 Not Foundfor a library.- Library IDs look like
/owner/repoor/owner/repo/version; call resolve-library-id first. source ↗
How it differs from alternatives
- Context7 CLI + skill (ctx7):
npx ctx7 setupcan install a skill that callsctx7CLI commands instead of an MCP server, so no tool definitions sit in context. source ↗ - Microsoft Learn MCP: Narrower (Microsoft docs and code samples only) but needs no key or sign-in. Measured: 3 tools, ~724 tokens.
Notes written from the official sources linked above, checked 2026-10-27.
Details
- Type
- MCP server
- Tasks
- Library docs & research
- Compatible agents
- Claude Code, Cursor, VS Code (source: clients with a setup heading or install/config instructions in the official README)
- Maintenance
- Release @upstash/context7-mcp@4.4.4 on 2026-10-19; last commit 2026-10-26
- License
- MIT
- Source
- https://github.com/upstash/context7
- Verified on
- 2026-10-26
No independent security audit: entries summarize official sources only. Review permissions and code before installing.
Setup guide: How to connect the Context7 MCP server to Claude Code · How to connect the Context7 MCP server to Cursor
Compared in: Best MCP servers for Library docs & research in VS Code · Best MCP servers for Library docs & research in Cursor · Best MCP servers for Library docs & research in Claude Code · Best MCP servers for Library docs & research
Badge for your README (maintainers)
The badge only says it's listed; it is not a security review or an endorsement.