Live Library Documentation
upstash
Always-current package and framework documentation retrieval via the Context7 MCP server.
- Installs
- 57.4k
- Namespace
- context7
- Version
- >=1.0.0 <2.0.0
- Last attach
- reviewed1 months ago
Add to your mcp.json
{
"mcpServers": {
"context7": {
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp"
]
}
}
}Attach in a FrootAI play (fai-manifest)
mcp_scope:
attached:
- context7Authentication
no key required for basic public doc lookups; set CONTEXT7_API_KEY (or pass `--api-key`) for higher rate limits and private-repo docs.
No credentials required.
Environment variables
| Variable | Required | Auth mode | Description |
|---|---|---|---|
| CONTEXT7_API_KEY | no | api-key | Optional Context7 API key for higher rate limits and private-repo docs. Anonymous use works for basic public doc lookups. Equivalent to the `--api-key` CLI flag (the flag takes precedence when both are set); pass via env, never inline in args (doctrine #6). |
| CONTEXT7_API_URL | no | any | Optional Context7 API endpoint override; defaults to https://context7.com/api. Set when routing through a self-hosted or proxied Context7 backend. |
| HTTPS_PROXY | no | any | Optional standard HTTP(S) egress proxy (also reads `https_proxy`). Set when the host requires an outbound proxy to reach the Context7 API. |
| NODE_EXTRA_CA_CERTS | no | any | Optional path to an extra CA-certificate bundle for TLS — for corporate proxies or certificate-inspecting gateways that re-sign the Context7 endpoint. |
Sample tools
context7.resolve-library-idResolve a package/framework name (`libraryName`) to a Context7-compatible library id.
context7.get-library-docsFetch current documentation for a resolved library id (`context7CompatibleLibraryID`), optionally scoped by `topic` and paginated via `page`.
Used in recipes
FAI cookbook recipes that attach context7.
- Recipe 20: Author a Play with MCP Scope
- Recipe 24: Research-to-Notion Workflow (Context7 + Tavily + Notion)
- Recipe 32: Firecrawl Research Pipeline (Firecrawl + Tavily + Context7)
- Recipe 33: Elastic Log Analysis (Elastic + Context7 + MS Learn)
- Recipe 36: PDF to Research Deck (Markitdown + Context7 + Tavily)
Destructive-action audit
No destructive tools — audited read-only
Destructive-action audit (X2.18): no destructive tools — documentation retrieval is read-only.
Known limitations
- Read-only documentation retrieval; cannot modify any resource.
- Anonymous use is rate-limited — set CONTEXT7_API_KEY for production workloads and private-repo docs.
- Network egress to the Context7 API is required; behind a proxy set HTTPS_PROXY (and NODE_EXTRA_CA_CERTS for a custom CA bundle).
Spec contributors
Maintainers who landed commits onmcp-specs/context7.json.
- pspsbali
Freshness
When this spec was last reviewed by a maintainer and last machine-validated against the live server.
- Spec last reviewed
- 1 months ago(2026-06-25)
- Auto-validated
- never