Context7
OFFICIAL SERVERLets an assistant pull current, version-specific library documentation and code examples into its context
Lets a coding assistant search and fetch curated, versioned API docs and keep notes on them
By Andrew Ng (individual) JavaScript Local · stdio Knowledge and memoryDeveloper tools
66 popularity score ★ 14k ↓ 5.9k/wk
Opens the app, which asks before it adds the server.
claude mcp add context-hub -- npx -y @aisuite/chub{
"mcpServers": {
"context-hub": {
"command": "npx",
"args": [
"-y",
"@aisuite/chub"
]
}
}
}{
"mcpServers": {
"context-hub": {
"command": "npx",
"args": [
"-y",
"@aisuite/chub"
]
}
}
}{
"servers": {
"context-hub": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@aisuite/chub"
]
}
}
}[mcp_servers.context-hub]
command = "npx"
args = ["-y", "@aisuite/chub"]gemini mcp add --scope user context-hub npx -- -y @aisuite/chubCHUB_TELEMETRY |
Optional: Set to 0 to turn off anonymous usage analytics. |
|---|---|
CHUB_FEEDBACK |
Optional: Set to 0 to stop doc ratings being sent to maintainers. |
Context Hub is a collection of curated, versioned documentation for APIs and SDKs, written in markdown and kept in a public GitHub repository, plus the chub command-line tool that searches and fetches it. Its README says it is meant for coding agents rather than people: the agent looks up current docs (for example OpenAI chat or the Stripe API, in a Python or JavaScript variant) instead of guessing from memory.
The npm package @aisuite/chub installs two commands: chub, the CLI, and chub-mcp, an MCP server over stdio. The server exposes search, get, list, annotate and feedback as tools, and the registry of entries as a resource. Docs can be fetched whole or one reference file at a time.
Annotations are local notes an agent attaches to a doc; they persist across sessions and are only included on later fetches when asked, as they are treated as untrusted input. Feedback is an up or down rating sent to the doc's maintainers.
It needs Node.js 18 or later and no account or key. Docs come from the Context Hub CDN by default; a config file at ~/.chub/config.yaml can add other sources, including a local folder of docs.
| Runtime | Node.js |
|---|
chub_searchchub_getchub_listchub_annotatechub_feedback