SERVER

Context7

Rank #3

io.github.upstash/context7

Up-to-date code docs for any prompt

18 versions
63,104 GitHub stars
by upstash (3 servers)View repository ↗
First listed
Apr 9, 2025
Last publish date
Oct 15, 2026
PURPOSE

What you can do with Context7

Context7 pulls up-to-date, version-specific library documentation and code examples straight from the source into the model's context, so generated code stops relying on stale training data or invented APIs.

Suitable tasks
  • Look up current usage of a library or API
  • Generate code against a specific framework version
  • Fetch setup or configuration steps for a service
  • Target a known library by its Context7 ID
CAPABILITIES AND LIMITATIONS

What Context7 can and cannot do

Capabilities

Two tools: resolve-library-id turns a library name into a Context7-compatible ID, and query-docs fetches documentation for that ID against a query. The same index is also reachable through the ctx7 CLI (ctx7 library, ctx7 docs) when the agent uses skills instead of MCP.

Documented tools (2)
  • resolve-library-id
  • query-docs
Limitations
  • Library projects are community-contributed; Context7 does not guarantee their accuracy, completeness or security
  • Only the MCP server is open source; the API backend, parser and crawler are private
  • Without an API key the service applies lower rate limits
REQUIREMENTS

What you need before using Context7

DeclaredNo credentialsNo credentials declared

The registry listing declares no required environment variables or authentication. This is declared metadata, not a verified install — the repository README is the authority.

MCP Toplist probed the public endpoint on Oct 5, 2026 and could not complete the MCP handshake (jsonrpc error). Requirements remain unverified.

Declared by Glama, last synced Oct 16, 2026. Not independently verified by MCP Toplist.

Runtime
None for the remote server; Node.js 18+ for npx ctx7 setup or the @upstash/context7-mcp package
Credentials
API key recommended (free, from context7.com/dashboard); npx ctx7 setup obtains one via OAuth
Payment
Free API key raises rate limits; the README does not describe paid tiers
Declared in the registry install config
  • CONTEXT7_API_KEY · optional

Hosted endpoint declared as public.

INSTALLATION AND FIRST TASK

Connect Context7 and confirm it works

  1. Run npx ctx7 setup and choose MCP mode (or CLI + Skills); it signs in via OAuth and generates an API key
  2. Or add https://mcp.context7.com/mcp as an HTTP server with header Authorization: Bearer <API key>
  3. Optionally add a standing rule (CLAUDE.md, Cursor Rules) telling the agent to use Context7 for library questions
Remote · HTTP
claude mcp add --transport http context7 https://mcp.context7.com/mcp
npm package
claude mcp add context7 -e "CONTEXT7_API_KEY=<your CONTEXT7_API_KEY>" -- npx -y @upstash/context7-mcp

Replace each placeholder with your own value before saving.

MCP bundle

Published as mcp bundle `https://github.com/upstash/context7/releases/download/mcpb-v4.4.2/context7.mcpb` — install it through your client’s extension manager.

First successful task

Ask: "Create a Next.js middleware that checks for a valid JWT in cookies and redirects unauthenticated users to /login. use context7"

Expected: The agent calls resolve-library-id then query-docs for Next.js and writes middleware based on the current documentation rather than guessed APIs.

ALTERNATIVES

When to choose another server

  • Ref Tools MCP#7,355

    You want documentation search that also covers your own private docs and PDFs.

  • Docfork MCP#4,061

    You want a different curated library-docs index to compare coverage against.

  • Deepwiki MCP Server#4,585

    You want AI-generated wiki pages for a GitHub repository rather than its official docs.

Other servers by upstash
View all upstash servers →
MAINTENANCE AND EVIDENCE

What changed, and when this was checked

First listed
Apr 9, 2025
Latest version published
Oct 15, 2026
Version history
18 versions tracked (below)
Requirements evidence
MCP Toplist probed the public endpoint on Oct 5, 2026 and could not complete the MCP handshake (jsonrpc error). Requirements remain unverified.
Profile checked
Oct 9, 2026 against README
Ranking data as of
Oct 16, 2026
Registry sightings

Do you maintain Context7? to correct or enrich this profile.

VERSIONS

Available versions (18)

0.1.0 · Nov 25, 20241.0.0 · Oct 22, 20251.0.30 · Nov 24, 20251.0.31 · Nov 28, 20254.0.3 · Aug 28, 20264.0.4 · Aug 28, 20264.0.5 · Sep 4, 20264.0.7 · Sep 9, 20264.1.0 · Sep 11, 20264.1.1 · Sep 14, 20264.1.2 · Oct 7, 20264.1.3 · Oct 7, 20264.2.0 · Oct 7, 20264.2.1 · Oct 9, 20264.3.0 · Oct 9, 20264.4.0 · Oct 13, 20264.4.1 · Oct 13, 20264.4.2 · Oct 15, 2026Nov 25, 2024Oct 15, 2026
VersionPublished
4.4.2Oct 15, 2026
4.4.1Oct 13, 2026
4.4.0Oct 13, 2026
4.3.0Oct 9, 2026
4.2.1Oct 9, 2026
4.2.0Oct 7, 2026
4.1.3Oct 7, 2026
4.1.2Oct 7, 2026
4.1.1Sep 14, 2026
4.1.0Sep 11, 2026
4.0.7Sep 9, 2026
4.0.5Sep 4, 2026
4.0.4Aug 28, 2026
4.0.3Aug 28, 2026
1.0.31Nov 28, 2025
1.0.30Nov 24, 2025
1.0.0Oct 22, 2025
0.1.0Nov 25, 2024
STANDING
#3of 144,396 active serversTop 0.1%

Ranks ahead of 144,393 of 144,396 servers on MCP Toplist.

Recent momentum
+8,792GitHub stars since Apr 27 (+16%)
BADGE

Show your rank

Maintain this server? Add the live rank badge to your README — it updates automatically as the leaderboard changes.

MCP Toplist: #3 of 144,396
Markdown
[![MCP Toplist](https://mcptoplist.com/badge/io.github.upstash%2Fcontext7.svg)](https://mcptoplist.com/server/io.github.upstash%2Fcontext7)
HTML
<a href="https://mcptoplist.com/server/io.github.upstash%2Fcontext7"><img src="https://mcptoplist.com/badge/io.github.upstash%2Fcontext7.svg" alt="MCP Toplist: #3 of 144,396" /></a>

Variants: append ?metric=score or ?metric=stars to the image URL.

FAQ

Frequently asked questions

Who maintains Context7?
Context7 is maintained by upstash, which publishes 3 MCP servers (20 total versions) tracked on MCP Toplist.
Is Context7 listed on the Official MCP Registry?
Yes — Context7 is listed on the Official MCP Registry, alongside mcp.so, Smithery, Glama and PulseMCP.
How many versions does Context7 have?
MCP Toplist tracks 18 versions of Context7, most recently published on Oct 15, 2026.
Where can I find the source code for Context7?
The source code for Context7 is hosted at github.com/upstash/context7-mcp.
Used in projects

Stacks that run this server

EXPLORE