Context7 MCP server
Up-to-date code docs for any prompt
62k stars618k downloads/wk
Reviews
Write oneNobody has reviewed Context7 yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Context7 tools (2)
write = sends, deletes, buys or postsquery-docsFreeRetrieves and queries up-to-date documentation and code examples from Context7 for any programming library or framework. You must call 'Resolve Context7 Library ID' tool first to obtain the exact Context7-compatible library ID required to use this tool, UNLESS the user explicitly provides a library ID in the format '/org/project' or '/org/project/version' in their query. Do not call this tool more than 3 times per question.
resolve-library-idFreeResolves a package/product name to a Context7-compatible library ID and returns matching libraries. You MUST call this function before 'Query Documentation' tool to obtain a valid Context7-compatible library ID UNLESS the user explicitly provides a library ID in the format '/org/project' or '/org/project/version' in their query. Each result includes: - Library ID: Context7-compatible identifier (format: /org/project) - Name: Library or package name - Description: Short summary - Code Snippets: Number of available code examples - Source Reputation: Authority indicator (High, Medium, Low, or Unknown) - Benchmark Score: Quality indicator (100 is the highest score) - Versions: List of versions if available. Use one of those versions if the user provides a version in their query. The format of the version is /org/project/version. For best results, select libraries based on name match, source reputation, snippet coverage, benchmark score, and relevance to your use case. Selection Process: 1. Analyze the query to understand what library/package the user is looking for 2. Return the most relevant match based on: - Name similarity to the query (exact matches prioritized) - Description relevance to the query's intent - Documentation coverage (prioritize libraries with higher Code Snippet counts) - Source reputation (consider libraries with High or Medium reputation more authoritative) - Benchmark Score: Quality indicator (100 is the highest score) Response Format: - Return the selected library ID in a clearly marked section - Provide a brief explanation for why this library was chosen - If multiple good matches exist, acknowledge this but proceed with the most relevant one - If no good matches exist, clearly state this and suggest query refinements For ambiguous queries, request clarification before proceeding with a best-guess match. IMPORTANT: Do not call this tool more than 3 times per question. If you cannot find what you need after 3 calls, use the best result you have.
Public scan report
scanner v0.1.3 · 2026-09-19 · same rubric, same numbers if you re-run it
- Code scan22 source files scanned25/25
- Live reliabilityremote reachable in 789ms20/20
- Tool poisoning2 tool descriptions checked13/15
- Auth qualityAPI key sent as a header8/15
- Maintenancelast push 0 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year9/10
Findings (1)
- lowUnusually long tool description (over 2,000 characters)
poison.long-descriptiontool resolve-library-id: …Resolves a package/product name to a Context7-compatible library ID and returns matching libraries. You MUST call this function before 'Query Documentation' tool to obtain a valid Context7-compatible library ID UNLESS the user explicitly provides a library ID in the format '/org/project' or '/org/project/version' in their query. Each result includes: - Library ID: Context7-compatible identifier (format: /org/project) - Name: Library or package name - Description: Short summary - Code Snippets: Number of available code examples - Source Reputation: Authority indicator (High, Medium, Low, or Unknown) - Benchmark Score: Quality indicator (100 is the highest score) - Versions: List of versions if available. Use one of those versions if the user provides a version in their query. The format of the version is /org/project/version. For best results, select libraries based on name match, source reputation, snippet coverage, benchmark score, and relevance to your use case. Selection Process: 1. Analyze the query to understand what library/package the user is looking for 2. Return the most relevant match based on: - Name similarity to the query (exact matches prioritized) - Description relevance to the query's intent - Documentation coverage (prioritize libraries with higher Code Snippet counts) - Source reputation (consider libraries with High or Medium reputation more authoritative) - Benchmark Score: Quality indicator (100 is the highest score) Response Format: - Return the selected library ID in a clearly marked section - Provide a brief explanation for why this library was chosen - If multiple good matches exist, acknowledge this but proceed with the most relevant one - If no good matches exist, clearly state this and suggest query refinements For ambiguous queries, request clarification before proceeding with a best-guess match. IMPORTANT: Do not call this tool more than 3 times per question. If you cannot find what you need after 3 calls, use the best result you have.…
Install directly
claude mcp add --transport http context7 https://mcp.context7.com/mcp
Context7: common questions
- Is Context7 MCP server safe?
- Yes, by our scan: it is graded A (90/100). Read the Context7 safety report
- How do I install Context7?
- It runs remotely at mcp.context7.com. Add it to Claude Code, Claude Desktop or Cursor with the snippets above, or call it through the mcp.market gateway without installing anything.
- Does Context7 need an API key?
- Yes. The registry entry asks for
CONTEXT7_API_KEY,Authorization. - Is Context7 maintained?
- The last commit was in the last day (2026-09-19). The latest release is v4.1.1.
- Is Context7 up?
- 100% of our last 1 checks got an answer. We check remote servers about four times a day.
- What can I use instead of Context7?
- Servers from other publishers that do the same job: Coolify MCP server, MCP server and Agent-Native Content MCP server. Compare all Context7 alternatives.
Alternatives to Context7
Same job from other publishers: the closest match first, then the best rated.
- Coolify45 optimized tools for managing Coolify infrastructure, diagnostics, and docs searchnot reviewedEstablishedC
- MCPManage Appwrite projects, databases, auth, storage, functions, and messaging; search Appwrite docsnot reviewedEstablishedA
- Agent-Native ContentOpen-source Obsidian for MDX - edit local docs with agent assistancenot reviewedEstablishedA
- ITASCA MCP ServerGive AI agents full access to ITASCA PFC, FLAC3D, 3DEC, MPoint, MassFlow: docs, simulation, plots.not reviewedEstablishedA
- Open AgreementsFill standard legal agreement templates (NDAs, SAFEs, NVCA docs, employment) as DOCX files.not reviewedEstablishedA