LogoSTMCP
Download
Context7 MCP

Context7 MCP

This project provides the Context7 MCP Server for seamless integration with LLMs and AI code editors. Context7 MCP Server enables up-to-date code documentation and context management for various AI-powered development tools. It supports easy installation and configuration across popular editors and platforms, including VS Code, Cursor, Zed, JetBrains, and more. By using the @upstash/context7-mcp package, developers can connect their clients to Context7’s remote or local server, ensuring efficient access to code documentation and context-aware features for enhanced productivity in AI-assisted coding environments.

Tools

1. resolve-library-id

Resolves a general library name into a Context7-compatible library ID

Parameters:

  • libraryName (required): The name of the library to search for

Functionality:

  • Searches for matching libraries and returns Context7-compatible library ID format (e.g., /org/project)
  • Provides detailed library information including name, description, code snippet count, trust score, and available versions
2. get-library-docs

Fetches documentation for a library using a Context7-compatible library ID

Parameters:

  • context7CompatibleLibraryID (required): Exact Context7-compatible library ID (e.g., /mongodb/docs, /vercel/next.js)
  • topic (optional): Focus the docs on a specific topic (e.g., "routing", "hooks")
  • tokens (optional, default 10000): Max number of tokens to return. Values less than the default are automatically increased to 10000

JSON Config

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp"]
    }
  }
}

Information