We and selected third parties use cookies or similar technologies for technical purposes and, with your consent, to analyze how the site is used.

You can freely give, refuse or withdraw your consent at any time.

Context7, verified

MCP server by Upstash · Verified

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

Sign-in optional (Works without an account; sign in for more)Streamable HTTP

Connect to Context7

Sign-in is optional. Connect with Context7’s own URL:

https://mcp.context7.com/mcp

It works without signing in. Sign in with Upstash for more access.

Share this server

Opens this page, with the URL and setup steps.

mcp.tc/i/context7

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.

What you can do

  • 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

Tools 2

  • resolve-library-idRead-only

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

  • query-docsRead-only

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

Read from the live server on 17 Nov 2026. Read-only, Writes and Can delete are hints the server declares; your client decides whether to ask before running a tool.

Example 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?

Set up

Every client connects to mcp.context7.com. Pick yours; the page remembers your choice.

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 Customize → Connectors, click + Add, then 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, go to Plugins, select +, then Add custom MCP server.
  2. Enter a name for the server.
  3. Under Connection, paste https://mcp.context7.com/mcp as the server URL, then for authentication choose No authentication, or OAuth to sign in to Upstash for more access.
  4. Check I understand and want to continue, then select Create as a plugin.

Whether you can add a custom MCP server depends on your ChatGPT plan and your workspace permissions (in Business workspaces, admins and owners can).

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>.

Embed

Show Context7 in a README or on your site. Each embed links to this page, uses the server’s own URL, and sets no cookies. How embeds work

The card, the iframe and the JSON are in English. Add ?lang=it, fr, de or es to their address for another language.

README badge

Badge preview, lightBadge preview, 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>

It follows the reader’s light or dark mode. Add ?theme=light or ?theme=dark to fix it, or ?style=compact to show the mark without the word.

Website card

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

The card appears where the tag is. Add data-theme="dark" or data-size="compact" to the tag to change it. The file holds everything it needs, so it makes no other requests and sets no cookies.

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>

Use it on pages that don’t allow scripts. Add ?theme=light or ?theme=dark to the address to fix the colors.

JSON

The listing as data for your own pages and tools: name, tagline, the server’s own URL, tools and the “Add to” links. Any site can read it (CORS is open).

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

What each field means

AI prompt

Paste this into an AI coding assistant, such as Claude Code or Cursor, and it adds the Context7 card to your site.

Markdown
Add the mcp.tc card for Context7, an MCP server, to my website. It is one static script: no build step, no package to install, no cookies.

Put this tag where the card should appear. The card renders right before it:

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

To show the card somewhere else, put this placeholder there and load the same script once, for example before `</body>`. Keep the link inside: visitors without JavaScript see it.

```html
<div data-mcptc="context7"><a href="https://mcp.tc/i/context7">Context7 on mcp.tc</a></div>
```

Options:
- `data-theme="light"` or `"dark"` on the tag or the placeholder fixes the colors. Without it, the card follows the visitor’s light or dark mode.
- `data-size="compact"` gives a smaller card without the tagline.
- The CSS variable `--mcptc-max-width` on the placeholder or a parent sets the width (default `520px`).
- `?lang=` on the script URL sets the card’s language: `en`, `it`, `fr`, `de` or `es`.

If the site has a Content Security Policy, allow `script-src https://mcp.tc` and `img-src data:` (the icon is inline).

For a README or other Markdown docs, use the badge instead:

```markdown
[![Context7 on mcp.tc](https://mcp.tc/i/context7/badge.svg)](https://mcp.tc/i/context7)
```

Reference: https://mcp.tc/embed

Change history

We read this server’s tool list every 3 hours and record what changes. Last read 18 Nov 2026, 02:32 UTC.

Follow Context7 and we’ll email you when something changes.

  1. , Automatic check

    New version 4.7.3 (was 4.7.0). Reported by the server.

  2. , Automatic check

    New version 4.7.0 (was 4.5.0). Reported by the server.

  3. , Automatic check

    New version 4.5.0 (was 4.4.3). Reported by the server.

  4. , Automatic check

    Server instructions changed.

    New server instructions

    Details, 3 Nov 2026, 08:51 UTC

    Server instructions

    Before

    Use this server to fetch current documentation whenever the user asks about a library, framework, SDK, API, CLI tool, or cloud service — even well-known ones like React, Next.js, Prisma, Express, Tailwind, Django, or Spring Boot. This includes API syntax, configuration, version migration, library-specific debugging, setup instructions, and CLI tool usage. Use even when you think you know the answer — your training data may not reflect recent changes. Prefer this over web search for library docs. Do not use for: refactoring, writing scripts from scratch, debugging business logic, code review, or general programming concepts.

    After

    Use this server to fetch current documentation whenever the user asks about a library, framework, SDK, API, CLI tool, or cloud service — even well-known ones like React, Next.js, Prisma, Express, Tailwind, Django, or Spring Boot. This includes API syntax, configuration, version migration, porting code between libraries, platforms, or SQL dialects, library-specific debugging, setup instructions, and CLI tool usage. Use even when you think you know the answer — your training data may not reflect recent changes. Prefer this over web search for library docs. Do not use for: refactoring, debugging, or reviewing code that does not depend on a library or platform API, or general programming concepts.

  5. , Automatic check

    New version 4.4.3 (was 4.4.2). Reported by the server.

  6. , Automatic check

    New version 4.4.2 (was 4.4.1). Reported by the server.

  7. , Automatic check

    New version 4.4.0 (was 4.3.0). Reported by the server.

  8. , Automatic check

    1 tool changed.

    Details, 13 Oct 2026, 16:31 UTC

    Changed 1

    • query-docsinput schema
      • Description of libraryId
        Before

        Exact Context7-compatible library ID (e.g., '/mongodb/docs', '/vercel/next.js', '/supabase/supabase', '/vercel/next.js/v14.3.0-canary.87') retrieved from 'resolve-library-id' or directly from user qu…

        After

        Exact Context7-compatible library ID (e.g., '/mongodb/docs', '/vercel/next.js', '/supabase/supabase', '/vercel/next.js/v16.2.9') retrieved from 'resolve-library-id' or directly from user query in the…

  9. , Automatic check

    New version 4.3.0 (was 4.2.0). Reported by the server.

  10. , Automatic check

    1 tool changed.

    Details, 9 Oct 2026, 16:33 UTC

    Changed 1

    • query-docsdescription and input schema
      Before

      Retrieves and queries up-to-date documentation and code examples from Context7 for any programming library or framework. You must call 'Resolve Context7 Library ID' tool first to obtain the exact Context7-compatible library ID required to use this tool, UNLESS the user explicitly provides a library ID in the format '/org/project' or '/org/project/version' in their query. Do not call this tool more than 3 times per question.

      After

      Retrieves and queries up-to-date documentation and code examples from Context7 for any programming library or framework. You must call 'Resolve Context7 Library ID' tool first to obtain the exact Context7-compatible library ID required to use this tool, UNLESS the user explicitly provides a library ID in the format '/org/project' or '/org/project/version' in their query. Do not call this tool more than 3 times per question. If you know the programming language the user is working in, pass it as `language` so the results match their setup.

      • New parameters: language
  11. , Automatic check

    New version 4.1.2 (was 4.1.1). Reported by the server.

  12. , Automatic check

    Tracking started: 2 tools.

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, Cursor, VS Code, Devin Desktop, Codex, Gemini CLI, Zed and others. The setup steps cover each one.

Does mcp.tc track changes to Context7?

Yes. Context7’s History tab shows each change we find to its tools, down to descriptions and parameters, plus new versions and edits by its owner. Follow the listing to get an email when it changes.

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.

mcp.tc isn’t affiliated with Upstash. This page was built from Context7’s public metadata, last checked on 17 Nov 2026, and an AI model wrote the description, so it can be wrong. Names and marks belong to their owners. Something off? Report this listing.