Context7 MCP server
Pull up-to-date library docs into the model. Context7 fetches current, version-specific documentation and code examples for libraries and feeds them to the assistant, cutting down on outdated or hallucinated APIs.
Dev toolsMaintained by
CommunityProtocol
Model Context ProtocolSource
upstash/context7
Installing Context7
A hosted server, connect to the endpoint, nothing to run locally.
Context7 is now hosted, the endpoint needs an API key sent as an `Authorization: Bearer <key>` header. `npx ctx7 setup` will wire this up for you across supported clients.
claude mcp add --transport http context7 https://mcp.context7.com/mcp
{
"mcpServers": {
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp"
}
}
}Not sure where the config file lives, or it isn't picking the server up? Config paths for every client.
What it does
Context7 fetches current, version-specific documentation and code examples for libraries and feeds them to the assistant, cutting down on outdated or hallucinated APIs.
Like any MCP server, Context7 plugs into MCP-compatible assistants (such as Claude and other clients) so the model can use it as a tool , no custom integration code required.
Related Dev tools MCP servers
- GitHubLet AI manage repos, issues, and pull requests.
- FilesystemRead and write local files, safely scoped.
- GitRun git operations on a local repository.
- SentryPull error and performance context into the chat.
- JetBrainsGive the assistant context from your JetBrains IDE.
- CypressRun and inspect end-to-end tests from the assistant.