← mcp serversContext7
Enables AI agents to access current documentation for popular libraries and frameworks through the Model Context Protocol. Resolves library names to documentation sources and retrieves relevant, up-to-date docs on demand. Eliminates the problem of outdated training data for library APIs.
Package
| Registry | npm (stdio) |
| Package | @upstash/context7-mcp@4.0.4 |
| Integrity | sha512-7SO1no1tabPvC8OK8j1BBrUTysoCoUP/wHhzBTD53CDqJFKuPBxWH5MBl708vX1UwY3Ymd183SM4zLgJmwqYag== |
| Lockfile | package-lock.json sha512-9X462ZJuZnEyebZ14fI7rrbNg4bkAh617aufO5EvROvVB9yetAN9Zw0QtQ90HPVK3ahY32QVXFTtGpi84wxkKw== |
| Entry | dist/index.js |
| Install scripts | none allowed |
Configuration
Optional. Without a key the server works with basic rate limits; an API key from the Context7 dashboard raises rate limits and enables private repositories. — get credentials
| Key | Name | Kind | Required | Secret | Format | Default / choices |
|---|
CONTEXT7_API_KEY | Context7 API Key Context7 API key (optional; raises rate limits and enables private repositories) | env | no | yes | string | |
Tools (2)
From the test run on 2026-10-23 (darwin-arm64, linux-x64, Node 24) — starts without credentials.
query-docs | Retrieves and queries up-to-date documentation and code examples from Context7 for any programming library or framework. params: libraryId*, query* |
resolve-library-id | Resolves a package/product name to a Context7-compatible library ID and returns matching libraries. params: libraryName*, query* |
Security Assessment
| Level | safe |
| Permissions | read:documentation |
| Data Exposure | none |
| Requires Supervisor | No |
| Risk Notes | Read-only access to library documentation. |
| Review | pass · community · 2026-03-16 |
| Runtime | engines.node >=20.18.1 · native modules: no · 22.6 MB installed |
When to Use
| Use | When the agent needs up-to-date documentation for libraries or frameworks to write correct code. |
| Do not use | When general web search is needed rather than specific library documentation. |
| Input / Output | text → text, markdown |
io.github.upstash/context7 · v4.0.4 · Category: search · Free tier: Yes · Source · Website