MCP server

Context7

Pull up-to-date, version-specific library docs into your coding agent

Context7 by Upstash supplies current, version-specific documentation and code examples for thousands of libraries so coding agents avoid outdated APIs. It is available as a hosted remote server or a local npm package, authenticated with a Context7 API key.

Also available as

Connect

  1. 1Connect it in ChatGPT

    Turn on Developer mode in ChatGPT (Settings → Security and login), open Plugins, select + and paste https://mcp.context7.com/mcp as the MCP server URL. Add it to a chat from the composer's tools menu.

  2. 2Or add it to Codex or the API
    codex mcp add context7 --url https://mcp.context7.com/mcp --bearer-token-env-var CONTEXT7_API_KEY

Configs are generated from the publisher's documented endpoint. Check their docs for plan requirements and scopes. New to this? Read the step-by-step tutorial.

Tools 2

resolve-library-idquery-docs

Things to ask

  • “Create a Next.js middleware that checks a JWT. use context7”
  • “Show me the latest Supabase auth API for sign-in with OTP”
  • “How do I configure Tailwind v4 with Vite? use context7”

Learn more

Related