Context7
Fetches up-to-date, version-specific library documentation and code examples into AI coding agents via an MCP server or CLI.
Tested on Linux
Use it
Linux x86_64
You need first
- Runtimes:
node>=22.13 - Needs the network
- Keys or accounts: Context7 API key (recommended for higher rate limits)
npm install -g ctx7 @upstash/context7-mcp
npm install -g ctx7 @upstash/context7-mcp
Check that it works
ls ~/.local/bin && ctx7 --versionThe output should contain “0.11.1”.
Add it to your agent
claude mcp add context7 -- context7-mcpJSON for Claude Desktop, Cursor and other clients
{
"mcpServers": {
"context7": {
"command": "context7-mcp",
"args": []
}
}
}Add the Context7 MCP server to your AI coding agent's MCP settings, and the agent can then use the resolve-library-id and query-docs tools.
What it does
- Give your agent docs for a specific library versionNot tested
- Find a library's ID by searching its nameNot tested
- Install an agent skill with the ctx7 CLINot tested
How far pickfit got
Linux x86_64
- Installs
- Connects
- 0 of 3 features work
- Works offline
Good for
- give a coding agent current docs for a specific library version
- look up a library's Context7 ID from its name
How pickfit tested it
Each run starts from a clean machine and follows the steps above. How pickfit verifies
Linux x86_64
An MCP client connects and lists its tools
- Replayed from scratch
- Works offline
- Checked on 15 Nov 2026
An MCP client handshake over stdio listed 2 tools.
Differences the test machine hit
- README: npx ctx7 setup (authenticates via OAuth, generates an API key)
In the test: Setup needs a browser OAuth login; for a local MCP server install the separate package @upstash/context7-mcp (npm install -g) and launch context7-mcp - README: Packages: ctx7 - CLI
In the test: The ctx7 package does not include the MCP server binary; @upstash/context7-mcp must be installed separately to run the server locally