dotsagent.io
Language:English
Dev tools · Upstash

Set up Context7

Pulls current, version-specific library docs and code examples into the prompt. Hosted, with an optional API key.

Publisher
Upstash Official
Hosted endpoint
https://mcp.context7.com/mcp
Run locally
npx -y @upstash/context7-mcp
Transports
streamable-http, stdio
Authentication
None required; an API key sent as a bearer token raises rate limits.
What it can touch
Read-only.
Licence
MIT
Source
github.com/upstash/context7
Status
Active

Install

The vendor hosts this server, so you only add its URL and nothing runs on your machine. If it needs authentication, the row above says how; OAuth servers prompt you on first connection.

Claude Code

shell
claude mcp add --transport http --scope project context7 https://mcp.context7.com/mcp

Cursor

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

Codex

~/.codex/config.toml
[mcp_servers.context7]
url = "https://mcp.context7.com/mcp"

Run it locally instead (Cursor)

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

Config for other clients →

Other servers in dev tools

Sources

  1. github.com/upstash/context7
  2. code.visualstudio.com/docs/copilot/reference/mcp-configuration

Independent reference for people who build AI agents. Not affiliated with any vendor named here.

© 2026 DotsAgent · Facts checked October 1, 2026