askill
mcp-context7

mcp-context7Safety 90Repository

Context7 MCP server for current library documentation. Use when generating config files, scaffolding projects, or working with libraries that may have updated since training.

0 stars
1.2k downloads
Updated 2/28/2026

Package Files

Loading files...
SKILL.md

Context7 MCP

Scope: When and how to use the Context7 MCP server for fetching current library documentation, plus installation and version management.

Fetches current library documentation via the Context7 MCP server. Use this to get up-to-date API references, config patterns, and version information for libraries where your training data may be stale.

GitHub: https://github.com/upstash/context7

Package: @upstash/context7-mcp

Detection

Check if the context7 MCP is available:

ToolSearch query: "+context7"

If mcp__context7__* tools appear in results, the MCP is installed and available. If not, see Installation.

Installation

Install for the current user (pin to a specific version):

# Check latest version
npm view @upstash/context7-mcp dist-tags --json

# Install with pinned version
claude mcp add context7 -- npx -y @upstash/context7-mcp@<version>

This adds the server to ~/.claude.json under mcpServers.

After installing: Claude CLI must be restarted for the MCP server to become available. Resuming an existing session after restart is sufficient — a brand new session is not required.

Prerequisites:

  • Node.js / npm (for npx)

When to Use

  • Generating configuration files (vite, biome, eslint, tsconfig, etc.)
  • Scaffolding new projects with specific library versions
  • Working with libraries that release frequently (build tools, linters, frameworks)
  • When the user asks for "latest" or "current" versions/patterns

Look up docs before generating config or scaffold files — not after.

Using MCP Tools

MCP tools are deferred — they must be loaded via ToolSearch before first use in a session.

Two-step flow:

  1. Resolve the library ID:

    ToolSearch query: "select:mcp__context7__resolve-library-id"
    mcp__context7__resolve-library-id(libraryName: "vite")
    
  2. Query the docs:

    ToolSearch query: "select:mcp__context7__query-docs"
    mcp__context7__query-docs(context7CompatibleLibraryID: "/vercel/next.js", topic: "configuration")
    

Version Management

The MCP server is configured in ~/.claude.json under mcpServers.context7.

Check the pinned version:

jq -r '.mcpServers.context7.args[] | select(startswith("@upstash/context7-mcp"))' ~/.claude.json

Check the latest available version:

npm view @upstash/context7-mcp dist-tags --json

Update the pinned version: Edit ~/.claude.json and update the version in the command array (e.g., @upstash/context7-mcp@2.1.1). Claude CLI must be restarted after changes.

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

90/100Analyzed 3/2/2026

Well-structured skill about Context7 MCP server with comprehensive coverage of detection, installation, usage patterns, and version management. Clear structured steps, good metadata (tags, GitHub link), and organized in dedicated skills folder. Highly actionable with actual commands for all operations. Slight扣分 for lacking troubleshooting section and more detailed examples.

90
85
85
75
85

Metadata

Licenseunknown
Version-
Updated2/28/2026
Publishershellicar

Tags

apici-cdgithubllm