Context7 MCP server in Claude Desktop.
Ask Claude Desktop about a library and get answers grounded in this week's docs, not last year's training data. One entry in claude_desktop_config.json connects Context7's 57.1k-star doc server.
Claude Desktop is where a lot of developers think through technical decisions before opening an editor — comparing libraries, sketching an integration, asking how an API works. Those conversations are only as good as the model's knowledge of the library, which ages from the moment training ends. Context7, built by Upstash and sitting at 57.1k GitHub stars, closes the gap by fetching up-to-date code docs for any prompt.
Claude Desktop has exactly one place MCP servers go: claude_desktop_config.json. This guide covers the file's location on each OS, the entry to add, and the full-restart step that trips up most first installs.
Why a chat app benefits from live docs
Without Context7, asking Claude Desktop 'how do I set up auth in the current version of this framework' gets you the version Claude remembers. With it, Claude resolves the library, pulls current documentation and examples, and answers from those — including version-specific details that didn't exist at training time. For evaluating unfamiliar libraries, that difference is the whole answer.
The server runs locally via npx from the @upstash/context7-mcp package and calls Context7's service for the docs themselves, so the machine needs Node and a network connection.
Edit claude_desktop_config.json
The file lives at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS and %APPDATA%\Claude\claude_desktop_config.json on Windows; Settings > Developer > Edit Config inside the app jumps you straight to it. Merge this entry into your mcpServers object:
{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp"]
}
}
}Quit, relaunch, verify
Config is read once at startup, and the window's close button doesn't quit the app — use Cmd+Q on macOS or quit from the tray on Windows, then reopen. Context7 should now appear in the tools listing in the chat input area.
Good first prompt: 'use context7 to look up the current routing docs for Next.js and summarize what changed recently.' You'll see Claude invoke the library-resolution tool, then the docs tool. Context7's listing — with its live tool list — is on the Loomal marketplace at https://loomal.ai/marketplace/context7.
Troubleshooting in Claude Desktop
Server absent after relaunch: validate the JSON first. Claude Desktop discards the entire config on a syntax error, and merging a new entry into an existing mcpServers block is where commas go missing. Also confirm the app was truly quit rather than minimized.
Server present but failing: open the MCP logs (~/Library/Logs/Claude/ on macOS, the logs directory under %APPDATA%\Claude on Windows). The classic desktop-app issue is PATH — Claude Desktop doesn't load your shell profile, so if Node was installed via nvm it may not find npx. Replace "npx" with the absolute path from `which npx` and relaunch. If lookups fail intermittently under heavy use, that's rate limiting; a free API key from the Context7 dashboard lifts the limits.
FAQ
How do I install Context7 in Claude Desktop?
Add a context7 entry under mcpServers in claude_desktop_config.json, using command npx and args ["-y", "@upstash/context7-mcp"]. Quit Claude Desktop completely and relaunch; the server appears in the chat's tools list.
Where exactly is claude_desktop_config.json?
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json. Windows: %APPDATA%\Claude\claude_desktop_config.json. The in-app shortcut is Settings > Developer > Edit Config, which also creates the file if it doesn't exist yet.
Is Context7 free to use?
The server software is open source and works without an account. Heavy usage can hit rate limits on the docs service; an API key from the Context7 dashboard raises them. Either way, nothing about this setup involves paid tiers to get started.
Why does Claude answer from old docs even with Context7 connected?
Claude chooses when to call tools, and for familiar libraries it may answer from memory. Say 'use context7' in the prompt to force the lookup, especially when version-specific accuracy matters more than response speed.
More MCP servers for Claude Desktop.
Find them on the Loomal marketplace, complete with live tool lists.