# Context7 MCP
> Finds current, version-aware library documentation and code examples, then returns relevant context to an AI client.
Canonical: https://www.mcpfolio.com/servers/context7
Last updated: 2026-10-28
## Catalog record

- Publisher: Upstash
- Categories: development

## Website

https://context7.com/

## Repository

https://github.com/upstash/context7

## Transports

Streamable HTTP (remote); stdio (local)

## Authentication

Hosted remote OAuth endpoint is https://mcp.context7.com/mcp/oauth. The standard remote endpoint accepts a bearer API key; a key is documented as optional for higher rate limits and private repositories. Local stdio uses CONTEXT7_API_KEY or --api-key when a key is needed.

## Tools

- **resolve-library-id**: Resolve a library name and query intent to a Context7-compatible library ID and available versions.
- **query-docs**: Fetch relevant documentation context and code examples for a library.

## Sources

- [official_tool_reference](https://github.com/upstash/context7/blob/master/docs/clients/cli.mdx)
- [official_documentation](https://github.com/upstash/context7/blob/master/packages/mcp/src/index.ts)

## Setup

Use the interactive setup panel on [the detail page](https://www.mcpfolio.com/servers/context7) to view instructions for each supported client.