Context7
Context7 is an MCP server that adds search and knowledge tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Context7 Platform -- Up-to-date docs for AI agents. It has 64,897 GitHub stars, is released under the MIT license and runs locally with npx -y @upstash/context7-mcp.
github.com/upstash/context7 (opens in a new tab)
Data as of from the GitHub API and the official MCP registry; description from the project's repository. Report an error
Install Context7
Generated from the server's MCP registry entry. Replace your-value with your own values.
Claude Desktop
{
"mcpServers": {
"context7": {
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp"
],
"env": {
"CONTEXT7_API_KEY": "your-value"
}
}
}
}Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.
Claude Code
claude mcp add --env CONTEXT7_API_KEY=your-value --transport stdio context7 -- npx -y @upstash/context7-mcpCursor
{
"mcpServers": {
"context7": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp"
],
"env": {
"CONTEXT7_API_KEY": "your-value"
}
}
}
}Project file; use ~/.cursor/mcp.json to enable it in every project.
VS Code
{
"inputs": [
{
"type": "promptString",
"id": "context7_api_key",
"description": "CONTEXT7_API_KEY",
"password": true
}
],
"servers": {
"context7": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp"
],
"env": {
"CONTEXT7_API_KEY": "${input:context7_api_key}"
}
}
}
}Claude Code (remote)
claude mcp add --transport http context7 "https://mcp.context7.com/mcp"The same server is also hosted as a remote MCP endpoint, so nothing runs on your machine.
Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).
Environment variables
Variables the server reads at startup.
| Name | Required | Description |
|---|---|---|
CONTEXT7_API_KEYsecret | No | API key for authentication |
Tools (4)
Parsed from the Tools section of the README; check the repository for the current list.
resolve-library-idResolves a general library name into a Context7-compatible library ID.
queryThe user's question or task (used to rank results by relevance)
query-docsRetrieves documentation for a library using a Context7-compatible library ID.
languageThe programming language you write in, used to rank code examples in that language first
About Context7
LLMs rely on outdated or generic information about the libraries you use. You get: Context7 pulls up-to-date, version-specific documentation and code examples straight from the source — and gives them to your coding agent.
- llm
- mcp
- mcp-server
- vibe-coding
Similar MCP servers
More ai & search MCP servers
WARM
writerslogic/warm
Local persistent memory for AI agents with recall, search, forgetting, and encrypted storage.
Active · last commit Nov 16, 2026
OfficialAI & searchRustFunASR
modelscope/FunASR
Transcribe local audio with FunASR and SenseVoice using private, on-device inference.
Active · last commit Nov 15, 2026
AI & searchPythonFidelis Memory
hermes-labs-ai/fidelis
Recall locally stored agent memories through an MCP-compatible host.
Active · last commit Oct 19, 2026
OfficialAI & searchPythonHoncho
plastic-labs/honcho
Memory that reasons: continual learning for stateful agents.
Active · last commit Nov 12, 2026
AI & searchPythonEmbedded Docs
ByteAsk/ByteAsk-Embedded-MCP
Page-cited retrieval for embedded docs, datasheets, MISRA, CMSIS, and RTOS references.
Maintained · last commit Jun 20, 2026
OfficialAI & searchPythonSui Knowledge Base (kapa.ai)
MystenLabs/sui
Semantic search across Sui documentation and knowledge sources, powered by kapa.ai.
Active · last commit Nov 14, 2026
AI & searchRust
How do I install the Context7 MCP server?
Add the command npx -y @upstash/context7-mcp to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.
Is Context7 free?
The server is open source under the MIT license, so running it is free. It needs credentials (CONTEXT7_API_KEY) for the service it connects to, which may require a paid account.
Is Context7 actively maintained?
The most recent commit was on Nov 14, 2026. The latest release is @upstash/context7-tools-ai-sdk@1.0.4, published Nov 12, 2026. appsgit only lists MCP servers with a commit in the last six months.