Context7

Up-to-date docs for LLMs and AI code editors

Context7 fetches up-to-date code examples and documentation right into your LLM's context. No tab-switching, no hallucinated APIs that don't exist, no outdated code generation.

Want skills and commands too? Context7 is also available as a Claude Code plugin.

Install

1Add the server to Claude Code

claude mcp add --transport http context7 https://mcp.context7.com/mcp

2Sign in

Run /mcp in Claude Code and complete the login flow for this server.

These instructions target Claude Code. Check the publisher's documentation for support in other Claude surfaces; a valid server URL alone does not establish compatibility.

JSON.mcp.json for a shared project

Commit this file so everyone on the project gets the same server.

{
  "mcpServers": {
    "context7": {
      "type": "http",
      "url": "https://mcp.context7.com/mcp"
    }
  }
}

Tools

  • resolve-library-id
  • query-docs

Discussion

Discussion

0