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

Low Risk Category: Search & Knowledge Base Verified: 2026-05-18 Status: Verified

Supported Clients

Installation Command

npx -y @upstash/context7-mcp

Configuration Example

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": [
        "-y",
        "@upstash/context7-mcp"
      ]
    }
  }
}

Permission Scope & Security Notes

只查询公开的库文档,不访问本地文件或执行命令

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.

Related Tools