context7

context7 is an MCP server for Claude Code from upstash/context7. Its token cost is not measured, scanned A, original, MIT.

A hosted Context7 MCP server that supplies current library documentation and code examples to an AI coding agent. It is accessed remotely and can use an optional authorization key.

In plain words
What is it for?
Connecting an AI coding environment to Context7 for on-demand documentation lookup. The input does not describe other jobs it supports.
Why use it?
It lets the agent retrieve documentation during a coding session instead of relying only on remembered information. This helps when APIs or library versions have changed.

MCP server for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: listed in a Claude config.

Part of the context7 plugin — 1 MCP server shipped together

Good fit Connecting an AI coding environment to Context7 for on-demand documentation lookup. The input does not describe other jobs it supports.

Compare 6 mcp servers from other repositories ↓
Install with agentmods
npx agentmods add mcp/upstash/context7/context7-context7
About the project

Context7 is a documentation service that puts current, version-specific library documentation and code examples into prompts for large language models and AI coding editors. Developers use it to help coding agents produce answers based on the libraries they actually use; the catalogue entries provide ways for agents to access Context7 through its CLI or MCP server.

upstash/context7 · 63,103 stars · on GitHub · context7.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/upstash/context7

Made for: Claude Code.

Or install context7, the plugin that ships this one along with the rest of its 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for context7

README.md
[![agentmods](https://agentmods.dev/badge/mcp/upstash/context7/context7-context7/github.svg)](https://agentmods.dev/mcp/upstash/context7/context7-context7)
Your own site
<a href="https://agentmods.dev/mcp/upstash/context7/context7-context7"><img src="https://agentmods.dev/badge/mcp/upstash/context7/context7-context7/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for context7

Your own site · 80×15
<a href="https://agentmods.dev/mcp/upstash/context7/context7-context7"><img src="https://agentmods.dev/badge/mcp/upstash/context7/context7-context7.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Security

Grade A, and why

context7 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

8 near-identical copies found in the catalogue:

  • context7 — 100% identical, 0 lines differ
  • context7 — 86% identical, 3 lines differ
  • context7 — 80% identical, 2 lines differ
  • context7 — 80% identical, 2 lines differ
  • context7 — 80% identical, 2 lines differ
  • context7 — 80% identical, 2 lines differ
  • context7 — 80% identical, 2 lines differ
  • context7 — 80% identical, 2 lines differ
plugins/claude/context7/.mcp.json · 6 lines

What it actually says

{
  "context7": {
    "type": "http",
    "url": "https://mcp.context7.com/mcp?client=claude-code-plugin"
  }
}
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 17d ago Changed · -1 lines 4fc0b2a465fa
  2. 1mo ago Changed · -2 lines 6921cbdb38c4
  3. 1mo ago First seen · 9 lines scan A e9c62d468cf2

Subscribe to this mod's changes

context7 is an MCP server published in the GitHub repository upstash/context7 (63,103 stars, last pushed today), licensed MIT. Its token cost is not measured: an MCP server costs its tool schemas, not its config file. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.