# Context7 MCP (VYAGENT Radar #03)

> Inject up-to-date, version-specific library documentation directly into Cursor, Claude Code, and Windsurf prompts.

- **URL**: https://vyagent.com/radar/context7-mcp
- **Published**: 2026-11-25
- **Category**: MCP Server · Live Docs
- **License**: MIT
- **Pricing**: Free open-source MCP server (optional API key for higher rate limits)
- **Agent Ready**: MCP, Open Source
- **Source**: https://github.com/upstash/context7
- **Package / Docs**: https://www.npmjs.com/package/@upstash/context7-mcp

## 1. Friction Solved
LLMs are trained on frozen snapshots of the web, so coding agents routinely hallucinate deprecated flags or mix syntax across major versions of Next.js, Tailwind CSS, Cloudflare Workers, or Hono. Context7 MCP resolves the exact library ID and fetches concise, version-accurate code snippets straight into the model context.

## 2. Best-Fit Scenarios
- Eliminating stale API hallucinations when upgrading fast-moving web frameworks, SDKs, and serverless runtimes.
- Giving AI coding assistants accurate docs inside Cursor, Claude Code, VS Code Copilot, or Zed without manually copy-pasting web pages.
- Cutting wasted prompt tokens by fetching only the targeted API section instead of dumping entire documentation sites.

## 3. Setup (MCP Client Configuration (npx stdio))
```
{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp"]
    }
  }
}
```

## 4. Reality Check & Trade-offs
- Relies on Upstash’s hosted documentation index—requires outbound internet access and cannot index private internal company libraries out of the box.
- Very niche or freshly published packages may have incomplete coverage until indexed; always double-check edge-case signatures in node_modules types.
- Each doc lookup adds one or two tool-call round-trips and extra input tokens, so invoke it when writing against unfamiliar or recently changed APIs rather than every trivial edit.

## 5. Editorial Verdict
One of the highest-leverage MCP servers you can install on day one. It attacks the root cause of AI coding bugs—stale training data—with a single npx line.

## 6. FAQ
### How do I trigger Context7 inside a coding prompt?
Once configured as an MCP server, simply mention "use context7" in your prompt or add a workspace rule instructing the assistant to consult Context7 before using third-party library APIs.

### Does Context7 upload my proprietary source code?
No. The tool only sends the library name and topic query you ask it to look up, not your repository files.
