DEV Community

curatedmcp for CuratedMCP

Posted on • Originally published at curatedmcp.com

Context7 MCP: Stop Fighting Outdated AI Docs

Install guide and config at curatedmcp.com

Context7 MCP: Stop Fighting Outdated AI Docs

Your AI coding assistant is confident. Too confident. It suggests a Next.js pattern that was deprecated two versions ago. It recommends a Supabase API that no longer exists. It confidently hallucinates because its training data is stale.

Context7 MCP solves this by injecting live, version-specific documentation directly into your AI's context window—before it answers your question. No more guessing which framework version your assistant is thinking about. No API keys. No friction.

What It Does

Context7 is an MCP server that fetches current documentation for thousands of libraries and frameworks, then feeds it to Claude, Cursor, or Windsurf in real time. Instead of relying on training data cutoffs, your AI assistant reads the actual docs—the version you're using—before generating code.

This unlocks a critical capability: AI that doesn't hallucinate about APIs. When you ask Claude how to set up authentication in Next.js 15, it reads Next.js 15's official docs, not guesses based on data from 2023. When you query React Server Components in Cursor, you get current patterns. When you ask Windsurf about Supabase's latest client, it has the real API in context.

The server caches popular libraries (React, Next.js, Vercel, Supabase, etc.) for instant responses and supports thousands more on-demand. It's lightweight, requires zero authentication, and works with any MCP-compatible client.

How to Install

npx -y @upstash/context7-mcp@latest
Enter fullscreen mode Exit fullscreen mode

For Claude Desktop, add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "context7-mcp": {
      "command": "npx -y @upstash/context7-mcp@latest"
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

Restart Claude Desktop. Context7 is now available as a tool in your context menu.

Real-World Use Cases

  • Migrating frameworks with confidence: Ask Claude to help upgrade your Next.js app to version 15. Context7 pulls the actual migration guide and current API docs, so Claude suggests real patterns, not deprecated ones.
  • Learning a new library fast: You're adopting Supabase for the first time. Ask Cursor for setup code. Instead of outdated examples, Cursor reads the current official docs and generates working code on the first try.
  • Code review with context: Paste legacy code into Windsurf and ask "is this pattern still recommended?" Windsurf fetches the current best practices for that framework and gives you an informed answer.

Full install guides for Claude Desktop, Cursor, Windsurf, and more at CuratedMCP.

Top comments (0)