Skip to content
AI Dev Toolkit.
Esc
  • Loading…

MCP server · Docs and web search

Context7 MCP server

Context7 MCP is Upstash’s official MCP server for library documentation. It pulls current, version-specific docs and code examples into an assistant’s context on request. It runs remotely at https://mcp.context7.com/mcp; a free Context7 API key is optional and raises the rate limits. Your queries go to Upstash’s hosted service.

Maintainer
Upstash (official)
Licence
MIT
Runs
Remote (URL)
Sign-in
Optional token
Registry version
4.9.1 (updated 2026-11-27)
Last activity
2026-10-13

Overview

What can the Context7 MCP server do?

Context7 is an Upstash service that indexes documentation for a large number of libraries and serves it to assistants. The MCP server has two tools: resolve-library-id turns a library name into a Context7 ID such as /vercel/next.js, and query-docs returns the relevant documentation and code snippets for a question. The hosted endpoint is the documented manual setup; a local npm package and a ctx7 command-line tool with skills are also offered.

Use it when an assistant keeps suggesting outdated or invented APIs. Mention a version in your prompt to get docs for that version, or give the library ID to skip the matching step. It works without a key at lower rate limits; a free API key from the Context7 dashboard raises them, and OAuth is supported at a separate /mcp/oauth URL. The repository holds only the MCP server; the API backend and crawler are private, and library entries are contributed by the community.

Tools

Tools it gives the assistant

  • Resolve a library name to a Context7 library ID
  • Query documentation and code examples for a library ID
  • Rank code examples by programming language
  • Match the library version mentioned in a prompt

Install

How do I install Context7 MCP in Claude Code, Cursor or VS Code?

You need:

  • An MCP client that supports remote HTTP servers
  • A free Context7 API key for higher rate limits (optional)

Run in your project. --scope local keeps the servers private to you in this project; use user for every project.

Terminal
claude mcp add --scope local --transport http context7 https://mcp.context7.com/mcp

Need another app? Open Context7 in the MCP config generator for a shared project .mcp.json, Devin, or several servers at once; it writes one file per app. The snippets follow the setup in the server’s README, checked on 2026-10-14.

Is the Context7 MCP server safe? Check before you install

  • Your queries and library names are sent to Upstash’s hosted service.
  • Library docs are community-contributed and Upstash does not guarantee their accuracy or safety, so treat returned snippets as untrusted input.
  • It is read-only: it has no access to your files or accounts.
  • A remote server sees whatever the assistant sends it. Sign in with the narrowest access the service offers. See how to choose a safe server.

FAQ

Context7 MCP questions

Is the Context7 MCP server official?

Yes. Upstash publishes and maintains it, under the MIT licence. Install it only from the source linked on this page, not from a copy in another directory.

Is Context7 MCP server remote or local?

Remote. Your MCP app connects to https://mcp.context7.com/mcp over HTTP, so nothing runs on your machine and the service sees the requests the assistant sends.

Does Context7 MCP server need an API key or account?

Not to start. It works without a key, and an API key or token from the service adds higher limits or more tools. You also need: An MCP client that supports remote HTTP servers; A free Context7 API key for higher rate limits (optional).

Why it’s listed

Why we list it

The most popular way to give coding assistants current library docs, with very frequent releases and a key-less start.

Related

All MCP serversMCP config generatorGuide: MCP servers in Claude CodeGuide: what is MCP?