Context7vf.sr

listing.by · home.legend.verified

Fetch up-to-date, version-specific library documentation and code examples straight into your assistant's context.

state.opt.long (state.opt.title)Streamable HTTP

listing.connect

listing.explain.optional

https://mcp.context7.com/mcp

listing.note.optional

listing.share.h

listing.share.p

mcp.tc/i/context7

listing.about

Context7 connects your coding assistant to a hosted index of library and framework documentation. It resolves a library name to a Context7 library ID, then retrieves current docs and code examples for a question, optionally for a specific version, so answers do not rely on outdated training data.

It runs as a hosted streamable-http endpoint at https://mcp.context7.com/mcp, or locally through the npm package @upstash/context7-mcp. Authentication is optional. A free API key from context7.com/dashboard gives higher rate limits and is sent as an Authorization: Bearer header.

listing.can

  • Resolve a library name to a Context7-compatible library ID
  • Retrieve current documentation for a library by ID
  • Get code examples relevant to a specific question
  • Target a specific library version by naming it in the prompt
  • Skip library matching by giving an ID such as /vercel/next.js

listing.tools 2

  • resolve-library-idlisting.hint.ro

    Resolve a package or product name to a Context7 library ID and list matching libraries.

  • query-docslisting.hint.ro

    Retrieve current documentation and code examples for a library using its Context7 ID and a question.

listing.prov.live_on listing.prov.hints

listing.prompts

  • How do I set up Next.js 14 middleware? use context7

  • Show the Supabase auth API for email/password sign-up. use library /supabase/supabase

  • Configure a Cloudflare Worker to cache JSON API responses for five minutes. use context7

  • What changed in the Prisma migration commands in the latest version?

listing.setup.h

listing.setup.remote

Claude Code

  1. Run this in a terminal, in your project folder:
claude mcp add --transport http context7 https://mcp.context7.com/mcp
  1. Start Claude Code and type /mcp. context7 should show as connected. To sign in for more access, pick it and choose Authenticate.

Add --scope user to make it available in every project, not just this one. Works without a key. An API key from Upstash raises the limits: send it as Authorization: Bearer <YOUR_API_KEY>.

Claude Desktop

  1. Open Settings → Connectors and click Add custom connector.
  2. Name it Context7 and paste this URL:
https://mcp.context7.com/mcp
  1. Click Add, then Connect. Signing in to Upstash is optional.

Claude Desktop's JSON config file only starts local servers. Remote servers go through Connectors, and connectors you add on claude.ai show up here too.

claude.ai

  1. Open the connector form on claude.ai. This button fills in the name and URL for you:
  1. Check that the URL reads https://mcp.context7.com/mcp and click Add.
  2. Click Connect. Signing in to Upstash is optional.

Free plans allow one custom connector. On Team and Enterprise plans an owner adds it under Organization settings → Connectors.

ChatGPT

  1. On chatgpt.com, open Settings → Security and login and turn on Developer mode.
  2. Go to chatgpt.com/plugins and click + to create an app for a remote MCP server.
  3. Paste https://mcp.context7.com/mcp as the server URL and choose No authentication, or OAuth to sign in to Upstash for more access.

Developer mode is available on the web for Plus, Pro, Business, Enterprise and Education accounts.

Cursor

Or add it by hand to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project):

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

Works without a key. An API key from Upstash raises the limits: send it as Authorization: Bearer <YOUR_API_KEY>.

VS Code

Or from a terminal:

code --add-mcp '{"name":"context7","type":"http","url":"https://mcp.context7.com/mcp"}'

Or commit it to the repo in .vscode/mcp.json:

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

Works without a key. An API key from Upstash raises the limits: send it as Authorization: Bearer <YOUR_API_KEY>.

Devin Desktop

  1. Add it to ~/.config/devin/mcp_config.json (macOS and Linux) or %APPDATA%\devin\mcp_config.json (Windows):
mcp_config.json
{
  "mcpServers": {
    "context7": {
      "serverUrl": "https://mcp.context7.com/mcp"
    }
  }
}
  1. Refresh the MCP server list in Cascade.

Devin Desktop is the new name for Windsurf. It reads serverUrl (or url) for remote servers. Works without a key. An API key from Upstash raises the limits: send it as Authorization: Bearer <YOUR_API_KEY>.

Codex

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

Or edit ~/.codex/config.toml directly:

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

Works without a key. An API key from Upstash raises the limits: send it as Authorization: Bearer <YOUR_API_KEY>.

Gemini CLI

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

Then, inside Gemini CLI, run /mcp auth context7 to sign in (optional).

This adds it to the current project. Add -s user to use it everywhere. Works without a key. An API key from Upstash raises the limits: send it as Authorization: Bearer <YOUR_API_KEY>.

Any client

Most clients accept this shape. Some name the URL field differently: serverUrl in Devin Desktop, httpUrl in Gemini CLI's settings file.

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

Zed puts servers under context_servers in its settings. Cline needs "type": "streamableHttp", or it assumes SSE.

Client only starts local servers? Bridge it with npx -y mcp-remote https://mcp.context7.com/mcp.

Works without a key. An API key from Upstash raises the limits: send it as Authorization: Bearer <YOUR_API_KEY>.

listing.faq

Can I paste mcp.tc/i/context7 into my MCP client?

No. mcp.tc links are pages, not server addresses. Connect with https://mcp.context7.com/mcp, so your client talks to Context7 directly. The quick link is for sharing: it opens this page, with setup steps for every client.

Does Context7 need an API key or a sign-in?

Not to start. Context7 works without signing in and offers sign-in for more access.

Is Context7 a remote or a local server?

Remote. Upstash hosts it at https://mcp.context7.com/mcp, and it speaks Streamable HTTP. There's nothing to install.

What can Context7 do?

It has 2 tools: resolve-library-id and query-docs. You can resolve a library name to a Context7-compatible library ID, retrieve current documentation for a library by ID and get code examples relevant to a specific question.

Which clients can use it?

Any client that supports remote MCP servers: Claude Code, Claude Desktop, claude.ai, ChatGPT in developer mode, Cursor, VS Code, Devin Desktop, Codex, Gemini CLI, Zed and others. The setup steps cover each one.

Who wrote this page?

mcp.tc's robot read Context7's own metadata (its MCP handshake, tool list and public pages), and an AI model drafted the text from it. A person reviews anything the checks can't confirm. The text can still be wrong, so if you spot a mistake, use Report this listing on this page.

listing.em.h

listing.em.lead listing.em.how

listing.em.badge

em.prev_lightem.prev_dark
Markdown
[![Context7 on mcp.tc](https://mcp.tc/i/context7/badge.svg)](https://mcp.tc/i/context7)
HTML
<a href="https://mcp.tc/i/context7"><img src="https://mcp.tc/i/context7/badge.svg" alt="Context7 on mcp.tc" height="20"></a>

listing.em.badge_note

listing.em.widget

HTML
<script src="https://mcp.tc/w/context7.js" async></script>

listing.em.widget_note

iframe

HTML
<iframe src="https://mcp.tc/embed/context7" title="Context7 on mcp.tc" width="420" height="200" loading="lazy" allow="clipboard-write" style="border:0;border-radius:8px;max-width:100%"></iframe>

listing.em.iframe_note

JSON

listing.em.json

https://mcp.tc/i/context7.json

listing.em.fields

listing.disclaimer_checked