context7.com
Context7 provides up-to-date, version-specific documentation and code examples for software libraries, designed for use by AI coding agents and developers. It indexes sources such as code repositories, websites, llms.txt files, OpenAPI specs, and Confluence, then serves search and documentation snippets on demand.
Context7 exposes a REST API at `https://context7.com/api`, a public hosted MCP server at `https://mcp.context7.com/mcp`, a separate admin MCP server at `https://admin.mcp.context7.com/mcp`, and the `ctx7` npm CLI; API keys are the main credential, with OAuth also supported for MCP clients.
- MCP serverdetected
- Context7 MCP Serverdetected
- Context7 Admin MCP Serverdetected
- Context7 REST APIdiscovered
- Context7 REST APIdeclared
- ctx7 CLIdeclared
$ ctx7 setupAcquired by the CLI — running ctx7 setup opens the auth flow and stores the credential.
Point your MCP client at the server URL and approve access in the browser. The server accepts a Client ID Metadata Document (CIMD), so the client authenticates with its own hosted URL as the client_id — nothing to register.
$ 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 new interactive clients at Clerk's authorization server, https://clerk.context7.com. Context7 retains https://context7.com only as a compatibility issuer for previously registered clients and enterprise-managed authorization. See Set Up OAuth.
conventions · 6/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✗
/.well-known/mcp/server-card.json - 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