DEVELOPER DOCUMENTATION / Upstash
Context7 MCP
Resolves a library identity and retrieves documentation relevant to a specific coding question through Context7's hosted index.
“Up-to-date Code Docs For Any Prompt”
01 / THE REASONING
Why this made the selection.
- Separates library identification from documentation retrieval, making the selected upstream library visible before an answer is assembled.
- Accepts a task-specific query rather than returning an undifferentiated documentation dump.
02 / THE REVIEW RECORD
What we actually inspected.
Source review has boundaries.
A clear record is more useful than a “safe” badge.
Material inspected
- README.md: setup flow, hosted endpoint, tool arguments and content disclaimer.
- package.json: TypeScript monorepo and published MCP package identity.
- LICENSE: MIT terms for the adapter repository.
- packages/mcp/src/index.ts
- packages/mcp/package.json
- docs/resources/all-clients.mdx: per-client configuration examples, OAuth endpoint and tool parameters.
Our findings
- The two documented tools have different roles: resolve-library-id selects a library, while query-docs retrieves relevant material for a known ID.
- The current setup command can install either CLI/Skills or MCP mode; choosing the mode is part of setup.
- A local adapter is not an offline documentation index.
- The Claude Desktop example in docs/resources/all-clients.mdx launches npx -y @upstash/context7-mcp with --api-key YOUR_API_KEY. The same file documents a remote https://mcp.context7.com/mcp entry with an Authorization: Bearer header.
- packages/mcp/src/index.ts registers resolve-library-id and query-docs with readOnlyHint true and destructiveHint false. It refuses --api-key with --transport http, where the key belongs in an HTTP header.
- At this commit the README says the ctx7 CLI needs Node.js 22.13 or newer (Node.js 18 at the previous pin), and query-docs takes an optional language parameter.
Not established by this review
- Server startup, authentication and tool execution were not tested.
The review applies to the material and revision named here. A newer upstream release can change its behavior.
03 / PUT IT TO WORK
Connect a server deliberately.
DOCUMENTED COMMAND
npx ctx7 setup Copying does not execute this command. It may retrieve a newer version than the reviewed source.
- Run the official setup command and select MCP mode, or configure the documented https://mcp.context7.com/mcp endpoint manually.
- Complete OAuth/API-key setup through the official dashboard and client instructions; do not put account credentials in a shared configuration.
Before you start
- A compatible MCP client.
- Node.js 22.13 or newer for the setup CLI; a Context7 account/API key is recommended for higher service limits.
Documented configuration example
Use the client and authentication context described in the setup guidance. Configuration formats vary between hosts.
{
"mcpServers": {
"context7": {
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp",
"--api-key",
"YOUR_API_KEY"
]
}
}
} 04 / FOLLOW THE EVIDENCE
The source trail.
Our notes are separate from the original resource.
Check upstream before adopting a new version.
https://github.com/upstash/context7/blob/2dcbb295e4a2664b3b34aa6fa0c0b4f33fd08101/README.md
Supports: summary, install, compatibility, access, transports, whySelected, bestFor, limitations, review
- Monorepo manifest ↗Checked
https://github.com/upstash/context7/blob/2dcbb295e4a2664b3b34aa6fa0c0b4f33fd08101/package.json
Supports: language, review
- Repository licence ↗Checked
https://github.com/upstash/context7/blob/2dcbb295e4a2664b3b34aa6fa0c0b4f33fd08101/LICENSE
Supports: license
https://github.com/upstash/context7/blob/2dcbb295e4a2664b3b34aa6fa0c0b4f33fd08101/packages/mcp/src/index.ts
Supports: review, transports
https://github.com/upstash/context7/blob/2dcbb295e4a2664b3b34aa6fa0c0b4f33fd08101/packages/mcp/package.json
Supports: language, review, install
https://github.com/upstash/context7/blob/2dcbb295e4a2664b3b34aa6fa0c0b4f33fd08101/docs/resources/all-clients.mdx
Supports: configExample, access, review, OAuth only on the remote /mcp/oauth endpoint