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.
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.
- Context7 MCP Serverdetected
- Context7 OAuth MCP Serverdetected
- Context7 REST APIdiscovered
- Context7 REST APIdeclared
- ctx7 CLIdeclared
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.
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.
$ ctx7 loginAcquired by the CLI — running ctx7 login opens the auth flow and stores the credential.
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
- integrations.json✓https://context7.com/.well-known/integrations.json
- llms.txt✓https://context7.com/llms.txt
- API catalog✓https://context7.com/.well-known/api-catalog
- OpenAPI document✓https://context7.com/openapi.json
- MCP server card✓https://mcp.context7.com/mcp
- OAuth protected resource✓https://context7.com/.well-known/oauth-protected-resource
- Agent card✗
/.well-known/agent-card.json - Agent skills✓https://context7.com/.well-known/agent-skills/index.json
Publish these signals → /publishing