C
Context7 REST API
Details
- URL
-
https://context7.com/api - Spec
- https://context7.com/openapi.json
- Docs
- https://context7.com/docs/api-guide
Authentication
Authorization: Bearer <credential> Create a free account at context7.com/dashboard and generate an API key. Search and docs endpoints also work anonymously at low rate limits, but a key is required for higher rate limits, some endpoints (e.g. adding libraries), and private repositories. On the REST API send it as Authorization: Bearer <key>; on the MCP server send it as a CONTEXT7_API_KEY header; for the CLI run ctx7 login or ctx7 setup --api-key <key>. See the API guide.