Look up current, version-specific library documentation and code examples from Context7's index, via the hosted endpoint (keyless, API key or OAuth) or a local npm server.
Fetching up-to-date docs and code snippets for public libraries while coding.
Resolving a library name to a Context7 library ID, then querying a topic or version.
Private repository docs on a Pro/Enterprise teamspace.
Choose another option when
Offline use or self-contained indexing; the API backend, parser and crawler are private Context7 services.
Treating returned docs as vetted; Context7 says library content is community-contributed and not guaranteed accurate or secure.
Private repositories on the Free plan.
Vendor cloud
Read only · no declared code execution. `Authorization: Bearer <CONTEXT7_API_KEY>` header (key prefix ctx7sk) from a free Context7 account. How the header secret is stored depends on the client. Keys are issued in the Context7 dashboard (context7.com/dashboard).
Software: Not applicable; hosting: Not applicable; external API: Free tier.
Vendor cloud
Read only · no declared code execution. MCP OAuth spec flow; the /mcp/oauth endpoint asks every request without a sign-in to sign in. User picks a teamspace during authorization. Most clients need an explicit authenticate step after adding the URL (e.g. /mcp in Claude Code). Remote only; not available over stdio.
Software: Not applicable; hosting: Not applicable; external API: Free tier.
No setup recipe published
This is a reference entry. The catalog has no published setup recipe for this server and does not generate one.
Use the publisher’s own instructions in the sources on this page. A listing here is not a compatibility test.
`Authorization: Bearer <CONTEXT7_API_KEY>` header (key prefix ctx7sk) from a free Context7 account. How the header secret is stored depends on the client. Keys are issued in the Context7 dashboard (context7.com/dashboard).
Runtime
Hosted service (version not recorded)
Data contact
Public web content, Private knowledge, Account information
Access and execution
Read only · no declared code execution
Permissions
Same tools as hosted-keyless; with a key, the teamspace's private sources (Pro/Enterprise) are reachable and dashboard-enabled experimental tools are listed. Usage is attributed to the key's member and teamspace. Source declared
Free: 1,000 API calls/month (MCP, CLI, Search and REST API share it), then blocked with 20 bonus calls per day until the month resets; per-minute rate limit also applies. Pro: $10 per seat/month, 2,000 calls per seat/month, then $5 per 1,000; private repo parsing $5 per 1M tokens. Enterprise: custom.
MCP OAuth spec flow; the /mcp/oauth endpoint asks every request without a sign-in to sign in. User picks a teamspace during authorization. Most clients need an explicit authenticate step after adding the URL (e.g. /mcp in Claude Code). Remote only; not available over stdio.
Runtime
Hosted service (version not recorded)
Data contact
Public web content, Private knowledge, Account information
Access and execution
Read only · no declared code execution
Permissions
Same tools and data flow as hosted-api-key, scoped to the teamspace chosen at sign-in. Source declared
Your client host · Local process · stdio · npm @upstash/context7-mcp 4.7.3
Reference only
Version
4.7.3
Authentication
API key
Account and credentials
CONTEXT7_API_KEY environment variable, or --api-key flag (flag wins). Key optional per Requirements (higher limits, private repos). Nearly every vendor client example passes the key as a command-line argument (`--api-key YOUR_API_KEY`), which exposes it in process listings and config args; a recipe should use the env var. OAuth not supported over stdio. Honors HTTPS_PROXY.
Runtime
Node.js >=20.18.1
Data contact
Public web content, Private knowledge, Account information
Access and execution
Read only · no declared code execution
Permissions
Same tools; --experimental / CONTEXT7_EXPERIMENTAL=1 lists all experimental code tools. Local server calls the Context7 API (REST base https://context7.com/api/... per API guide; the exact host the package calls is inferred, not quoted). Package depends on OpenTelemetry exporters; whether the stdio server emits telemetry by default is not stated. Source declared
External destinations
context7.com · additional destinations are unknown
No supported recipe is published for this server. The sources below and client compatibility guide remain available.
Decision notes
Hosted endpoint offers API-key and OAuth access; the local npm server uses an API key or runs keyless.
Conditions: The vendor also describes keyless use of the hosted endpoint, but its pages disagree on whether a credential is required and it has not been observed, so it is not listed. Keyless limits are unpublished.
Context7's documentation pages (the .md pages under context7.com/docs) open with instructions addressed to AI agents: fetch a documentation index, query a docs 'ask' endpoint, and send page ratings with comments to a feedback URL.
Conditions: Seen on the vendor's documentation pages when checked. This is text on the documentation site, not output of the MCP server's tools; an agent that reads those pages may act on it.