Context7 Live Documentation MCP

๐Ÿง‘โ€๐Ÿ’ป Communityโœ“ VerifiedStreamable HTTPPublic ยท No Auth2 toolsยทOnline310msยท30d uptime: 100%ยทLast checked 18m ago

Context7 (by Upstash) resolves library names and returns current, version-specific docs โ€” the fix for agents hallucinating outdated APIs. Public endpoint, no key required.

https://mcp.context7.com/mcp
Provider
Upstash โ†—
Source
https://github.com/upstash/context7 โ†—
Categories
๐Ÿ” Documentation, Search & Context๐Ÿ› ๏ธ Developer Tools & Git
ไธญๆ–‡็ฎ€ไป‹

Upstash Context7 ๅ…่ดนๅ…็™ปๅฝ• MCP ๆœๅŠกๅ™จใ€‚ๅฎžๆ—ถๆ‹‰ๅ–ๆŒ‡ๅฎš็‰ˆๆœฌ็š„ๅบ“ๆ–‡ๆกฃ๏ผŒ็›ดๆŽฅๆณจๅ…ฅ AI ไธŠไธ‹ๆ–‡๏ผŒ้ฟๅ…่ฟ‡ๆœŸ APIใ€‚

Streamable HTTPhttps://mcp.context7.com/mcp
Install in Cursor โ†’

Or add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "context7": {
      "url": "https://mcp.context7.com/mcp"
    }
  }
}

๐Ÿงฐ Tools exposed by Context7 MCP (2)

ToolSafetyDescriptionParameters
resolve-library-id๐ŸŸข ReadResolve a library/product name to a Context7-compatible library id.libraryName*: stringquery*: string
get-library-docs๐ŸŸข ReadFetch up-to-date documentation for a resolved Context7 library id.context7CompatibleLibraryID*: stringtopic: stringtokens: number

๐Ÿ” OAuth 2.1 & Security

Auth type
None (public)
Dynamic Client Registration
โ€”
PKCE S256
โ€”
Protected resource metadata
https://mcp.context7.com/.well-known/oauth-protected-resource (expected location)
๐Ÿ” Audit OAuth 2.1 Config โ†’

๐Ÿงฉ Recommended Agent Skills

๐Ÿ“– Guide

Context7 MCP โ€” Remote MCP Server

Context7's trick is fetching the documentation for the exact version of a library you are using โ€” 'use context7' in a prompt is now a common incantation in Cursor and Claude Code workflows. The hosted endpoint at mcp.context7.com is free and unauthenticated, with a two-step flow: resolve the library id, then pull the docs.

Endpoint & Transport

  • Endpoint URL: https://mcp.context7.com/mcp
  • Transport: Streamable HTTP

Authentication

Context7 MCP is public and unauthenticated โ€” no OAuth, no API key, no headers. Any MCP client can connect and call its tools directly, which also makes it a great endpoint for smoke-testing your own MCP client or proxy.

Available Tools (2)

Tool Safety Description
resolve-library-id read Resolve a library/product name to a Context7-compatible library id.
get-library-docs read Fetch up-to-date documentation for a resolved Context7 library id.

Connect in 30 Seconds

Claude Code โ€” one command:

claude mcp add --transport http context7 https://mcp.context7.com/mcp

Cursor โ€” add to ~/.cursor/mcp.json:

{ "mcpServers": { "context7": { "url": "https://mcp.context7.com/mcp" } } }

VS Code โ€” add to .vscode/mcp.json:

{ "servers": { "context7": { "type": "http", "url": "https://mcp.context7.com/mcp" } } }

Claude Desktop & stdio clients โ€” bridge with mcp-remote:

{ "mcpServers": { "context7": { "command": "npx", "args": ["-y", "mcp-remote", "https://mcp.context7.com/mcp"] } } }

Troubleshooting

  • "Session expired" / stale Mcp-Session-Id โ€” just re-send initialize; stateless clients can ignore session headers entirely.
  • No authentication โ€” rate limits apply per IP.
  • Two-tool flow: call resolve-library-id first, then get-library-docs with the returned id.

๐Ÿš€ How to Connect

  1. Copy the Context7 MCP endpoint URL
    The remote endpoint is https://mcp.context7.com/mcp.
  2. Add it to your MCP client
    Claude Code: claude mcp add --transport http context7 https://mcp.context7.com/mcp. Cursor: add "context7": { "url": "https://mcp.context7.com/mcp" } under mcpServers in ~/.cursor/mcp.json. Other clients work similarly.
  3. Verify with the online inspector
    Paste https://mcp.context7.com/mcp into remotemcp.net/inspector, run initialize and tools/list, and confirm Context7 MCP's 2 tools respond.

โ“ FAQ

What is the Context7 MCP remote MCP endpoint?

The primary endpoint is https://mcp.context7.com/mcp. It is a community-hosted server operated by Upstash, speaking the Streamable HTTP transport.

How do I authenticate with Context7 MCP?

You don't โ€” Context7 MCP is public and unauthenticated. Connect and start calling tools; no OAuth flow or API key is needed.

I'm getting a 401 Unauthorized from Context7 MCP โ€” what's wrong?

Context7 MCP is authless, so a 401 is unusual. Check that you're hitting https://mcp.context7.com/mcp exactly (including the path) and not an API endpoint that requires a different credential.

Which MCP clients work with Context7 MCP?

Any client that supports remote MCP servers: Cursor, Claude Code (`claude mcp add --transport http context7 https://mcp.context7.com/mcp`), VS Code Copilot, ChatGPT connectors, Windsurf, and Claude Desktop via the `mcp-remote` bridge.

What tools does Context7 MCP expose?

2 tools are cataloged in this directory โ€” including `resolve-library-id`, `get-library-docs`. Use our online inspector to fetch the live tool list straight from the endpoint.

๐Ÿ”— Connect Guides

๐Ÿ“› Embed Status Badge in README

Context7 MCP status badge
[![Remote MCP Status](https://remotemcp.net/api/badge/status/context7.svg)](https://remotemcp.net/servers/context7)
Context7 MCP inspector badge
[![Test in Inspector](https://remotemcp.net/api/badge/inspect/context7.svg)](https://remotemcp.net/inspector?url=https%3A%2F%2Fmcp.context7.com%2Fmcp)

Related Servers

Cloudflare's free, authless documentation MCP server. Agents can search the full Cloudflare docs corpus โ€” no account or token required.

https://docs.mcp.cloudflare.com/mcp
๐Ÿ›ก๏ธ Officialโœ“ VerifiedHTTP + SSEPublic ยท No Auth2 toolsOnline10ms
DeepWiki MCPCognition AI (Devin)

Cognition Devin's free DeepWiki MCP. Ask questions and read AI-generated wiki documentation for any public GitHub repository โ€” no auth required.

https://mcp.deepwiki.com/mcp
๐Ÿง‘โ€๐Ÿ’ป Communityโœ“ VerifiedHTTP + SSEPublic ยท No Auth3 toolsOnline73ms
Hugging Face MCPHugging Face

Hugging Face's official remote MCP server at huggingface.co/mcp. Search models, datasets, Spaces and papers with your HF access token.

https://huggingface.co/mcp
๐Ÿ›ก๏ธ Officialโœ“ VerifiedStreamable HTTPBearer Token4 toolsOnline108ms

Exa's hosted MCP server for AI-native web search. Semantic web search, research-paper search, company research and page crawling with an API key.

https://mcp.exa.ai/mcp
๐Ÿ›ก๏ธ Officialโœ“ VerifiedStreamable HTTPAPI Key4 toolsDegraded8ms