Context7

by Upstash
Connect MCP

Retrieves current library documentation and code examples for coding assistants through MCP or a CLI skill.

Connect MCP

Copy the setup for your client. YourAgents does not run it or ask for tokens.

After adding the server, sign in through your client and review the requested permissions. This connection is restricted to read-only access.

Codex

Run the command in your terminal, then sign in if prompted.

codex mcp add context7 --url https://mcp.context7.com/mcp/oauth
codex mcp login context7
Claude Code

Run the command in your terminal, then sign in if prompted.

claude mcp add --transport http context7 https://mcp.context7.com/mcp/oauth
# Claude Code: /mcp
Cursor · .cursor/mcp.json

Open in Cursor

If you already have a config file, merge only this server entry and keep the other settings.

{
  "mcpServers": {
    "context7": {
      "url": "https://mcp.context7.com/mcp/oauth"
    }
  }
}
VS Code · .vscode/mcp.json

Open in VS Code

If you already have a config file, merge only this server entry and keep the other settings.

{
  "servers": {
    "context7": {
      "type": "http",
      "url": "https://mcp.context7.com/mcp/oauth"
    }
  }
}

Description

Context7 helps AI coding assistants consult library and framework documentation while working on a task. It locates material for a requested library and version and supplies relevant examples to the model. It can be connected as a hosted MCP server or installed as a CLI with an agent skill. Users can provide a specific library identifier to avoid ambiguous matches and request version-specific references. Typical uses include configuring authentication, routing, or integrations whose APIs change over time. The underlying documentation comes from external projects, so individual pages and examples still need validation. The Free tier includes 1,000 API calls per month. Pro costs $10 per seat per month with 2,000 included calls per seat; additional calls and private-repository parsing incur separate charges, and an API key is recommended for higher limits.