---
title: "Context7: setup for Claude, Cursor, Codex · DotsAgent"
description: "Pulls current, version-specific library docs and code examples into the prompt. Hosted, with an optional API key. Set up Context7 in 13 MCP clients."
url: https://dotsagent.io/mcp/servers/context7
---

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](https://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 →](https://dotsagent.io/mcp/config#add=context7)

## Other servers in dev tools

- [Everything](https://dotsagent.io/mcp/servers/everything): Reference test server from the MCP project that exposes every protocol feature, for checking that a client works.

- [Git](https://dotsagent.io/mcp/servers/git): Works with a local Git repository from the agent: status, diffs, history, branches and commits, on a repo path you choose.

- [GitHub](https://dotsagent.io/mcp/servers/github): GitHub's own server for repos, issues, pull requests, Actions and code search, with switchable toolsets.

- [GitLab](https://dotsagent.io/mcp/servers/gitlab): GitLab's built-in endpoint for issues, merge requests, pipelines and search, with selectable toolsets.

- [Figma](https://dotsagent.io/mcp/servers/figma): Feeds coding agents frames, variables and components from Figma files so the code they write matches the design.

- [Docker MCP Gateway](https://dotsagent.io/mcp/servers/docker-mcp-gateway): Runs servers from Docker's MCP catalogue in containers behind one gateway endpoint.

## Sources

1. [github.com](https://github.com/upstash/context7)/upstash/context7
2. [code.visualstudio.com](https://code.visualstudio.com/docs/copilot/reference/mcp-configuration)/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
