Context7 MCP

Most popular #1Documentation Official Maintenance: Active

MCP servers are programs that run with your permissions and may read your files or data or run commands. Do not assume that any server is safe or official: check the developer and the source code, review the permissions and tools it exposes, and give it the least access possible (a specific folder, a read-only access token) before running it.

Description

Upstash's server brings up-to-date, version-specific library documentation and examples into the coding agent's context, through MCP or through a terminal interface with skills.

Security and permission notes

Read-only documentation search; queries are sent to the hosted Context7 service. Note: the documentation is contributed by the community, its accuracy and safety are not guaranteed, and the backend, parser and crawler are private.

Installation and connection settings

Requirements: The ctx7 CLI requires Node.js 22.13 or later; a free API key is recommended for higher limits.

From the official README
# setup
npx ctx7 setup
# remote_url
https://mcp.context7.com/mcp
# auth_header
Authorization: Bearer YOUR_API_KEY
# npm_package
@upstash/context7-mcp

Tools it provides (selection)

  • resolve-library-id
  • query-docs