Skip to content

MCP setupDocumentation

Context7 MCP Server

Give your coding agent current library documentation and code examples through Upstash's Context7 MCP server, so it stops guessing at old APIs.

npx workspacetemplates add context7-mcp --tool claude-code

Writes 1 file to your project root

.mcp.jsonmerge into your file11 lines · 198 BFile
{
  "mcpServers": {
    "context7": {
      "type": "http",
      "url": "https://mcp.context7.com/mcp",
      "headers": {
        "Authorization": "Bearer ${CONTEXT7_API_KEY}"
      }
    }
  }
}

What it does

Context7 is an MCP server from Upstash that looks up documentation for a library at the version you use and hands the relevant snippets to the agent. It is aimed at the common failure where a model writes code against an API that has since changed.

This setup uses the hosted server over HTTP. It works without a key at a low rate limit, and an API key from the Context7 dashboard raises it.

Example

you › Using the current docs, show how to define a route handler in the latest Next.js and note anything that changed recently.

agent › Pulled the App Router docs for your installed version: route handlers live in app/api/x/route.ts and export named functions per HTTP method. Example code included.

Questions

Is a key required?
Not to start. The key is optional and lifts the rate limit. Create it in the Context7 dashboard.
Does it see my code?
Only what the agent puts in the query, such as a library name and a question. It does not scan your project.
  • Box MCP Server

    MCP setupDocumentation

    Free
  • Notion MCP Server

    MCP setupDocumentation

    Free
  • API Documentation

    SkillDocumentation

    Free
  • Architecture Decision Records

    SkillDocumentation

    Free