Context7 MCP server
Context7 pulls up-to-date, version-specific library documentation and code examples into an AI coding assistant's context. It resolves a library name to a Context7 library ID, then fetches the documentation for that ID.
Endpoint and access
No sign-in: your client connects and lists tools immediately, with no account or key.
No sign-inEndpoint checked 2026-10-05
MCP endpoint (Streamable HTTP)
https://mcp.context7.com/mcpWhat you can do with it
- Fetch current documentation for a library while writing code against it.
- Retrieve version-specific documentation by naming the version.
- Skip library matching by passing a Context7 library ID directly.
resolve-library-idquery-docs
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
Claude Code configuration
claude mcp add --transport http context7 https://mcp.context7.com/mcpCodex
Codex configuration
codex mcp add context7 --url https://mcp.context7.com/mcpCursor
Cursor configuration
{
"mcpServers": {
"context7": {
"url": "https://mcp.context7.com/mcp"
}
}
}Cline
Cline configuration
{
"mcpServers": {
"context7": {
"type": "streamableHttp",
"url": "https://mcp.context7.com/mcp",
"disabled": false
}
}
}VS Code
VS Code configuration
{
"servers": {
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp"
}
}
}Gemini CLI
Gemini CLI configuration
gemini mcp add --transport http context7 https://mcp.context7.com/mcpClaude Desktop
Claude Desktop configuration
{
"mcpServers": {
"context7": {
"url": "https://mcp.context7.com/mcp"
}
}
}Windsurf
Windsurf configuration
{
"mcpServers": {
"context7": {
"serverUrl": "https://mcp.context7.com/mcp"
}
}
}Other documentation and reference servers
Do you run Context7?
Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.