Context7

MCP server by Upstash

OfficialRemote and local
Official pageGitHub repo

Context7 MCP server at a glance

Context7 is an official MCP server from Upstash. It gives an AI assistant up-to-date, version-specific docs and code examples for libraries.

Connects to
Developer tools
Hosting
Remote and local · Streamable HTTP and stdio
Sign-in
API key (optional)
Price
Free
Works with
Cursor, Claude Code, Codex, OpenCode, Devin, Antigravity
Best for
Developers who want fewer outdated code suggestions
Checked
October 3, 2026 on official sources

How to install Context7

Add the URL below as a new MCP server in your AI app’s settings or MCP config file. Sign-in: API key (optional).

Remote server URL
https://mcp.context7.com/mcp
Install or connect
npx ctx7 setup

What Context7 can do

It pulls current documentation for thousands of libraries into the AI's context so code suggestions match real APIs. The assistant first resolves a library ID and then queries its docs.

Tools it exposes include
resolve-library-idquery-docsVersion-specific docsCode examples

Best for: developers who want fewer outdated code suggestions

Pros

  • Very popular and easy to set up
  • Covers many libraries
  • Works without an API key

Cons

  • Free plan capped at 1,000 calls a month
  • Private repos need the paid Pro plan

Context7 FAQ

Is Context7 free?

Yes. The free plan includes 1,000 API calls a month; Pro costs $10 per seat a month.

How do I connect Context7?

Run npx ctx7 setup or add https://mcp.context7.com/mcp to your client.

What can Context7 do?

It finds a library and returns current docs and code examples for the version you use.