Context7 MCP Server Configuration & Usage Guide
Installationnpx
Risk LevelLow Risk
API KeyNot Required
Clients3 supported
Provides up-to-date library documentation and code examples for AI coding assistants, avoiding outdated APIs
Supported Clients
- Claude Desktop
- Cursor
- VS Code / Cline
Installation Command
npx -y @upstash/context7-mcpConfiguration Example
{
"mcpServers": {
"context7": {
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp"
]
}
}
}Permission Scope & Security Notes
只查询公开的库文档,不访问本地文件或执行命令
- network-access
Risk Score:1/10
Common Errors
- 网络超时
- 检查网络连接,Context7 Required访问远程文档库
Sources
Recently Verified:2026-05-18。Client versions and configuration formats may change. Please refer to official documentation before use.