Context7 MCP リモートMCPサーバー – 公式URL・MCP接続設定・ツール一覧

🧑‍💻 Community✓ VerifiedStreamable HTTPPublic · No Auth🛡️ A+~1256 tok2 tools·Online224ms·30日間稼働率: 100%·最終チェック たった今

Context7 MCP は Upstash が提供するリモートMCPサーバー(コミュニティ運営、カテゴリ:検索・ドキュメント・開発者ツール・Git)です。エンドポイント https://mcp.context7.com/mcp を通じて、AIエージェントが直接呼び出せる 2 個の構造化ツールを提供します。

このページでは、公式リモートエンドポイント、トランスポート、認証方式、全ツールスキーマ、リアルタイムの死活監視・セキュリティ監査結果を掲載し、Cursor・Claude Code・VS Code・ChatGPT など 10 のクライアントへのMCP接続手順を解説します。

https://mcp.context7.com/mcp
提供元
Upstash ↗
カテゴリ
🔍 検索・ドキュメント🛠️ 開発者ツール・Git
Streamable HTTPhttps://mcp.context7.com/mcp
Install in Cursor →

Or add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "context7": {
      "url": "https://mcp.context7.com/mcp"
    }
  }
}

🧰 Context7 のMCPツールとスキーマ(2)

ToolSafetyDescriptionParameters
resolve-library-id
~724 tok
🟢 Readidempotentopen-worldResolves a package/product name to a Context7-compatible library ID and returns matching libraries. You MUST call this function before 'Query Documentation' tool to obtain a valid Context7-compatible library ID UNLESS the user explicitly provides a library ID in the format '/org/project' or '/org/project/version' in their query. Each result includes: - Library ID: Context7-compatible identifier (format: /org/project) - Name: Library or package name - Description: Short summary - Code Snippets: Number of available code examples - Source Reputation: Authority indicator (High, Medium, Low, or Unknown) - Benchmark Score: Quality indicator (100 is the highest score) - Versions: List of versions if available. Use one of those versions if the user provides a version in their query. The format of the version is /org/project/version. For best results, select libraries based on name match, source reputation, snippet coverage, benchmark score, and relevance to your use case. Selection Process: 1. Analyze the query to understand what library/package the user is looking for 2. Return the most relevant match based on: - Name similarity to the query (exact matches prioritized) - Description relevance to the query's intent - Documentation coverage (prioritize libraries with higher Code Snippet counts) - Source reputation (consider libraries with High or Medium reputation more authoritative) - Benchmark Score: Quality indicator (100 is the highest score) Response Format: - Return the selected library ID in a clearly marked section - Provide a brief explanation for why this library was chosen - If multiple good matches exist, acknowledge this but proceed with the most relevant one - If no good matches exist, clearly state this and suggest query refinements For ambiguous queries, request clarification before proceeding with a best-guess match. IMPORTANT: Do not call this tool more than 3 times per question. If you cannot find what you need after 3 calls, use the best result you have.query*: stringlibraryName*: string
query-docs
~512 tok
🟢 Readidempotentopen-worldRetrieves and queries up-to-date documentation and code examples from Context7 for any programming library or framework. You must call 'Resolve Context7 Library ID' tool first to obtain the exact Context7-compatible library ID required to use this tool, UNLESS the user explicitly provides a library ID in the format '/org/project' or '/org/project/version' in their query. Do not call this tool more than 3 times per question. If you know the programming language the user is working in, pass it as `language` so the results match their setup.libraryId*: stringquery*: stringlanguage: string

🛡️ セキュリティ評価・品質・コンテキスト監査

🛡️ セキュリティ評価 A+コンテキスト消費トークン: ~1256 tokens(このサーバーの 2 ツール定義が毎回のシステムプロンプトに注入)

呼び出しあたりのトークンコストを試算 →

  • No prompt-injection or hidden-character anomalies detected in tool descriptions
  • Streamable HTTP primary endpoint (current 2025-03-26 transport)
  • Public read-only-friendly endpoint — no credentials stored client-side
  • Community-operated endpoint
  • Manually verified by RemoteMCP.net

🔐 OAuth 2.1 とセキュリティ

認証方式
認証不要
動的クライアント登録(DCR)
—
PKCE S256
—
保護リソースメタデータ
https://mcp.context7.com/.well-known/oauth-protected-resource
OAuth 2.1 設定を監査 →

📡 公式リモートエンドポイントとトランスポート

リモートエンドポイント https://mcp.context7.com/mcp は Streamable HTTP(2025-03-26 仕様) を採用。Streamable HTTP は単一の POST エンドポイントで JSON-RPC の双方向通信を完結する現行推奨トランスポートで、npx mcp-remote ブリッジなしに Claude・Cursor・VS Code などへ URL だけでMCP接続できます。

接続前にエンドポイントを オンライン MCP Inspector に貼り付けて initialize / tools/list のハンドシェイクを確認することを推奨します。

🔐 認証・権限フロー

認証方式は 認証不要(公開) です。認証は一切不要。URL を貼るだけですぐに使えます。ドキュメント検索や公開データの参照に最適です。

🛡️ コンテキスト消費とセキュリティ監査

このサーバーには現在 2 個のツールが登録されており、定義の合計は約 1256 トークン。リクエストごとにモデルのシステムプロンプトへ注入されます。セキュリティ評価は A+(コミュニティ運営ソース)。ツール名とスキーマが簡潔なほどコンテキストウィンドウへの「税」は低くなります。feecalculator.app で呼び出しあたりのコストも試算できます。

🧩 主要クライアントへのMCP接続

Context7 MCP について、Cursor / Claude Code / VS Code / ChatGPT / Windsurf / Kiro / Codex / Cline / Gemini など 10 クライアント向けの設定を自動生成しています。ワンクリック deeplink、claude mcp add コマンド、JSON / TOML スニペットから選べます。代表的なツール:resolve-library-id、query-docs など。

📖 Context7 の詳細

Context7 MCP — Remote MCP Server

Context7's trick is fetching the documentation for the exact version of a library you are using — 'use context7' in a prompt is now a common incantation in Cursor and Claude Code workflows. The hosted endpoint at mcp.context7.com is free and unauthenticated, with a two-step flow: resolve the library id, then pull the docs.

Official Context7 MCP Endpoint & Transport Architecture

  • Endpoint URL: https://mcp.context7.com/mcp
  • Transport: Streamable HTTP

Streamable HTTP is the current MCP transport (2025-03-26 spec): a single URL accepts JSON-RPC POSTs and may stream responses over SSE, so one endpoint serves both simple and streaming workloads. Context7 MCP does not publish a separate legacy SSE endpoint, so your client must speak Streamable HTTP.

Authentication, Scopes & Permission Boundaries

Context7 MCP is public and unauthenticated — no OAuth, no API key, no headers. Any MCP client can connect and call its tools directly, which also makes it a great endpoint for smoke-testing your own MCP client or proxy.

All 2 cataloged tools are read-only — Context7 MCP cannot mutate your account data, which makes it safe to connect broadly.

Common Troubleshooting & Connection Tips

  • "Session expired" / stale Mcp-Session-Id — just re-send initialize; stateless clients can ignore session headers entirely.
  • No authentication — rate limits apply per IP.
  • Two-tool flow: call resolve-library-id first, then get-library-docs with the returned id.

🚀 Context7 MCP リモートMCPへの接続方法

  1. リモートエンドポイントを取得 — 公式エンドポイント https://mcp.context7.com/mcp をコピーします。
  2. クライアント設定に追加 — Cursor の mcp.json / Claude Code CLI / 各クライアントに URLを追加します(下記クライアント別ガイド参照)。
  3. 認可して検証 — 設定を保存後、当サイトの Inspector で initialize と tools/list を実行して接続を確認します。

🔌 Context7 × クライアント別MCP接続ガイド

❓ よくある質問

Context7 MCP のリモートMCPサーバーは公式ですか?

このエントリは「コミュニティ運営」と表示されています。エンドポイントは Upstash 公式ではなくサードパーティが運営しています。掲載エンドポイントはすべて実際の MCP initialize ハンドシェイクで検証済みです。

Claude / Cursor で Context7 MCP にMCP接続するには?

リモートエンドポイント https://mcp.context7.com/mcp をコピーします。Claude Code では claude mcp add --transport http context7 https://mcp.context7.com/mcp を実行。Cursor ではワンクリック deeplink か ~/.cursor/mcp.json に { "mcpServers": { "context7": { "url": "https://mcp.context7.com/mcp" } } } を追加します。

接続時に 401 が返る/キーを要求される場合は?

このエンドポイントは認証不要です。401 が返る場合は URL の綴りを確認し、Inspector で再試行してください。

ローカル stdio MCP とリモート MCP の違いは?

ローカル MCP は npx / uvx で起動する stdio 子プロセスで、ローカルランタイムが必要で API キーを平文で設定ファイルに書きます。リモート MCP は Upstash がホストする HTTPS エンドポイントで、インストール不要・OAuth 2.1 対応・同一 URL をデスクトップとモバイルで共用できます。詳しくは ローカル vs リモート MCP 比較 をご覧ください。

🔗 関連するリモートMCPサーバー