Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Every developer using AI assistants knows the failure mode: confident code against an API that changed two majors ago, imports from packages that don't exist, config options the library never had. The model's training data froze; the ecosystem didn't. Context7 attacks exactly this — on request, it pulls current, version-specific documentation and working code examples for the library you're using and injects them into the model's context.
The workflow is almost invisible, which is its charm. Add "use context7" to a prompt (or let your client's rules invoke it automatically) and the assistant first resolves the library — Next.js 15, say, not Next.js-in-general — then fetches focused documentation for the topic at hand before answering. The difference shows immediately with fast-moving frameworks: App Router idioms instead of pages-directory fossils, current Tailwind syntax, today's Supabase client instead of 2023's.
Under the hood, Upstash maintains parsed, indexed documentation for tens of thousands of libraries, refreshed continuously. The two tools are appropriately boring: resolve-library-id finds the right library, get-library-docs fetches docs for it, optionally scoped to a topic like "routing" or "authentication".
It's free for personal use without an API key, though creating one raises rate limits. Available remotely (mcp.context7.com) or locally via npm. If you install only one documentation-related MCP server, this is the category winner — cheap to run, zero workflow disruption, and it fixes the single most common way AI coding assistance goes wrong.
/vercel/next.js, /supabase/supabase — hand it over directly and skip the lookup step; version-pinned IDs work the same way.context7.json at the repo root tunes how yours gets parsed.Code generation grounded in the library's actual current API instead of training-data memories.
Ask migration questions with the real changelog and new API in context.
Current examples for the exact version in your package.json, not blog posts from three versions ago.
| Tool | What it does |
|---|---|
| resolve-library-id | Match a library name to Context7's index (e.g. 'nextjs' → /vercel/next.js) |
| get-library-docs | Fetch current docs for a library, optionally scoped to a topic |
claude mcp add --transport http context7 https://mcp.context7.com/mcpAdd an API key header for higher rate limits: --header "CONTEXT7_API_KEY: your-key".
None for the remote server at light usage. Optional free API key for higher limits; Node.js 18+ if running locally.
| Variable | Description | Required |
|---|---|---|
| CONTEXT7_API_KEY | Optional key from context7.com for higher rate limits | Optional |
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.
Give your coding agent the full DevTools toolbox: traces, network, console, heap snapshots and Lighthouse.