API Development stdio

Context7

Created by upstash

Fetches up-to-date documentation and code examples for LLMs and AI code editors directly from the source.

How to Connect & Install

Select your client or environment below to copy the verified, ready-to-run installation configuration.

1-line autonomous agent setup instruction. Paste into Claude Code, Codex CLI, or Cursor Agent:
Fetch and configure Model Context Protocol (MCP) server Context7 from https://www.fastmcp.dev/server/context7

Agents automatically discover, install, and execute the server spec without manual token setup.

Connect via direct Stateless MCP v2 / Streamable HTTP endpoint or JSON-RPC:
https://github.com/upstash/context7

Stateless edge endpoint compliant with MCP 2024-11-05 and v2 draft protocol specs.

Includes server instructions and tool definitions for Claude:
claude mcp add context7 -- npx -y @upstash/context7-mcp

Run in terminal to register server in current project or pass --scope user for global availability.

Configures server instructions and tools for OpenAI Codex & ChatGPT Desktop:
[mcp_servers.context7] command = "npx" args = ["-y","@upstash/context7-mcp"]

Applies to ChatGPT Desktop app, Codex CLI, and IDE extension across your Codex host.

Add to Cursor project settings (.cursor/mcp.json) or Cursor Settings > Features > MCP:
{ "mcpServers": { "context7": { "type": "stdio", "command": "npx", "args": [ "-y", "@upstash/context7-mcp" ] } } }

Commit to version control to allow teammates to connect immediately.

Install as an autonomous Agent Skill using the standard skills CLI:
npx skills add https://github.com/upstash/context7

Standard agent skill installer compatible with Claude Code, Cursor, and agy harnesses.

Server Guidance & Instructions OpenAI & Claude Spec Compliant
Context7: Fetches up-to-date documentation and code examples for LLMs and AI code editors directly from the source. Key capabilities: Supports multiple installation methods (npx, bunx, deno); Offers version-specific documentation for accurate results; Provides tools for resolving library IDs and fetching documentation.

Codex and Claude read this instruction prompt during initialization to orchestrate cross-tool workflows and rate limits.

Top Core Functions
01 Multiple installation methods (npx, bunx, deno)
02 Offers version-specific documentation for accurate results
03 Tools for resolving library IDs and fetching