Context7vf.sr
listing.by · home.legend.verified
Fetch up-to-date, version-specific library documentation and code examples straight into your assistant's context.
listing.connect
listing.explain.optional
listing.note.optional
listing.share.h
listing.share.p
mcp.tc/i/context7listing.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.roResolve a package or product name to a Context7 library ID and list matching libraries.
query-docslisting.hint.roRetrieve 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
- Run this in a terminal, in your project folder:
claude mcp add --transport http context7 https://mcp.context7.com/mcp- 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
- Open Settings → Connectors and click Add custom connector.
- Name it Context7 and paste this URL:
https://mcp.context7.com/mcp- 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
- Open the connector form on claude.ai. This button fills in the name and URL for you:
- Check that the URL reads
https://mcp.context7.com/mcpand click Add. - 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
- On chatgpt.com, open Settings → Security and login and turn on Developer mode.
- Go to
chatgpt.com/pluginsand click + to create an app for a remote MCP server. - Paste
https://mcp.context7.com/mcpas 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):
{
"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
Install in VS Code a11y.new_tab
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:
{
"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
- Add it to
~/.config/devin/mcp_config.json(macOS and Linux) or%APPDATA%\devin\mcp_config.json(Windows):
{
"mcpServers": {
"context7": {
"serverUrl": "https://mcp.context7.com/mcp"
}
}
}- 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/mcpOr edit ~/.codex/config.toml directly:
[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/mcpThen, 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
[](https://mcp.tc/i/context7)<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
<script src="https://mcp.tc/w/context7.js" async></script>listing.em.widget_note
iframe
<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
listing.disclaimer_checked