Context7
ECOSYSTEM REFERENCEAUTH REQUIREDMITOpen SourceSource: @makemehappy· community reference
Fetches up-to-date documentation and code examples for LLMs and AI code editors directly from the source.
This server requires your own API credentials to function. You can install it via `npx agenticmarket install context7` and provide your credentials during setup, or use the manual config guide below.
Setup Guide
{
"mcpServers": {
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp"
}
}
}Tools
resolve-library-id
Resolves a package or library name into a Context7-compatible library ID and returns matching libraries with metadata such as description, code snippets, reputation, and versions.
query-docs
Retrieves relevant documentation and code examples for a given Context7-compatible library ID based on a natural language query.
Compatibility
About
🚀 Context7 — Real-Time Documentation for AI Coding Agents
Stop hallucinations. Ship with real context.
Context7 is an advanced developer tool that injects up-to-date, version-specific documentation and code examples directly into AI coding agents, eliminating outdated responses and incorrect API usage.
Whether you're using Next.js, Supabase, or deploying on Cloudflare, Context7 ensures your AI assistant works with accurate, real-world data — not stale training knowledge.
🔥 Why Context7 Exists
Modern LLMs struggle with:
- ❌ Outdated documentation (trained on old data)
- ❌ Hallucinated APIs that don’t exist
- ❌ Generic, non-version-specific code
✅ Context7 Fixes This
Context7 dynamically fetches:
- 📘 Latest official documentation
- 💻 Real code examples
- 🔢 Version-specific API references
…and injects it directly into your AI workflow.
⚡ Key Features
🧠 Real-Time Context Injection
Automatically enrich prompts with live documentation from trusted sources.
🔍 Version-Aware Documentation
Supports explicit version targeting (e.g., Next.js 14 middleware).
🛠️ Multiple Integration Modes
-
CLI + Skills
Installs a skill that guides your coding agent to fetch documentation usingctx7CLI commands. -
MCP Server
Enables native tool calling for AI agents via MCP (Model Context Protocol).
⚡ Zero Context Switching
No more tab switching between docs and editor — everything is injected directly into your prompt.
🧪 Example Usage
Without Context7
txtCreate a Next.js middleware that checks JWT in cookies
➡️ Risk:
- Outdated syntax
- Missing APIs
- Incorrect implementation
With Context7
txtCreate a Next.js middleware that checks JWT in cookies and redirects unauthenticated users to `/login`. use context7
✅ Result:
- Latest API usage
- Correct implementation
- Version-aware code
🛠️ Installation
Recommended: Get a free API key for higher rate limits
bashnpx ctx7 setup
This will:
- Authenticate via OAuth
- Generate an API key
- Install CLI or MCP configuration
⚙️ Manual Setup (MCP)
Use the Context7 MCP server:
https://mcp.context7.com/mcp
Pass your API key via:
CONTEXT7_API_KEY
🧠 Pro Tips
🎯 Use Library IDs
txtImplement authentication. use library /supabase/supabase
🔢 Specify Version
txtHow to set up Next.js 14 middleware? use context7
📌 Add Automation Rule
txtAlways use Context7 when I need library/API documentation
🧰 Available Tools
CLI
bashctx7 library <name> <query> ctx7 docs <libraryId> <query>
MCP Tools
resolve-library-id→ Find correct libraryquery-docs→ Fetch relevant documentation
💡 Use Cases
- ⚡ AI coding assistants (Cursor, Claude, etc.)
- 🧑💻 Backend/API development
- 🌐 Frontend frameworks (React, Next.js)
- ☁️ Cloud & edge deployments
- 🧪 Rapid prototyping
🚀 Benefits
- 📉 Reduce hallucinations
- 📈 Improve code accuracy
- ⚡ Faster development cycles
- 🧠 Smarter AI agents
📚 Resources
- Website: https://context7.com
- Docs: https://context7.com/docs
- Dashboard: https://context7.com/dashboard
⚠️ Disclaimer
Context7 aggregates community-contributed documentation. Accuracy, completeness, and security depend on source quality. Use at your own discretion.
🤝 Community
- Twitter: https://x.com/context7ai
- Discord: https://upstash.com/discord
📄 License
MIT
Install and Troubleshooting Intent Coverage
Developer-install and troubleshooting intent for community MCP server listings.
install mcp server / mcp server setup guide
mcp json config example / vscode mcp setup
mcp server not working / mcp tools not showing
mcp server compatibility matrix / cursor vs vscode mcp compatibility
mcp server monetization options / convert community mcp server to paid listing
Related Setup, Debug, and Learning Links
Agent connected but tools ignored
Search servers often hit tool-priority and context-limit issues.
MCP fundamentals
Clarifies protocol behavior behind tool-call decisions.
CLI installation guide
Install baseline for all IDEs before listing-specific setup.
Using servers guide
Covers runtime usage patterns and auth flow.
Cursor setup walkthrough
High-intent setup path for developer troubleshooting journeys.
Troubleshooting: server not working
Common failure modes for install and runtime issues.
Troubleshooting: tools not showing
Covers discovery/listing failures across major IDEs.
Related explore entry: Memory
Keeps same-intent users on matched category and tool shape.
Related explore entry: Roundtable MCP
Keeps same-intent users on matched category and tool shape.
Related explore entry: Sequential Thinking
Keeps same-intent users on matched category and tool shape.
Related explore entry: Everything MCP Server
Keeps same-intent users on matched category and tool shape.
Install this server with the AgenticMarket CLI — you'll be prompted for your API credentials during setup. No manual JSON editing.
$npx agenticmarket install context7Memory
Give your AI assistant persistent memory across conversations. The Memory server stores entities, relations, and observations in a local knowledge graph that persists between sessions.
Roundtable MCP
Multi-model AI council MCP server that enables collaborative reasoning for architecture, debugging, code review, and engineering decisions.
Sequential Thinking
Enhance your AI assistant's reasoning with structured, step-by-step thinking. Supports revisions, branching, and dynamic adjustment of reasoning depth.
Everything MCP Server
The official MCP reference server that exercises every protocol feature — prompts, tools, resources, sampling, and all transports. Built for MCP client developers and testing.
AgenticMarket