このサーバーについて
Upstash製のリアルタイムドキュメントMCPサーバー。最新のバージョン別公式ライブラリドキュメントとコード例をコーディングエージェントに注入し、古いAPIの幻覚を防止。
インストール
npx -y @upstash/context7-mcp公式 README インストールガイド(英語原文)
> [!NOTE]
> API Key Recommended: Get a free API key at context7.com/dashboard for higher rate limits.
Set up Context7 for your coding agents with a single command. The ctx7 CLI requires Node.js 18 or newer.
npx ctx7 setupAuthenticates via OAuth, generates an API key, and installs the appropriate skill. You can choose between CLI + Skills or MCP mode. Use --cursor, --claude, or --opencode to target a specific agent.
To remove the generated setup later, run npx ctx7 remove. If you globally installed the CLI with npm install -g ctx7, remove that package separately with npm uninstall -g ctx7.
To configure manually, use the Context7 server URL https://mcp.context7.com/mcp with your MCP client and pass your API key via the Authorization: Bearer YOUR_API_KEY header. See the link below for client-specific setup instructions.
よくある質問
Context7 はどんな問題を解決しますか?
AI コーディングでは古いライブラリ API による動かないコードがよく生成されます。Context7 はプロンプト段階で対象ライブラリの最新バージョンのドキュメントとコード例をリアルタイム注入し、「学習データの陳腐化」による幻覚を根本から解消します。
Cursor に Context7 をインストールするには?
Cursor の MCP 設定に npx -y @upstash/context7-mcp を追加するだけです。Claude Code では claude mcp add context7 -- npx -y @upstash/context7-mcp を使います。利用時はプロンプトに「use context7」と一言添えてください。
Context7 は無料ですか?リクエスト制限はありますか?
オープンソースで無料です。API キーなしで使い始められます。匿名リクエストにはレート制限があり、context7.com で無料登録してキーを取得すると上限が上がります。Upstash が公式メンテナンスしています。