Context7 MCP Server
Upstash Context7: up-to-date library documentation for AI coding agents (local @upstash/context7-mcp or hosted mcp.context7.com/mcp). Version 4.9.0 (Nov 26, 2026) lets the hosted server also serve the Agent Skills your team installed in the Context7 dashboard, next to the context7-mcp skill; 4.9.1 (Nov 27) is a small efficiency fix for the hosted server. Version 4.8.0 (Nov 24, 2026) serves the context7-mcp skill through the MCP Skills extension (SEP-2640), and query-docs now takes the version a project uses as its own version input instead of a suffix on the library ID (resolve-library-id no longer lists versions). Version 4.7.3 (Nov 17, 2026) replaces the experimental query-code tool with grep-code, glob-code, read-code and find-symbol, which search and read a library's source the way coding agents search a local project; a dashboard choice that turned query-code on now turns on the new tools. Version 4.6.0 (Nov 9, 2026) added the research-preview get-upgrade-guide tool (what changes between two versions of a library). Version 4.7.0 (Nov 12, 2026) gives get-upgrade-guide a page argument so long guides arrive in complete pages, with migration essentials (breaking changes, codemods, deprecations) first. Research-preview tools only appear with --research-preview, CONTEXT7_RESEARCH_PREVIEW=1 or ?research_preview=1 on the hosted URL. Version 4.5.0 (Nov 3, 2026) fixed 401s in Gemini CLI from an unset ${CONTEXT7_API_KEY} placeholder being treated as a real key.
Setup command
npx ctx7 setupSource: official setup docs
Remote server (hosted)
Point your client at this URL. Depending on the provider, you sign in with OAuth or send an API key header (see the source docs).
https://mcp.context7.com/mcp{
"mcpServers": {
"context7": {
"url": "https://mcp.context7.com/mcp"
}
}
}Example for Cursor mcp.json. Other apps use slightly different fields; see the setup guide for your app.
Claude Code: claude mcp add --transport http context7 https://mcp.context7.com/mcp
At a glance
| Repository | upstash/context7 |
| GitHub stars | 65,682 |
| Last commit | 2026-11-30 (today) |
| Status | maintained |
| Security advisories | No published advisories found as of 2026-11-30. Details |
| Clients mentioned in README | Claude Code, Cursor, VS Code, Cline |
| Auth | OAuth |
| Language / License | TypeScript / MIT |
| Official MCP registry | Listed ✓ |
Security advisories
No published advisories found as of 2026-11-30.
Checked 2026-11-30 in the repo's GitHub security advisories and OSV.dev for @upstash/context7-mcp (npm). No advisory doesn't prove a server is safe. How to stay updated.
Common problems
- MCP server not showing in Cursor (or showing a red dot)
- MCP server crashes because the client uses an old Node version
- Claude Code: MCP server added but not available ("No MCP servers configured")
- Claude Code: MCP server connects but shows no tools (or every tool call fails)
- Windsurf / Devin Desktop: MCP server not loading (mcp_config.json location)
- Claude Code: project MCP server stuck on "Pending approval"
- Gemini CLI: remote MCP server won't connect (httpUrl vs url)
- Claude Code: MCP tool output is too large (MAX_MCP_OUTPUT_TOKENS)
- Codex: "MCP client for `server` timed out after 10 seconds"