Skip to content

Context7 Review

Context7 by Upstash feeds up-to-date, version-specific library documentation and code examples into AI coding agents such as Claude Code, Cursor and Codex, via an MCP server or a CLI.

Free plan · from $10/mo · Web, API

Stork's verdict on Context7

Context7 is a cheap, easy way to stop coding agents guessing at outdated APIs, and the free tier covers most solo developers.

Context7 reviewed by Stork AI · stork.ai/en/context7

What Context7 does

Context7 is a documentation service for AI coding agents, run by Upstash. It indexes the docs and code examples of public libraries and frameworks (Next.js, React, Playwright, PostgreSQL, Cloudflare and many more), and when your agent needs to use one, it fetches the current, version-specific snippets into the agent's context instead of relying on what the model remembers from training. You trigger it by adding "use context7" to a prompt, naming a library ID such as /vercel/next.js, mentioning a version, or setting a rule so the agent calls it automatically.

Setup is one command, npx ctx7 setup, which signs you in, creates an API key and installs either CLI + Skills mode (a skill that tells the agent to run ctx7 commands) or MCP mode (a remote MCP server at mcp.context7.com with resolve-library-id and query-docs tools). It supports Claude Code, Cursor, OpenCode and 30+ other MCP clients, and there is a REST API, a TypeScript SDK and Vercel AI SDK tools. Library maintainers can add or claim their docs, and Pro teams can index private repositories. The MCP server code is MIT-licensed on GitHub; the API backend, parser and crawler are private.

Context7 pricing

PlanMonthly priceIncluded API callsExtra callsKey features
Free$01,000 per monthBlocked at limit, then 20 bonus calls a dayPublic repos, access control, OAuth 2.0
Pro$10/month per seat2,000 per seat per month$5 per 1,000 callsPrivate repos, team collaboration, never blocked
EnterpriseCustom2,000 per seat per month$5 per 1,000 calls per seatSOC 2, SSO (SAML/OIDC), self-hosting, dedicated support
UsagePrice
Extra API calls (Pro and Enterprise)$5 per 1,000 = $0.005 per call
Private repository parsing$5 per 1M tokens (refreshing cached pages is free)

Search API and Context API requests count the same, one call each. Allowances are per seat and not pooled: if one Pro member makes 3,000 calls and another none, 1,000 calls are billed ($5). Context7 says Enterprise starts around $30 per user per month for small teamspaces and can go as low as $2.50 per user for large organisations, with up to 5,000 members per teamspace; teamspaces up to 50 members can activate Enterprise self-serve. You can cancel Pro any time; unpaid usage is charged before the move to Free.

Prices checked on the vendor's pricing page on November 10, 2026. See Context7 plans.

Key features of Context7

What Context7's own pages and README list:

  • Up-to-date, version-specific docs and code examples for public libraries
  • One-command setup with npx ctx7 setup, choosing CLI + Skills or MCP mode
  • Remote MCP server with resolve-library-id and query-docs tools
  • Works with Claude Code, Cursor, Codex, OpenCode and 30+ MCP clients
  • REST API, TypeScript SDK and Vercel AI SDK tools
  • Private repository indexing and team collaboration on Pro
  • Trust scores per library and injection screening of indexed content
  • Library rankings, benchmark scores and update times on context7.com

Who Context7 is best for

Context7 suits developers who use AI coding agents with fast-moving frameworks, where models trained months ago suggest outdated or invented APIs. The free tier's 1,000 calls a month covers light individual use; teams that need private repos or never want to be blocked pay $10 per seat. Because indexed docs are community-contributed, treat anything your agent pulls from a little-known library with the same care as other third-party content.

If you want to ask questions about a specific GitHub repository rather than look up library docs, DeepWiki and GitMCP cover that. Ref is another documentation MCP server. If you code in Cursor, its built-in docs indexing may be enough for a few libraries.

What users say about Context7

Context7's open-source MCP server has about 64,500 stars on GitHub, a sign of wide adoption among developers using coding agents. Its main public incident was security: in February 2026 Noma Security reported "ContextCrush", a flaw where poisoned custom rules on a library could instruct agents to read .env files and delete local files. Noma says Upstash fixed it in production on February 23, 2026, five days after the report, with no exploitation observed; it is tracked as CVE-2026-75130.

Pros

  • Gives coding agents current, version-specific docs and examples
  • One-command setup for Claude Code, Cursor and OpenCode
  • Free tier with 1,000 calls a month
  • Low, published usage pricing: $5 per 1,000 extra calls
  • MCP server code is MIT-licensed

Cons

  • Free users are blocked at 1,000 calls until the month resets
  • Private repositories need a paid plan
  • Per-seat call allowances are not pooled across a team
  • Indexed docs are community-contributed; quality varies by library

Context7 FAQ

Is Context7 free?

Yes, for light use. The Free plan includes 1,000 API calls a month for public libraries. When you hit the limit you are blocked, with 20 bonus calls a day until the month resets. Pro is $10 per seat per month.

How much does Context7 Pro cost?

Pro costs $10 per seat per month and includes 2,000 API calls per seat. Extra calls cost $5 per 1,000, and parsing private repositories costs $5 per 1M tokens. Prices checked November 10, 2026.

How do I install Context7 in Claude Code or Cursor?

Run npx ctx7 setup (Node.js 22.13 or newer). It signs you in, creates an API key and installs a skill or MCP server; add --claude, --cursor or --opencode to target one agent. You can also point any MCP client at https://mcp.context7.com/mcp with your API key.

Does Context7 see my code?

Context7 says only the documentation lookup query and library name are sent to its servers, not your code or conversation history, and that the agent is instructed not to include secrets in queries.

Can Context7 index private repositories?

Yes, on Pro and Enterprise. Parsing a private repository costs $5 per 1M tokens when you add or refresh it; cached pages are free on refresh. The Free plan covers public libraries only.

Is Context7 safe?

Context7 screens indexed content for prompt injection and shows a trust score per library, and it fixed the ContextCrush custom-rules flaw within days in February 2026. Docs are community-contributed, so review what agents do with less-known libraries.

Compare Alternatives

See every Context7 alternative, compared

Context7

Free plan · from $10/mo · Web, API

From the Stork blog

Enjoying this? Get one like it in your inbox each morning.

one email a day · unsubscribe in two clicks · no third-party tracking