Context7

Context7 MCP Connector for Claude

A+

Empower AI agents via Context7 — pull up-to-date documentation and code examples for any library or framework directly into your workspace.

2 tools Official Updated Jun 28, 2026 Official Vinkius Partner

Connect your Context7 account to any AI agent and provide it with the most up-to-date, version-specific technical documentation through natural conversation.

What you can do

  • Library Discovery — Resolve fuzzy framework names (e.g., 'react', 'tailwind') into deterministic paths and specific versions needed for accurate documentation
  • Live Docs Querying — Analyze specific localized variables and retrieve raw Markdown documentation chunks to ground your agent in technical truths
  • Code Example Extraction — Pull valid, version-specific code examples for any component or function directly into your development flow
  • RAG for Developers — Use Context7 as a documentation-specialized RAG layer to ensure your agent never hallucinates outdated API signatures
  • Up-to-date Knowledge — Access documentation that is synchronized with the latest releases, bypassing the training cutoff limits of standard LLMs

How it works

  1. Subscribe to this server
  2. Enter your Context7 API Key (found in your Context7/Upstash Dashboard)
  3. Start querying technical documentation from Claude, Cursor, or any MCP-compatible client

Who is this for?

  • Software Developers — pull specific API documentation and code snippets without leaving the IDE or searching manually
  • AI Engineers — ground coding agents in real-time technical documentation to improve code generation accuracy
  • Technical Writers — verify version-specific API signatures and cross-reference documentation blocks quickly
  • Rapid Prototypers — instantly retrieve boilerplates and component examples for new frameworks and libraries
technical-documentationvector-storageai-contextcode-examplesknowledge-retrieval

2 tools expose this connector's capabilities to your AI agent.

resolve_library

g. react) into deterministic paths (e.g. /facebook/react/18.2.0) needed for deep documentation fetching. Find the correct exact library ID and latest version matching a framework or library search query

query_docs

Query documentation and code examples for a specific library ID (from resolve_library tool) about a certain topic

See how to talk to your AI agent using Context7.

Resolve the library ID for 'nextjs'

I've resolved 'nextjs' to the following IDs: 'vercel/next.js/14.1.0' (latest), 'vercel/next.js/13.5.6', and 'vercel/next.js/12.3.4'. Which version would you like to query documentation for?

Show me how to use 'App Router' in Next.js 14

Retrieving documentation for 'App Router' in Next.js 14.1.0... [Agent pulls official Markdown segments detailing layout.js and page.js structure with code examples].

What are the new features in Tailwind CSS v4?

Querying Tailwind CSS v4.0.0 docs... The main updates include the new high-performance engine, native CSS variables support, and simplified configuration. I can provide the exact code examples for these new features.

Yes. First, use the 'resolve_library' tool with 'tailwindcss'. It will return the deterministic ID and version (e.g., 'tailwindcss/3.4.1'). Then, use 'query_docs' to pull the exact Markdown blocks for your specific topic.

Related Connectors