From 3d0e7ededa40be93bc45a1b4efcaa4c8215a6b23 Mon Sep 17 00:00:00 2001 From: Bryan Thompson <238056179+bryan-anthropic@users.noreply.github.com> Date: Fri, 7 Aug 2026 16:11:11 -0500 Subject: [PATCH] =?UTF-8?q?Update=20context7=20plugin=20=E2=80=94=20migrat?= =?UTF-8?q?e=20to=20remote=20MCP=20server=20(#4985)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace the npx stdio launch of @upstash/context7-mcp with Context7's hosted remote MCP server (https://mcp.context7.com/mcp), matching the configuration Upstash ships in upstash/context7 (plugins/claude/context7). Adds a README and refreshes the plugin descriptions. Co-Authored-By: Fahreddin Özcan <88107904+fahreddinozcan@users.noreply.github.com> Driver: dir-plugin-add-official --- .claude-plugin/marketplace.json | 5 ++- .../context7/.claude-plugin/plugin.json | 2 +- external_plugins/context7/.mcp.json | 11 ++++-- external_plugins/context7/README.md | 35 +++++++++++++++++++ 4 files changed, 48 insertions(+), 5 deletions(-) create mode 100644 external_plugins/context7/README.md diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index b1117d6f..28453a14 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -1058,7 +1058,10 @@ }, { "name": "context7", - "description": "Upstash Context7 MCP server for up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your LLM context.", + "description": "Upstash Context7 MCP server for up-to-date documentation lookup. Connects to Context7's hosted remote MCP server (https://mcp.context7.com/mcp) — no local Node.js or npx required — to pull version-specific documentation and code examples directly from source repositories into your LLM context. Works anonymously out of the box; set CONTEXT7_API_KEY for higher rate limits.", + "author": { + "name": "Upstash" + }, "category": "development", "source": "./external_plugins/context7", "homepage": "https://github.com/anthropics/claude-plugins-public/tree/main/external_plugins/context7", diff --git a/external_plugins/context7/.claude-plugin/plugin.json b/external_plugins/context7/.claude-plugin/plugin.json index a53438cb..7330607c 100644 --- a/external_plugins/context7/.claude-plugin/plugin.json +++ b/external_plugins/context7/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "context7", - "description": "Upstash Context7 MCP server for up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your LLM context.", + "description": "Upstash Context7 MCP server for up-to-date documentation lookup. Connects to Context7's hosted remote MCP server (https://mcp.context7.com/mcp) — no local Node.js or npx required — to pull version-specific documentation and code examples directly from source repositories into your LLM context. Works anonymously out of the box; set CONTEXT7_API_KEY for higher rate limits.", "author": { "name": "Upstash" } diff --git a/external_plugins/context7/.mcp.json b/external_plugins/context7/.mcp.json index 6dec78d6..7fda704c 100644 --- a/external_plugins/context7/.mcp.json +++ b/external_plugins/context7/.mcp.json @@ -1,6 +1,11 @@ { - "context7": { - "command": "npx", - "args": ["-y", "@upstash/context7-mcp"] + "mcpServers": { + "context7": { + "type": "http", + "url": "https://mcp.context7.com/mcp", + "headers": { + "Authorization": "${CONTEXT7_API_KEY:-}" + } + } } } diff --git a/external_plugins/context7/README.md b/external_plugins/context7/README.md new file mode 100644 index 00000000..acf276b8 --- /dev/null +++ b/external_plugins/context7/README.md @@ -0,0 +1,35 @@ +# Context7 + +[Context7](https://context7.com) solves a common problem with AI coding assistants: outdated training data and hallucinated APIs. Instead of relying on stale knowledge, Context7 fetches current documentation and code examples directly from source repositories. + +This plugin connects Claude Code to Context7's hosted remote MCP server (`https://mcp.context7.com/mcp`) — no local Node.js, npm, or npx required. + +## Available Tools + +- **`resolve-library-id`** — searches for libraries and returns Context7-compatible identifiers (e.g. `/vercel/next.js`) plus available versions. +- **`query-docs`** — fetches documentation for a specific library, ranked by relevance to your question. + +## API Key (optional) + +Without an API key the plugin connects anonymously and shares the anonymous rate limits. To use your own plan, create an API key in the [Context7 dashboard](https://context7.com/dashboard) and export it as an environment variable before launching Claude Code: + +```bash +# e.g. in ~/.zshrc or ~/.bashrc +export CONTEXT7_API_KEY="your-api-key" +``` + +The plugin's MCP server configuration picks up `CONTEXT7_API_KEY` automatically. Restart Claude Code after setting it, then verify usage in the [dashboard](https://context7.com/dashboard). + +## Usage + +The plugin works automatically when you ask about libraries: + +- "How do I set up authentication in Next.js 15?" +- "Show me React Server Components examples" +- "What's the Prisma syntax for relations?" + +To get documentation for a specific version, include the version in the library ID (e.g. `/vercel/next.js/v15.1.8`). The `resolve-library-id` tool returns available versions, so you can pick the one that matches your project. + +--- + +Maintained by [Upstash](https://upstash.com). Source and full plugin (with skills, agents, and commands): [upstash/context7](https://github.com/upstash/context7).