Ad space · Your tool here
PluginStack
MCP Servers · by Upstash

Context7

Context7 official site ↗

Last checked against the official docs:

What it does

Pulls up-to-date, version-specific library documentation and code examples into your prompt, so the AI stops relying on outdated training data or made-up APIs.

Who it's for

Anyone coding with AI on fast-moving frameworks (Next.js, React, Supabase, etc.).

How to set it up

  1. Quickest (needs Node.js 22.13+). It signs you in with OAuth, creates an API key and sets up Cursor, Claude Code or OpenCode (--cursor / --claude / --opencode). You can choose CLI + Skills mode or MCP mode:

    bash
    npx ctx7 setup
  2. Manual: add the remote MCP server. An API key is recommended (not required) for higher rate limits; pass it as a Bearer header. Free keys are at context7.com/dashboard.

    json
    {
      "mcpServers": {
        "context7": {
          "url": "https://mcp.context7.com/mcp",
          "headers": {
            "Authorization": "Bearer YOUR_API_KEY"
          }
        }
      }
    }
  3. Add 'use context7' to a prompt (or add a rule telling your agent to always use it) to pull in fresh docs.

Check the official Context7 docs for the latest steps.

Install Context7 in your client

Hosted by the maker, so there is nothing to install locally. Needs: None (hosted). Sign-in or keys: No key required; an API key is recommended for higher rate limits.

One-click install

These buttons open the app on your computer (it needs to be installed already). The app asks you to confirm before it adds the server: review the command or URL it shows and check it matches the snippet below before you approve.

Claude Code

Run in a terminal

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

Run /mcp inside Claude Code to check it connected and to sign in if the server asks.

Cursor

.cursor/mcp.json in a project, or ~/.cursor/mcp.json for all projects

json
{
  "mcpServers": {
    "context7": {
      "url": "https://mcp.context7.com/mcp"
    }
  }
}
VS Code

.vscode/mcp.json (note the top-level "servers" key)

json
{
  "servers": {
    "context7": {
      "type": "http",
      "url": "https://mcp.context7.com/mcp"
    }
  }
}
Codex

Run in a terminal, or edit ~/.codex/config.toml

CLI

bash
codex mcp add context7 --url https://mcp.context7.com/mcp

Or in ~/.codex/config.toml

toml
[mcp_servers.context7]
url = "https://mcp.context7.com/mcp"

If the server uses OAuth, run codex mcp login context7 to sign in.

  • To send an API key, add an Authorization: Bearer header as the Context7 README describes.
  • Claude Desktop is not shown: we have not verified a config-file entry for this hosted server. Check the maker's docs for how to add it there.
  • Compare every server's runtime and sign-in needs in the MCP server requirements table.

Checked against the official docs. Snippets use placeholders; keep real keys out of files you commit. Windsurf is not listed because we have not verified its format.

Set it up / Fixes

Step-by-step guides for getting Context7 running and fixing common errors.

Example prompts

prompt
Create a Next.js proxy that checks for a valid JWT in cookies and redirects unauthenticated users to /login. use context7
prompt
Show me the Supabase auth API for email/password sign-up. use context7
prompt
Implement basic authentication with Supabase. use library /supabase/supabase for API and docs.

Made Context7? Add the badge

If you like, show that Context7 is listed and hand-checked here. It's optional: listings are free and we never ask for a link back.

Hand-checked on PluginStack
Get the Markdown or HTML

Markdown (for a GitHub README)

markdown
[![Hand-checked on PluginStack](https://www.pluginstackai.com/badge/hand-checked.svg)](https://www.pluginstackai.com/plugins/context7/)

HTML (for a website)

html
<a href="https://www.pluginstackai.com/plugins/context7/"><img src="https://www.pluginstackai.com/badge/hand-checked.svg" alt="Hand-checked on PluginStack" width="226" height="28"></a>

About the badge

Free: MCP Starter Checklist

After you set this tool up, use the one-page checklist so your next MCP server doesn't fail on first connect.

Markdown download + occasional PluginStack updates. No spam. Privacy policy.

See all MCP Servers on PluginStack