🌐
GitHub
github.com › upstash › context7
GitHub - upstash/context7: Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Context7 MCP pulls up-to-date, version-specific documentation and code examples straight from the source — and places them directly into your prompt. Add use context7 to your prompt (or set up a rule to auto-invoke): Create a Next.js middleware that checks for a valid JWT in cookies and redirects unauthenticated users to `/login`. use context7 · Configure a Cloudflare Worker script to cache JSON API ...
Starred by 39.9K users
Forked by 2K users
Languages   TypeScript 76.3% | JavaScript 22.7% | Dockerfile 1.0%
🌐
LobeHub
lobehub.com › mcp › upstash-context7
Context7 MCP - Up-to-date Code Docs For Any Prompt | MCP Servers · LobeHub
2 hours ago - ... Create a Next.js middleware that checks for a valid JWT in cookies and redirects unauthenticated users to `/login`. use context7 ... Configure a Cloudflare Worker script to cache JSON API responses for five minutes.
🌐
Apidog
apidog.com › blog › context7-mcp-server
How to Install and Use Context7 MCP Server
July 17, 2025 - Version-Specific Code Examples Receive examples that are accurate for the exact version of the library you’re using. Boosted Productivity Eliminate the need for repetitive manual searches and reduce time spent debugging outdated code. Universal Compatibility Works with major MCP-compatible clients including Claude Desktop, Cursor, Windsurf, and more. ... Create a CRUD API in FastAPI with authentication. use context7
🌐
Upstash
upstash.com › blog › context7-mcp
Context7 MCP: Up-to-Date Docs for Any Cursor Prompt | Upstash Blog
We fetch the latest docs and code examples straight from the official documentation and inject them into the model's context. ... The Context7 MCP uses the Model Context Protocol, Anthropic's Model Context Protocol, an open standard that lets LLMs talk to external tools like Context7.
🌐
DEV Community
dev.to › mehmetakar › context7-mcp-tutorial-3he2
Context7 MCP Tutorial - DEV Community
April 25, 2025 - Context7 MCP is a tool that supercharges AI prompts with real-time, version-specific documentation and code examples. Whether you're using Claude, Cursor, VS Code, or another Model Context Protocol (MCP) client, Context7 helps eliminate hallucinated ...
🌐
Context7
context7.com › docs › api-guide
API Guide - Context7 MCP
View current usage and reset windows in the dashboard. When you exceed rate limits, the API returns a 429 status code: ... # Focus on routing-specific documentation curl "https://context7.com/api/v2/docs/code/vercel/next.js?topic=routing" \ ...
🌐
GitHub
github.com › NimbleBrainInc › mcp-context7
GitHub - NimbleBrainInc/mcp-context7: Context7 MCP Server
{ "tool": "get_code_examples", "library": "pandas", "use_case": "filter dataframe by multiple conditions" } { "tool": "explain_code", "code": "useEffect(() => { fetchData(); }, [id]);", "language": "javascript" } { "tool": "compare_libraries", "libraries": ["express", "fastify", "koa"], "use_case": "REST API server" }
Author   NimbleBrainInc
🌐
Playbooks
playbooks.com › mcp › upstash-context7
Context7 (Documentation Database) MCP server for AI agents
{ "mcpServers": { "context7": { "command": "npx", "args": [ "-y", "@upstash/context7-mcp" ] } } } To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one.
🌐
Smithery
smithery.ai › server › @upstash › context7-mcp
Context7 | MCP Server | Smithery
@upstash/context7-mcp•last deployed 3 months ago ... Fetch up-to-date, version-specific documentation and code examples directly into your prompts. Enhance your coding experience by eliminating outdated information and hallucinated APIs.
Find elsewhere
🌐
Openai
developers.openai.com › codex › mcp
Model Context Protocol
[mcp_servers.context7] command = "npx" args = ["-y", "@upstash/context7-mcp"] [mcp_servers.context7.env] MY_ENV_VAR = "MY_ENV_VALUE"
🌐
Trevor Lasn
trevorlasn.com › blog › context7-mcp
Context7 MCP: Up-to-date Docs for LLMs and AI code editors
November 1, 2025 - Context7 is an MCP server that injects up-to-date documentation directly into your LLM’s context window. It pulls version-specific docs and code examples from a curated database of library documentation.
🌐
MCP Curator
mcpcurator.com › mcp › context7-mcp
Context7 MCP - Utilities MCP Server | MCP Curator
{ "mcpServers": { "context7-mcp": ... logging · • TIMEOUT - Request timeout in seconds · Copy · // Example: Basic usage of Context7 MCP const result = await mcpClient.callTool('execute', { input: 'your-input-here', options: { format: 'json', timeout: 30000 } }); ...
🌐
Reddit
reddit.com › r/chatgptcoding › i just found out about context7 mcp server and it's awesome!
r/ChatGPTCoding on Reddit: I just found out about Context7 MCP Server and it's awesome!
April 24, 2025 -

From their Github Repo:

❌ Without Context7

LLMs rely on outdated or generic information about the libraries you use. You get:

  • ❌ Code examples are outdated and based on year-old training data

  • ❌ Hallucinated APIs don't even exist

  • ❌ Generic answers for old package versions

✅ With Context7

Context7 MCP pulls up-to-date, version-specific documentation and code examples straight from the source — and places them directly into your prompt.

Context7 fetches up-to-date code examples and documentation right into your LLM's context.

  • 1️⃣ Write your prompt naturally

  • 2️⃣ Tell the LLM to use context7

  • 3️⃣ Get working code answers

No tab-switching, no hallucinated APIs that don't exist, no outdated code generations.

I have tried it with VS Code + Cline as well as Windsurf, using GPT-4.1-mini as a base model and it works like a charm.

  • Context7 website

  • Github Repo

YT Tutorials on how to use with Cline or Windsurf:

  • Context7: The New MCP Server That Will CHANGE AI Coding (FREE)

  • This is Hands Down the BEST MCP Server for AI Coding Assistants

🌐
Glama
glama.ai › mcp › servers › context7 mcp
Context7 MCP by upstash | Glama
Context7 MCP pulls up-to-date, version-specific documentation and code examples straight from the source — and places them directly into your prompt. ... Create a basic Next.js project with app router. use context7 · Create a script to delete the rows where the city is "" given PostgreSQL credentials. use context7 · Context7 fetches up-to-date code examples and documentation right into your LLM's context. ... No tab-switching, no hallucinated APIs that don't exist, no outdated code generations.
🌐
Claude MCP
claudemcp.com › servers › context7
Context7 MCP - Up-to-date Docs For Any Prompt - Claude MCP Servers
An MCP server integrates the Sonar API to give Claude real-time, web-wide research capabilities, enabling instant access to up-to-date online information for comprehensive, accurate responses.
🌐
ClaudeLog
claudelog.com › home › mcps & add-ons › context7 mcp
Context7 MCP | ClaudeLog
{ "projects": { "/path/to/your/project": { "mcpServers": { "Context7": { "command": "npx", "args": ["-y", "@upstash/context7-mcp"] } } } } }
🌐
GitHub
github.com › mcp › upstash › context7
MCP Registry | Context7 · GitHub
Context7 MCP pulls up-to-date, version-specific documentation and code examples straight from the source — and places them directly into your prompt. Add use context7 to your prompt (or set up a rule to auto-invoke): Create a Next.js middleware that checks for a valid JWT in cookies and redirects unauthenticated users to `/login`. use context7 · Configure a Cloudflare Worker script to cache JSON API ...
🌐
Warp
mcp.so › server › context7 › upstash
Context7 MCP Server
For example: How do I use the new Next.js 'after' function? use context7. Provides version-specific documentation and code examples directly in prompts. Eliminates outdated or generic information that LLMs typically rely on.
🌐
MCP Servers
mcpservers.org › context 7
Context 7 | Awesome MCP Servers
Context7 MCP pulls up-to-date, version-specific documentation and code examples straight from the source — and places them directly into your prompt. Add use context7 to your prompt (or set up a rule to auto-invoke): Create a Next.js middleware that checks for a valid JWT in cookies and redirects unauthenticated users to `/login`. use context7 · Configure a Cloudflare Worker script to cache JSON API ...