Context7 MCP - Up-to-date Docs For Any Cursor Prompt
@upstash
关于 Context7 MCP - Up-to-date Docs For Any Cursor Prompt
Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"context7-mcp": {
"command": "npx",
"args": [
"ctx7",
"setup"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Context7 MCP - Up-to-date Docs For Any Cursor Prompt?
It is an MCP server that injects up-to-date, version-specific library documentation and code examples directly into an LLM’s context, replacing outdated or hallucinated answers. It integrates with coding agents such as Cursor, Claude Code, and OpenCode via either an MCP server or a CLI skills mode. It is designed for developers who use AI coding assistants and want accurate, current API references without tab-switching.
How to use Context7 MCP - Up-to-date Docs For Any Cursor Prompt?
Install using npx ctx7 setup (requires Node.js 18 or newer); the command authenticates via OAuth and generates an API key, then installs either a CLI+Skills or MCP configuration. Alternatively, manually register the server URL https://mcp.context7.com/mcp with your MCP client and pass your API key via the CONTEXT7_API_KEY header. Use the ctx7 library and ctx7 docs CLI commands, or the MCP tools resolve-library-id and query-docs.
Key features of Context7 MCP - Up-to-date Docs For Any Cursor Prompt
- Fetches documentation directly from official library sources
- Supports specifying exact library IDs and version numbers
- Works as both an MCP server and CLI skills mode
- Free API key with higher rate limits available
- Multi-language documentation (16+ languages)
- No hallucinated APIs or outdated code examples
Use cases of Context7 MCP - Up-to-date Docs For Any Cursor Prompt
- Generate Next.js middleware with current JWT authentication patterns
- Configure a Cloudflare Worker using the latest cache API syntax
- Retrieve up-to-date Supabase auth API for email/password sign-up
- Get version-specific code examples for any supported library
FAQ from Context7 MCP - Up-to-date Docs For Any Cursor Prompt
What dependencies or runtime are required?
Node.js version 18 or newer is required for the ctx7 CLI.
How do I get an API key?
Get a free API key at context7.com/dashboard for higher rate limits.
How do I remove the setup later?
Run npx ctx7 remove to clean up generated configuration. If you globally installed the CLI, also run npm uninstall -g ctx7.
Can I specify a library version?
Yes. Mention the version in your prompt (e.g., “Next.js 14 middleware”) and Context7 will automatically match the appropriate documentation.
How does authentication and transport work?
The MCP server uses your API key passed via the CONTEXT7_API_KEY HTTP header. The standard MCP transport is HTTP.
记忆与知识 分类下的更多 MCP 服务器
Notion MCP Server
suekouA Model Context Protocol server for connecting Notion to MCP-compatible clients
minutes
silversteinEvery meeting, every idea, every voice note — searchable by your AI. Open-source, privacy-first conversation memory layer.

Memory
modelcontextprotocolModel Context Protocol Servers
Basic Memory
basicmachines-coAI conversations that actually remember. Never re-explain your project to your AI again. Join our Discord: https://discord.gg/tyvKNccgqN
MemoryMesh
CheMiguel23A knowledge graph server that uses the Model Context Protocol (MCP) to provide structured memory persistence for AI models.
评论