What is Context7?
Context7 retrieves current library documentation and code examples for coding agents. It focuses on identifying the right library and version so implementation can reference upstream APIs.
Edited by AhaFrame · Definition source: Official project ↗
How it works
Context7 supplies current, version-aware library documentation to an MCP-compatible coding agent. Documentation retrieval supports decisions but does not validate generated code.
Core features
Library identification and documentation lookup
Version-specific documentation context
MCP or CLI/skills integration paths
API keys, account controls and paid private-repository features
Feature reference: Official documentation ↗
What can you use it for?
- Check the API of a library used in a project
- Reduce outdated examples in generated code
- Provide a coding agent with referenced documentation
Your first guided walkthrough
An MCP/skills-capable host; the documented setup CLI requires Node.js 22.13+.
An MCP-compatible client, a dependency with known version and a safe test repo.
- Use the official MCP setup guide to connect Context7 to your client.
- Ask for an API usage example with the target package version and include "use context7".
- Inspect the retrieved documentation version and compare cited signatures to installed packages.
- Compile or test the suggested code; record outdated documentation as an error case.
Try: "Show the current middleware pattern for my installed Next.js version; use context7."
EXPECTED RESULT · VERIFY INDEPENDENTLYA version-matched API example that passes a local test.
Upstream documentation checked: 2026-10-27. No independent functionality test.
Pricing & running costs
Free: 1,000 API calls/month. Pro: US$10/seat/month with 2,000 calls, then US$5 per 1,000 additional calls. Private parsing is separate.
Check official pricing details ↗Pricing checked 2026-10-27. Confirm currency, billing period, included usage and taxes on the official page.
License & limitations
License applies to this project; connected models and services have separate terms.
- Documentation retrieval does not guarantee that generated code is correct.
- Hosted plans have quotas and paid overage; private-repository parsing can cost extra.
Frequently asked questions
Is there a free plan?
Yes. The reviewed plan provides 1,000 API calls per month for public repositories.
Does Pro mean unlimited free calls?
No. The plan includes an allowance, with additional calls billed separately.
Official links & sources
Based on the official sources above. Use cases are editorial examples; source checks are not independent functional tests.
Open upstream repository ↗