Context7

Get up-to-date, version-specific code documentation and examples for any library

Remote Updated 9 hours ago
Developer ToolsDocumentation

About

Retrieve current, version-specific library documentation and code examples through Context7’s hosted MCP server.

See the official Context7 documentation for setup, authentication, and usage details.

Authentication method: Enter mcp/oauth to sign in with OAuth, or mcp to connect anonymously and optionally provide a Context7 API key.

Features

  • Up-to-date Documentation: Fetch current, version-specific docs and code examples
  • Automatic Library Resolution: Find the best Context7 library ID for a package or product
  • Focused Retrieval: Query documentation for a specific implementation task or concept
  • Flexible Authentication: Sign in with OAuth or connect anonymously with an optional Context7 API key

What you’ll need to connect

Choose OAuth to sign in with Context7 when prompted, or choose Anonymous / API Key to connect without signing in. You can optionally provide a key from https://context7.com/dashboard for higher limits and private sources.

⚠️ Upgrade notice

If you’re upgrading this server, note that this replaces the Obot-hosted Context7 server with Context7’s official hosted MCP server.

  • Reconnect required: Select OAuth or anonymous/API-key access. The previous minimum-token setting is no longer used.
  • Authentication: OAuth, anonymous access, and optional API-key access are now supported.
  • Tool changes: Tool parameters and documentation-retrieval behavior may change with the hosted service.

Configuration

Environment variables

VariableDescriptionRequired
CONTEXT7_ENDPOINTEnter `mcp/oauth` for OAuth or `mcp` for anonymous or API-key access. See the entry description for details.Yes

Request headers

HeaderDescriptionRequired
AuthorizationOptional API key for higher limits and private sources; leave blank for anonymous access or OAuthNo

Remote runtime

Url Template
https://mcp.context7.com/${CONTEXT7_ENDPOINT}