find-docs
Skill63k starsChanged 6 months agoMITView on GitHub
Retrieves up-to-date documentation, API references, and code examples for any developer technology. Use this skill whenever the user asks about a specific library, framework, SDK, CLI tool, or cloud service — even for well-known ones like React, Next.js, Prisma, Express, Tailwind, Django, or Spring Boot. Your training data may not reflect recent API changes or version updates.
- Reads credentials
- Installs packages
12 other projects use a version of this, 11 of them edited; 10 of 11 edited versions we compared changed its rules.
How people change it
10 of 11 edited versions changed its rules, and some changes recur.
Of the 11 edited versions we compared: 1 keep every rule, 10 made changes of their own.
Rules people drop
- Run commands with
npx ctx7@latestso setup always uses the latest CLI without a global install:dropped by 10 of 10 - Use the official library name with proper punctuation (e.g., "Next.js" not "nextjs", "Customer.io" not "customerio", "Three.js" not "threejs"). If results look wrong, try alternate spellings such as
next.jsbefore changing the query.dropped by 10 of 10 - If multiple good matches exist, acknowledge this but proceed with the most relevant onedropped by 1 of 10
- If no good matches exist, clearly state this and suggest query refinementsdropped by 1 of 10
- If the user mentions a specific version, use a version-specific library ID:dropped by 1 of 10
- If a command fails with a quota error ("Monthly quota reached" or "quota exceeded"):dropped by 1 of 10
- If they cannot or choose not to authenticate, answer from training knowledge and clearly note it may be outdateddropped by 1 of 10
- Do not silently fall back to training data — always tell the user why Context7 was not used.dropped by 1 of 10
Rules people add
- Use the user's full question as the query when possible, vague one-word queries return generic results.added by 9 of 10
- Make sure the CLI is up to date before running commands:added by 7 of 10
We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Most recently taken up by
- rakaarwaky/agents-arwakyedited, first seen Oct 6, 2026
- Enjoyoer/loadoutedited, first seen Sep 30, 2026
- jd-solanki/krutrimboxedited, first seen Sep 27, 2026
- BGLuis/skillsedited, first seen Sep 15, 2026
- J4NN0/skillsedited, first seen Sep 3, 2026
- zcaceres/skillsedited, first seen Aug 19, 2026
Who's talking about upstash/context7
- angular/angular“docs: add context7.json config”GitHub · Aug 4, 2025 · 6 reactions
- AAswordman/OperitMCPMarket“context7”GitHub · Oct 21, 2025 · 5 reactions
- @marcf.be“Are you using MCPs already? Heard of Context7? Me neither but this is an MCP you don’t want to miss Even …”Bluesky · Jun 9, 2025 · 5 likes
- @github-trending-js.bsky.social“🔥 Hot Repo! 🔥 (100+ new stars) 📦 upstash / context7 ⭐ 31,588 (+136) 🗒 JavaScript Context7 MCP Server -- …”Bluesky · Sep 26, 2025 · 4 likes
- @nick-tune.me“It's cool to see all the holes and imperfections being gradually addressed in the overall AI coding …”Bluesky · Jul 9, 2025 · 4 likes
The biggest 5 of 87 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 87
Talked about on GitHub, Bluesky and Hacker News (87 times).
On GitHub · 50
- Aug 4, 2025docs: add context7.json config — angular/angular6 reactions · 2 comments
- Oct 21, 2025context7 — AAswordman/OperitMCPMarket5 reactions
- Oct 18, 2025"Configuration file not found" error when installing extension — google-gemini/gemini-cli2 reactions · 6 comments
- Jul 29, 2025added to context7 — harehare/mq2 reactions · 1 comment
- Jul 21, 2025利用Context7实时代码文档上下文引擎 增强参数推荐的精准度 — ATH-MaaS/ComfyUI-Copilot2 reactions · 1 comment
45 more on GitHub
- May 11, 2026[BUG] Wrong .metadata.json after `skillshare update --all` — runkids/skillshare1 reaction · 2 comments
- Apr 18, 2026Investigate Context7 for inclusion in our coding agent — fullsend-ai/fullsend1 reaction · 4 comments
- Mar 25, 2026What AI tools to use with Claude Code — onmyway133/blog1 reaction
- Dec 29, 2025chore: migrate AI rules to Ruler — feedforagents/feed1 reaction · 3 comments
- Oct 11, 2025📚 [DOCS] - Acknowledge Key Inspirations and References — Anselmoo/mcp-ai-agent-guidelines1 reaction
- Oct 8, 2025feat: add Context7 MCP server integration to scout workflow — github/gh-aw1 reaction · 4 comments
- Sep 13, 2025記事の校閲エージェントを作成する — onc-limb/knowledge-hub1 reaction
- Sep 10, 2025Added context7.json for better context to LLMs — kurrent-io/KurrentDB1 reaction
- Aug 18, 2025[docs-infra] Support context7 MCP — mui/mui-public1 reaction · 3 comments
- Aug 3, 2025Make sure to get the best MCP servers for developers — STAFE-GROUP-AB/2do-developer1 reaction
- Jul 23, 2025feat: add context7 mcp server for up-to-date docs — skills/exercise-creator1 reaction
- Jul 9, 2025Add Context7 mcp server — stacklok/toolhive1 reaction
- Jul 9, 2025fix mcp service install commands — cassler/awesome-claude-code-setup1 reaction · 1 comment
- Jun 25, 2025Add MCP server configuration — laurentkempe/myblog1 reaction
- Jun 2, 2025轻松玩转 AI 编程:"Vibe Coding" 与 Cursor Agent 实战心得 — shuangmianxiaoQ/myblog1 reaction · 2 comments
- Nov 20, 2026claude-code-marketplaces.github.upstash.context7: 9782e8e → b1e3611 — sudosubin/agents.nix0 reactions
- Nov 20, 2026codex-marketplaces.github.upstash.context7: 9782e8e → b1e3611 — sudosubin/agents.nix0 reactions
- Nov 20, 2026agent-skills.github.upstash.context7: 0-unstable-2026-11-17 → 0-unstable-2026-11-20 — sudosubin/agents.nix0 reactions
- Nov 20, 2026claude-code-marketplaces.github.upstash.context7: 0-unstable-2026-11-19 → 0-unstable-2026-11-20 — sudosubin/agents.nix0 reactions
- Nov 20, 2026codex-marketplaces.github.upstash.context7: 0-unstable-2026-11-19 → 0-unstable-2026-11-20 — sudosubin/agents.nix0 reactions
- Nov 20, 2026kiro-powers.github.upstash.context7: 0-unstable-2026-11-17 → 0-unstable-2026-11-20 — sudosubin/agents.nix0 reactions
- Nov 20, 2026agent-plugins.github.upstash.context7: 0-unstable-2026-11-17 → 0-unstable-2026-11-20 — sudosubin/agents.nix0 reactions
- Nov 19, 2026claude-code-marketplaces.github.upstash.context7: 0-unstable-2026-11-18 → 0-unstable-2026-11-19 — sudosubin/agents.nix0 reactions
- Nov 19, 2026codex-marketplaces.github.upstash.context7: 0-unstable-2026-11-18 → 0-unstable-2026-11-19 — sudosubin/agents.nix0 reactions
- Nov 18, 2026claude-code-marketplaces.github.upstash.context7: 0-unstable-2026-11-17 → 0-unstable-2026-11-18 — sudosubin/agents.nix0 reactions
- Nov 18, 2026codex-marketplaces.github.upstash.context7: 0-unstable-2026-11-17 → 0-unstable-2026-11-18 — sudosubin/agents.nix0 reactions
- Nov 17, 2026agent-skills.github.upstash.context7: 0-unstable-2026-11-12 → 0-unstable-2026-11-17 — sudosubin/agents.nix0 reactions
- Nov 17, 2026agent-plugins.github.upstash.context7: 0-unstable-2026-11-12 → 0-unstable-2026-11-17 — sudosubin/agents.nix0 reactions
- Nov 17, 2026Bump the non-breaking group across 1 directory with 5 updates — keyute/dotfiles0 reactions
- Nov 17, 2026chore(deps): bump @upstash/context7-mcp from 4.3.0 to 4.7.0 in /upstreams — jonfairbanks/mcp-gateway0 reactions
- Nov 17, 2026chore(deps): update agent skills (plugins/agentic-engineering/skills/context7-mcp) — devantler-tech/agent-plugins0 reactions · 6 comments
- Nov 16, 2026chore(deps): bump the minor-and-patch group across 1 directory with 2 updates — Jartan-LLC/enchantments0 reactions
- Nov 16, 2026Upstream release: ctx7@0.12.1 — TheophilusChinomona/ctx-cli0 reactions
- Nov 16, 2026Upstream release: ctx7@0.12.1 — VedanthB/context7-cli0 reactions
- Nov 16, 2026chore(deps): bump the minor-and-patch group with 7 updates — laparo-coding/hemera0 reactions · 1 comment
- Nov 16, 2026chore(deps-dev): bump the all-dependencies group with 2 updates — synmux/syn-horse-notifications0 reactions
- Nov 10, 2026chore(deps): bump @upstash/context7-mcp from 4.3.0 to 4.5.1 in /upstreams — jonfairbanks/mcp-gateway0 reactions · 1 comment
- Nov 10, 2026[Vulnerability] upstash/context7: Privilege Escalation / Unauthorized Access — Danyw24/mcp-radar0 reactions · 1 comment
- Nov 9, 2026Upstream release: @upstash/context7-mcp@4.6.0 — TheophilusChinomona/ctx-cli0 reactions
- Nov 9, 2026Upstream release: @upstash/context7-mcp@4.6.0 — VedanthB/context7-cli0 reactions
- Nov 1, 2026build(deps): Bump @upstash/context7-mcp from 4.1.1 to 4.4.4 in /stack-ai/mcp-gateway — deymosh/bastion0 reactions
- Oct 30, 2026chore(codex): add scoped Context7 and read-only Supabase MCPs — pascalnanousympathie-alt/LudoMada0 reactions
- Oct 27, 2026chore(deps): bump @upstash/context7-mcp from 4.3.0 to 4.4.4 in /upstreams — jonfairbanks/mcp-gateway0 reactions · 1 comment
- Oct 26, 2026Upstream release: @upstash/context7-sdk@0.6.0 — TheophilusChinomona/ctx-cli0 reactions
- Oct 26, 2026Upstream release: @upstash/context7-sdk@0.6.0 — VedanthB/context7-cli0 reactions
On Bluesky · 36
- Jun 9, 2025Are you using MCPs already? Heard of Context7? Me neither but this is an MCP you don’t want to miss Even includes ABAP cheat sheet with… — @marcf.be5 likes and reposts · 2 replies
- Sep 26, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 upstash / context7 ⭐ 31,588 (+136) 🗒 JavaScript Context7 MCP Server -- Up-to-date code documentation… — @github-trending-js.bsky.social4 likes and reposts
- Jul 9, 2025It's cool to see all the holes and imperfections being gradually addressed in the overall AI coding developer experience. This week I've… — @nick-tune.me4 likes and reposts
- Apr 30, 2025The most useful MCP server I've seen so far - up to date code docs in LLMs by Upstash github.com/upstash/cont... — @labhaus.bsky.social3 likes and reposts
- Sep 30, 2026been wiring Cursor / Claude Code with more MCP lately found upstash/context7 — current lib docs into the agent so it stops guessing stale… — @cdevmkt.bsky.social2 likes and reposts · 1 reply
31 more on Bluesky
- Sep 4, 2026📦 upstash / context7 ⭐ 61,607 (+47) 🗒 TypeScript Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors — @github-trending-js.bsky.social2 likes and reposts
- Jan 24, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 upstash / context7 ⭐ 43,286 (+166) 🗒 TypeScript Context7 MCP Server -- Up-to-date code documentation… — @github-trending-js.bsky.social2 likes and reposts
- Sep 19, 2025github.com/upstash/cont... — @randalschwartz.bsky.social2 likes and reposts · 1 reply
- Aug 21, 2025If you’re using any MCP-compatible agents, check out Context7, it’ll grab any relevant documentation for whatever you’re doing. — @erisianrite.com2 likes and reposts · 1 reply
- Jul 14, 2025not sure exactly what you mean, maybe this? context7.com (MCP server: github.com/upstash/cont...) — @indexx.dev2 likes and reposts
- Jul 6, 2025🚀 Skyrocketing! 🚀 (200+ new stars) 📦 upstash / context7 ⭐ 18,029 (+257) 🗒 JavaScript Context7 MCP Server -- Up-to-date code… — @github-trending-js.bsky.social2 likes and reposts
- Jul 3, 2025there's a few of these; the one I hear about most often is github.com/upstash/cont... but I haven't used it — @philpax.me2 likes and reposts · 1 reply
- Nov 17, 20262. github.com/AnswerDotAI... a markdown map of your docs at /llms.txt. Chrome's Lighthouse now checks sites for one 3.… — @astrodevil1.bsky.social1 likes and repost · 1 reply
- Oct 26, 2026Platforma Context7 -- aktuální dokumentace pro AI agenty — @365tipu.cz1 likes and repost
- Jul 18, 2026📦 upstash / context7 ⭐ 59,321 (+71) 🗒 TypeScript Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors — @github-trending-js.bsky.social1 likes and repost
- Apr 30, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 upstash / context7 ⭐ 54,067 (+113) 🗒 TypeScript Context7 Platform -- Up-to-date code documentation for… — @github-trending-js.bsky.social1 likes and repost
- Mar 12, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 upstash / context7 ⭐ 48,692 (+160) 🗒 TypeScript Context7 Platform -- Up-to-date code documentation for… — @github-trending-js.bsky.social1 likes and repost
- Feb 20, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 upstash / context7 ⭐ 46,174 (+130) 🗒 TypeScript Context7 MCP Server -- Up-to-date code documentation… — @github-trending-js.bsky.social1 likes and repost
- Jan 25, 2026The Context7 approach of re-indexing libraries and offering an MCP server that can search all of it is interesting. It doesn't surface new… — @smachlis.bsky.social1 likes and repost
- Jan 16, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 upstash / context7 ⭐ 42,150 (+135) 🗒 TypeScript Context7 MCP Server -- Up-to-date code documentation… — @github-trending-js.bsky.social1 likes and repost
- Dec 30, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 upstash / context7 ⭐ 40,454 (+100) 🗒 TypeScript Context7 MCP Server -- Up-to-date code documentation… — @github-trending-js.bsky.social1 likes and repost
- Nov 11, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 upstash / context7 ⭐ 36,799 (+106) 🗒 JavaScript Context7 MCP Server -- Up-to-date code documentation… — @github-trending-js.bsky.social1 likes and repost
- Nov 7, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 upstash / context7 ⭐ 36,312 (+140) 🗒 JavaScript Context7 MCP Server -- Up-to-date code documentation… — @github-trending-js.bsky.social1 likes and repost
- Oct 28, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 upstash / context7 ⭐ 35,288 (+145) 🗒 JavaScript Context7 MCP Server -- Up-to-date code documentation… — @github-trending-js.bsky.social1 likes and repost
- Oct 13, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 upstash / context7 ⭐ 33,497 (+152) 🗒 JavaScript Context7 MCP Server -- Up-to-date code documentation… — @github-trending-js.bsky.social1 likes and repost
- Oct 4, 2025github.com/upstash/cont... — @trag.dev1 likes and repost
- Oct 3, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 upstash / context7 ⭐ 32,415 (+105) 🗒 JavaScript Context7 MCP Server -- Up-to-date code documentation… — @github-trending-js.bsky.social1 likes and repost
- Sep 15, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 upstash / context7 ⭐ 30,254 (+152) 🗒 JavaScript Context7 MCP Server -- Up-to-date code documentation… — @github-trending-js.bsky.social1 likes and repost
- Aug 15, 2025It’s an MCP server. github.com/upstash/cont... — @pkellner.bsky.social1 likes and repost
- Jul 15, 2025I think the closest to that is context7 github.com/upstash/cont... which your local AI could call and you can self host the mcp server. — @gempir.com1 likes and repost
- Jul 8, 2025바이브 코딩할 때 사용하는 라이브러리를 LLM이 잘 모르거나, LLM의 컷오프 이후에 라이브러리가 갱신되어서 API가 많이 달라지는 경우가 있지요. 그럴 때 Context7을 MCP로 연결하면 꽤 쓸만합니다. 찾아보니 제가 만든 라이브러리인… — @hongminhee.hackers.pub.ap.brid.gy1 likes and repost
- Jun 27, 2025🚀 Skyrocketing! 🚀 (200+ new stars) 📦 upstash / context7 ⭐ 15,257 (+240) 🗒 JavaScript Context7 MCP Server -- Up-to-date code… — @github-trending-js.bsky.social1 likes and repost
- Jun 23, 2025Get better answers and less hallucinations with github.com/upstash/cont... LLMs are typically trained on data that's 6-18 months old by the… — @akhansari.tech1 likes and repost
- Apr 25, 2025Set up Context7 via MCP settings & learn more: github.com/upstash/con... — @thankscline.bsky.social1 likes and repost
- Aug 30, 2025library devs you should know about these guys: github.com/upstash/context7 they scrape your library docs to inject into LLMs. they have… — @0x4d6165.wanderingwires.net.ap.brid.gy0 likes and reposts · 2 replies
- Jul 12, 2025Context 7 - has latest docs for most used programming languages github.com/upstash/cont... — @debashishsahu.com0 likes and reposts · 1 reply
On Hacker News · 1
- Apr 22, 2025Context7 MCP Server: Up-to-date documentation for LLMs and AI code editors3 points
Used with
Projects with it also use domain-modeling, codebase-design and 6 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
AWSSkilldomain-modeling
Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.
Also in 4 projects that use this
AWSSkillcodebase-design
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
Also in 3 projects that use this
OpenAISkilldispatching-parallel-agents
Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies
Also in 3 projects that use this
OpenAISkillsystematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
Also in 3 projects that use this
VercelSkillfind-skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
Also in 3 projects that use this
VercelSkillfrontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
Also in 3 projects that use this
- +2 more from aws
Other versions12 projects use a version of this.
Word for word · 1
- mxyhi/ok-skills★ 492100% same
Edited · 11
- MorningStar0709/trae-agent-enhancements★ 1856% same
- zcaceres/skills★ 776% same
- aaronbrethorst/claude-skills★ 484% same
- X-FRI/skills★ 276% same
- BGLuis/skills★ 172% same
- jd-solanki/krutrimbox★ 1100% same
- sagnikmitra/skills★ 172% same
- Enjoyoer/loadout★ 069% same
- getlikeman/getlikemanAiFrontendDevelopmentConfig★ 084% same
- J4NN0/skills★ 084% same
1 more not listed
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository2 other files it gives its agents.
- context7-cliSkill
- context7-mcpSkill
The file
We split this skill into the rules it gives an agent
11 rules. 6 are common, 0 are distinctive, and 5 are very specific to this project.
6
Common
Most of the 11 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Run commands with npx ctx7@latest so setup always uses the latest CLI without a global install:
- Very specific: line 63
Use the official library name with proper punctuation (e.g., "Next.js" not "nextjs", "Customer.io" not "customerio", "Three.js" not …
- Common: line 88
If multiple good matches exist, acknowledge this but proceed with the most relevant one
- Common: line 89
If no good matches exist, clearly state this and suggest query refinements
- Common: line 94
If the user mentions a specific version, use a version-specific library ID:
- Common: line 146
If a command fails with a quota error ("Monthly quota reached" or "quota exceeded"):
- Common: line 149
If they cannot or choose not to authenticate, answer from training knowledge and clearly note it may be outdated
- Very specific: line 151
Do not silently fall back to training data — always tell the user why Context7 was not used.
- Very specific: line 156
Always run npx ctx7@latest library first — npx ctx7@latest docs react "hooks" will fail without a valid ID
- Very specific: line 157
Use descriptive queries, not single words — "React useEffect cleanup function" not "hooks"
- Common: line 159
Do not include sensitive information (API keys, passwords, credentials) in queries
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Documentation Lookup
Retrieve current documentation and code examples for any library using the Context7 CLI.
Run commands with npx ctx7@latest so setup always uses the latest CLI without a global install:
npx ctx7@latest library <name> "<query>"
npx ctx7@latest docs <libraryId> "<query>"Optionally install globally if you prefer a bare ctx7 command:
npm install -g ctx7@latestWorkflow
Two-step process: resolve the library name to an ID, then query docs with that ID.
# Step 1: Resolve library ID
npx ctx7@latest library <name> "<query>"
# Step 2: Query documentation
npx ctx7@latest docs <libraryId> "<query>"You MUST call library first to obtain a valid library ID UNLESS the user explicitly provides a library ID in the format /org/project or /org/project/version.
IMPORTANT: Do not run these commands more than 3 times per question. If you cannot find what you need after 3 attempts, use the best result you have.
Step 1: Resolve a Library
Resolves a package/product name to a Context7-compatible library ID and returns matching libraries.
npx ctx7@latest library React "How to clean up useEffect with async operations"
npx ctx7@latest library "Next.js" "How to set up app router with middleware"
npx ctx7@latest library Prisma "How to define one-to-many relations with cascade delete"Use the official library name with proper punctuation (e.g., "Next.js" not "nextjs", "Customer.io" not "customerio", "Three.js" not "threejs"). If results look wrong, try alternate spellings such as next.js before changing the query.
Always pass a query argument — it is required and directly affects result ranking. Use the user's intent to form the query, which helps disambiguate when multiple libraries share a similar name. Do not include any sensitive or confidential information such as API keys, passwords, credentials, personal data, or proprietary code in your query.
Result fields
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 is
/org/project/version.
Selection process
- Analyze the query to understand what library/package the user is looking for
- Select 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 (higher is better, 100 is the maximum)
- 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
Version-specific IDs
If the user mentions a specific version, use a version-specific library ID:
# General (latest indexed)
npx ctx7@latest docs /vercel/next.js "How to set up app router"
# Version-specific
npx ctx7@latest docs /vercel/next.js/v14.3.0-canary.87 "How to set up app router"The available versions are listed in the library command output. Use the closest match to what the user specified.
Step 2: Query Documentation
Retrieves up-to-date documentation and code examples for the resolved library.
npx ctx7@latest docs /facebook/react "How to clean up useEffect with async operations"
npx ctx7@latest docs /vercel/next.js "How to add authentication middleware to app router"
npx ctx7@latest docs /prisma/prisma "How to define one-to-many relations with cascade delete"Writing good queries
The query directly affects the quality of results. Be specific and include relevant details, but keep each query to one topic — if the question spans multiple distinct concepts, run a separate docs command per concept instead of combining them, unless the question is about how the concepts interact. Do not include any sensitive or confidential information such as API keys, passwords, credentials, personal data, or proprietary code in your query.
| Quality | Example |
| Good | "How to set up authentication with JWT in Express.js" |
| Good | "React useEffect cleanup function with async operations" |
| Bad (too vague) | "auth" |
| Bad (too vague) | "hooks" |
| Bad (too broad) | "routing and auth and caching in Next.js" |
Describe what to look up in the library's documentation, rather than the task to complete — vague one-word queries return generic results, and multi-topic queries dilute ranking and return shallow results for each topic.
The output contains two types of content: code snippets (titled, with language-tagged blocks) and info snippets (prose explanations with breadcrumb context).
Authentication
Works without authentication. For higher rate limits:
# Option A: environment variable
export CONTEXT7_API_KEY=your_key
# Option B: OAuth login
npx ctx7@latest loginError Handling
If a command fails with a quota error ("Monthly quota reached" or "quota exceeded"):
- Inform the user their Context7 quota is exhausted
- Suggest they authenticate for higher limits:
npx ctx7@latest login - If they cannot or choose not to authenticate, answer from training knowledge and clearly note it may be outdated
Do not silently fall back to training data — always tell the user why Context7 was not used.
Common Mistakes
- Library IDs require a
/prefix —/facebook/reactnotfacebook/react - Always run
npx ctx7@latest libraryfirst —npx ctx7@latest docs react "hooks"will fail without a valid ID - Use descriptive queries, not single words —
"React useEffect cleanup function"not"hooks" - One topic per query — split
"routing and auth and caching"into a separatedocscommand per concept, unless the question is about how they interact - Do not include sensitive information (API keys, passwords, credentials) in queries
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

