CuratedMCP
β™Š
Gemini CLI
Free

How to Install Context7 MCP in Gemini CLI

Inject up-to-date, version-specific library docs directly into your AI prompts

What Context7 MCP does

Context7 is the #1 most-viewed MCP server on FastMCP (11,000+ views). It solves one of the biggest frustrations with AI coding assistants: outdated documentation. Instead of relying on training data that may be months or years old, Context7 fetches current, version-specific docs and injects them directly into your AI's context. Features: - Fetch current documentation for any library or framework - Version-specific docs β€” get Next.js 15 docs, not Next.js 13 - Code examples directly from official sources - Supports thousands of libraries (React, Next.js, Vercel, Supabase, etc.) - Fast cached responses for popular libraries - Works with Claude Desktop, Cursor, Windsurf, and all MCP clients Real-world impact: Before Context7: Claude suggests deprecated Next.js 13 page router patterns After Context7: Claude adapts to Next.js 15 App Router with current APIs This is the single most impactful MCP server for developers who code with AI assistants daily. No API key required.

documentation
context
libraries
frameworks
coding

Installation steps

  1. 1Copy the config below
  2. 2Open ~/.gemini/settings.json
  3. 3Paste inside "mcpServers": {}
  4. 4Restart Gemini CLI

Configuration

File location: ~/.gemini/settings.json

settings.jsonjson
{
  "context7Mcp": {
    "command": "npx",
    "args": [
      "-y",
      "@upstash/context7-mcp@latest"
    ]
  }
}
Full server details GitHub Open Config Editor

Install in other clients

For maintainers

If you maintain Context7 MCP, add this badge to your README to show it's verified on CuratedMCP:

CuratedMCP Verified
[![CuratedMCP Verified](https://curatedmcp.com/api/badge/context7-mcp)](https://curatedmcp.com/marketplace/context7-mcp)

Related servers