C

context7.com

Context7 provides version-specific software-library documentation and code examples for developers and AI coding agents. It indexes docs from repositories, websites, llms.txt files, OpenAPI specs, and similar sources, then serves relevant snippets on demand.

5 integrations · MCP · REST · CLI

Context7 exposes a REST API at `https://context7.com/api`, hosted MCP endpoints at `https://mcp.context7.com/mcp` and `https://mcp.context7.com/mcp/oauth`, and the `ctx7` CLI; authentication is via Context7 API keys, with OAuth also supported for the hosted MCP OAuth endpoint.

discovered 3d ago
MCP servers2
REST · OpenAPI2
CLI1
Credentials
Context7 API keyapi_keyGet key

Create an account in the Context7 dashboard, open Create API Key in the API Keys card, name the key, and copy it immediately; keys are only shown once. The key format is ctx7sk-.... See Manage API Keys and the API Guide.

OAuth 2.0oauth2
OAuth 2.0 — self-onboarding

Point your MCP client at the server URL and approve access in the browser. The server supports OAuth Dynamic Client Registration (RFC 7591), so the client registers itself automatically — no developer-portal app, client_id, or client_secret to create.

Context7 API keyapi_key$ ctx7 login

Acquired by the CLI — running ctx7 login opens the auth flow and stores the credential.

Context7 OAuthoauth2

MCP clients can authenticate interactively via OAuth 2.0 instead of an API key. Discovery is standard: the MCP endpoint publishes RFC 9728 metadata at https://mcp.context7.com/.well-known/oauth-protected-resource, pointing at the authorization server https://context7.com (RFC 8414 metadata at /.well-known/oauth-authorization-server). See Set Up OAuth.

conventions · 7/8 published

Publish these signals → /publishing