Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Docs and knowledge - official Upstash server

Context7 MCP server

Context7, built by Upstash, gives coding agents up-to-date, version-specific library documentation and code examples through two tools: resolve a library name to a Context7 ID, then query its docs. Upstash hosts it at https://mcp.context7.com/mcp, or you can run @upstash/context7-mcp (npm) locally with OAuth or API key auth.

Last verified 2 tools5 sources

Install

Terminal
claude mcp add --scope user --header "Authorization: Bearer YOUR_API_KEY" --transport http context7 https://mcp.context7.com/mcp
TOML
[mcp_servers.context7]
url = "https://mcp.context7.com/mcp"
http_headers = { "Authorization" = "Bearer YOUR_API_KEY" }
JSON
{
  "mcpServers": {
    "context7": {
      "url": "https://mcp.context7.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

VS Code

JSON
{
  "servers": {
    "context7": {
      "type": "http",
      "url": "https://mcp.context7.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

Generic

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

Tools

resolve-library-id
Resolve a library name to a Context7-compatible library ID
query-docs
Fetch up-to-date documentation and code examples for a library

As documented on October 17, 2026. A running server reports its current list through tools/list.

Notes and caveats

  • OAuth 2.0 is available on the remote server by switching the endpoint to https://mcp.context7.com/mcp/oauth; stdio connections use an API key.
  • An API key raises rate limits and enables private repositories.
  • Context7 also offers a Codex plugin (codex plugin marketplace add upstash/context7) and a VS Code extension (Upstash.context7-mcp), plus an on-premise enterprise edition.
  • Docs give no beta/GA label.

FAQ

What does the Context7 MCP server do?

Context7, built by Upstash, gives coding agents up-to-date, version-specific library documentation and code examples through two tools: resolve a library name to a Context7 ID, then query its docs. The vendor documents 2 tools, including resolve-library-id and query-docs.

How do I add the Context7 MCP server to Claude Code?

Run claude mcp add --scope user --header "Authorization: Bearer YOUR_API_KEY" --transport http context7 https://mcp.context7.com/mcp, copied from Upstash's docs. This page also has snippets for Codex, Cursor, VS Code and Generic.

Does the Context7 MCP server need authentication?

Yes, OAuth or API key. Transport: Streamable HTTP, stdio. Status: Unlabelled, last checked October 17, 2026.

Sources

Last verified against 5 Upstash pages, then re-checked independently.

Newsletter

New MCP servers, the week they ship

One email per week. New official MCP servers, the coding tools that support them and how developers wire them up.