Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
upstash avatar

Context7 MCP

  • 60.6k repo stars
  • Updated August 10, 2026
  • upstash/context7

Context7 is Upstash's MCP server for library documentation. It resolves the library you name, fetches the docs for the version you installed, and returns the relevant sections and code examples in the agent's context, so the code it writes targets the real API instead of a memorized snapshot. The repository is MIT licensed and public with 60.5k stars.

About

Upstash's Context7 answers the single most common failure in agent-written code: the model recalls an old version of a library. It resolves the library, fetches the current documentation and returns the relevant sections and examples in context, so the code the agent produces targets the version you actually installed.

  • Up-to-date, version-specific docs injected into the agent's context
  • 60.5k stars on upstash/context7
  • Hosted remote endpoint or self-run npm package
  • Cuts hallucinated APIs from stale training data
  • MIT licensed

Context7 MCP by the numbers

  • Data as of Aug 11, 2026 (Skillselion catalog sync)
npx ctx7 setup

Add your badge

Show developers this MCP server is listed on Skillselion. Paste this into your README.

Listed on Skillselion
repo stars60.6k
Last updatedAugust 10, 2026
Repositoryupstash/context7

What does the Context7 MCP server do?

Pull up-to-date, version-specific documentation and code samples for any library into the agent's context so it stops writing code against a stale API.

What you get

  • Current documentation for a named library
  • Version-matched code examples
  • Reduced hallucinated API calls

By the numbers

  • 60,480 GitHub stars on upstash/context7
  • MIT licensed
  • Offered as a hosted remote MCP endpoint

Recommended MCP Servers

FAQ

Is there a Context7 skill for Claude Code?

Yes. Upstash ships two modes, and npx ctx7 setup can install a skill that fetches docs through the ctx7 CLI with no MCP server at all. This page is the MCP mode, which registers the server with your client instead.

How do I use Context7 with Claude Code?

Register it with the claude mcp add command shown above, or point your client at the remote endpoint Upstash hosts. The npm package runs the same server on your own machine when you would rather not depend on the hosted one.

What problem does Context7 MCP solve?

Models learn a library at one point in time and then keep writing code against that snapshot. Context7 MCP fetches the live docs for the version you use and puts them in context, so the generated code compiles against your actual dependency.

Do I need to self-host Context7 MCP?

No. Upstash offers a hosted remote MCP endpoint, and the same server is published as an npm package if you would rather run it yourself.

Is Context7 MCP free and open source?

The repository upstash/context7 is MIT licensed and public with 60.5k stars.

Documents & Knowledgedocsbackendfrontend

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.