Context7 website screenshot

Context7

Context7 is an Upstash service providing up-to-date, version-specific documentation and code examples for libraries and frameworks, exposed as both a REST API and a Model Context Protocol (MCP) server so AI coding assistants can fetch authoritative reference material at prompt time.

3 APIs 0 Features
AIContextDocumentationLLMMCP

APIs

Context7 REST API

The Context7 REST API exposes endpoints for searching libraries, retrieving documentation context for LLMs, refreshing indexed sources, and submitting new sources (GitHub reposi...

Context7 MCP Server

The Context7 MCP Server implements the Model Context Protocol so AI coding assistants such as Cursor, Claude, and Windsurf can call Context7 tools directly from a developer's ed...

Context7 CLI

The Context7 CLI (ctx7) is a command-line tool for querying the Context7 index from the terminal. It provides ctx7 library for searching the catalog by library name and ctx7 doc...

Collections

Pricing Plans

Context7 Plans Pricing

3 plans

PLANS

Rate Limits

Context7 Rate Limits

5 limits

RATE LIMITS

FinOps

Resources

🔗
Website
Website
🔗
Documentation
Documentation
🔗
Dashboard
Dashboard
👥
GitHubOrganization
GitHubOrganization
👥
GitHubRepository
GitHubRepository
💰
Pricing
Pricing

Sources

Raw ↑
opencollection: 1.0.0
info:
  name: Context7 REST API
  version: '1.0'
request:
  auth:
    type: bearer
    token: '{{bearerToken}}'
items:
- info:
    name: Search libraries
    type: http
  http:
    method: GET
    url: https://context7.com/api/v2/libs/search
    params:
    - name: query
      value: ''
      type: query
  docs: Search libraries
- info:
    name: Retrieve documentation snippets for a library
    type: http
  http:
    method: GET
    url: https://context7.com/api/v2/context
    params:
    - name: libraryId
      value: ''
      type: query
    - name: query
      value: ''
      type: query
  docs: Retrieve documentation snippets for a library
- info:
    name: Refresh a library's documentation
    type: http
  http:
    method: POST
    url: https://context7.com/api/v1/refresh
    body:
      type: json
      data: '{}'
  docs: Refresh a library's documentation
- info:
    name: Get teamspace policy configuration
    type: http
  http:
    method: GET
    url: https://context7.com/api/v2/policies
  docs: Get teamspace policy configuration
- info:
    name: Update teamspace policies
    type: http
  http:
    method: PATCH
    url: https://context7.com/api/v2/policies
    body:
      type: json
      data: '{}'
  docs: Update teamspace policies
- info:
    name: Submit a repository for processing
    type: http
  http:
    method: POST
    url: https://context7.com/api/v2/add/repo/:provider
    params:
    - name: provider
      value: ''
      type: path
    body:
      type: json
      data: '{}'
  docs: Submit a repository for processing
- info:
    name: Submit an OpenAPI specification
    type: http
  http:
    method: POST
    url: https://context7.com/api/v2/add/openapi
    body:
      type: json
      data: '{}'
  docs: Submit an OpenAPI specification
- info:
    name: Upload an OpenAPI specification file
    type: http
  http:
    method: POST
    url: https://context7.com/api/v2/add/openapi-upload
    body:
      type: multipart-form
      data: []
  docs: Upload an OpenAPI specification file
- info:
    name: Submit an llms.txt file
    type: http
  http:
    method: POST
    url: https://context7.com/api/v2/add/llmstxt
    body:
      type: json
      data: '{}'
  docs: Submit an llms.txt file
- info:
    name: Submit a website for crawling
    type: http
  http:
    method: POST
    url: https://context7.com/api/v2/add/website
    body:
      type: json
      data: '{}'
  docs: Submit a website for crawling
- info:
    name: Submit a Confluence space
    type: http
  http:
    method: POST
    url: https://context7.com/api/v2/add/confluence
    body:
      type: json
      data: '{}'
  docs: Submit a Confluence space
bundled: true