All servers
C

Context7

Up-to-date, version-specific docs for any library, on demand.

Documentation

Stops your AI from hallucinating APIs by feeding it real, version-specific docs on demand.

Context7, by Upstash, pulls current, version-specific documentation and real code examples straight from a library's source and injects them into the model's context. It exists to stop models from answering with outdated or hallucinated APIs, so coding assistants get accurate, up-to-date docs for whatever framework, SDK, or tool you're working with.

Transport
http
Authentication
No auth
Endpoint
https://mcp.context7.com/mcp

Works with no authentication. An optional free Context7 API key (passed as a CONTEXT7_API_KEY header) raises rate limits.

What you can do

  • Fetch up-to-date, version-specific library docs
  • Pull real code examples from source
  • Resolve a library name to its Context7 ID
  • Query docs by topic for any framework
  • Target a specific version of a library
  • Avoid hallucinated or outdated API answers

Try asking

How do I set up Next.js 15 middleware? use context7
Implement basic authentication with Supabase. use context7
Show me the current API for the Stripe Node SDK. use context7

Tools it exposes

A sample of the tools available once connected.

resolve-library-idquery-docs

Set it up

One click adds Context7 to Cursor. Cursor must be installed.

Add to Cursor
Official Context7 MCP docs