Context7

Context7 provides up-to-date, version-specific library documentation and code examples directly from the source.

Connection specification

Remote endpoint
https://mcp.context7.com/
Live-validated endpoint
https://mcp.context7.com/mcp
Browser access
Direct browser connection verified
Declared MCP transport
Streamable HTTP
Live-validated MCP transport
Streamable HTTP — Observed by the latest catalog validation
Declared authentication
No authentication
Detected authentication
No authentication detected or retained from publisher evidence
Protocol lifecycle
Stateless MCP · 2026-07-28
Authorization server
https://context7.com
Category
Documentation

Product documentation · Official listing documentation

Browse all MCP servers · Test this endpoint in the MCP Playground

Authorization setup

No app registration needed

This catalog entry does not require authorization or provider app registration.

Connect this server to your client

Claude Code setup

Run in a terminal. This user-scoped entry is available across projects.

claude mcp add --transport http --scope user 'context7' 'https://mcp.context7.com/mcp'

No authentication is required by the catalog listing.

  • Using browser-verified endpoint: https://mcp.context7.com/mcp

Claude Code MCP documentation

Codex CLI setup

Run in a terminal; Codex stores the entry in ~/.codex/config.toml.

codex mcp add 'context7' --url 'https://mcp.context7.com/mcp'

No authentication is required by the catalog listing.

  • Using browser-verified endpoint: https://mcp.context7.com/mcp

Codex MCP documentation

Cursor setup

Add to .cursor/mcp.json for this project, or ~/.cursor/mcp.json for all projects.

{
  "mcpServers": {
    "context7": {
      "url": "https://mcp.context7.com/mcp"
    }
  }
}

No authentication is required by the catalog listing.

  • Using browser-verified endpoint: https://mcp.context7.com/mcp

Cursor MCP documentation

VS Code setup

Add to .vscode/mcp.json, or run “MCP: Open User Configuration” for a private user-level entry.

{
  "servers": {
    "context7": {
      "type": "http",
      "url": "https://mcp.context7.com/mcp"
    }
  }
}

No authentication is required by the catalog listing.

  • Using browser-verified endpoint: https://mcp.context7.com/mcp

VS Code MCP documentation

Latest validation evidence

Validation status
Online when last tested
Validation checked at
Aug 18, 2026 at 1:34 PM
Validation detail
Negotiated stateless MCP 2026-07-28 at https://mcp.context7.com/mcp; detected transport streamable-http; authentication none

Capabilities provided

Observed at https://mcp.context7.com/mcp via direct; unauthenticated discovery.

Tools provided by Context7

Discovery completed; sanitized inventory: 2 retained of 2 observed. Capability details were sanitized for public display.

  • query-docs

    Retrieves and queries up-to-date documentation and code examples from Context7 for any programming library or framework. You must call 'Resolve Context7 Library ID' tool first to obtain the exact Context7-compatible library ID required to use this tool, UNLESS the user explicitly provides a library ID in the format '/org/project' or '/org/project/version' in their query. Do not call this tool more than 3 times per question.

    • libraryId · string · required

      Exact Context7-compatible library ID (e.g., '/mongodb/docs', '/vercel/next.js', '/supabase/supabase', '/vercel/next.js/v14.3.0-canary.87') retrieved from 'resolve-library-id' or directly from user query in the format '/org/project' or '/org/project/version'.

    • query · string · required

      What to look up in the library's documentation, scoped to a single concept. Be specific and include relevant details, but keep each query to one topic — if the user's question spans multiple distinct concepts, make a separate call per concept instead of combining them, unless the question is about how the concepts interact. Good: 'How to set up authentication with JWT in Express.js' or 'React useEffect cleanup function examples'. Bad (too vague): 'auth' or 'hooks'. Bad (too broad): 'routing and auth and caching in Next.js'. The query is sent to the Context7 API for processing. Do not include a

  • resolve-library-id

    Resolves a package/product name to a Context7-compatible library ID and returns matching libraries. You MUST call this function before 'Query Documentation' tool to obtain a valid Context7-compatible library ID UNLESS the user explicitly provides a library ID in the format '/org/project' or '/org/project/version' in their query. Each result includes: - Library ID: Context7-compatible identifier (format: /org/project) - Name: Library or package name - Description: Short summary - Code Snippets: Number of available code examples - Source Reputation: Authority indicator (High, Medium, Low, or Unk

    • libraryName · string · required

      Library name to search for and retrieve a Context7-compatible library ID. Use the official library name with proper punctuation — e.g., 'Next.js' instead of 'nextjs', 'Customer.io' instead of 'customerio', 'Three.js' instead of 'threejs'.

    • query · string · required

      What to look up in the library's documentation. This is used to rank library results by relevance to what the user is trying to accomplish. The query is sent to the Context7 API for processing. Do not include any sensitive or confidential information such as API keys, passwords, credentials, personal data, or proprietary code in your query.

Resources provided by Context7

Complete discovery: 0 retained of 0 observed.

Resource templates provided by Context7

Complete discovery: 0 retained of 0 observed.

Prompts provided by Context7

Complete discovery: 0 retained of 0 observed.