# Context7 — Hosted MCP server and API that feeds up-to-date, version-specific library docs to coding agents.

> Source: The Agents Index — https://theagentsindex.com/context7 (structured, researched, re-verified)
> Facts last verified: 2026-10-18

Context7 is an Upstash-run MCP server and REST API that indexes documentation and code examples from public and private repositories, websites and OpenAPI specs. Coding agents such as Claude Code, Cursor and Codex query it for current, version-specific library docs.

| Fact | Value |
| --- | --- |
| Website | https://context7.com |
| Price | free, then from $10/seat per month |
| Free tier | Yes |

Free plan: $0, public repositories only, 1,000 API calls per month, one person (personal teamspace). On hitting the cap you are blocked but granted 20 bonus API calls per day until the month resets; private repositories require Pro.

## What it does

**Done-for-you service** · No — You run the software yourself: plans are self-serve per-seat subscriptions, and even the on-premise Enterprise build is deployed and configured by the customer via Docker or Kubernetes, not by Upstash staff.

> Simple, transparent pricing for individuals and teams.
> — https://context7.com/plans · Pricing page, subheading under 'Context7 Pricing & Plans'

## How much it does unattended

**Runs autonomously** · Partly — The hosted service itself is a tool an agent calls, but the published AI SDK package ships Context7Agent, a tool-loop agent that resolves a library and fetches docs over multiple steps without a human between them, stopping after five steps by default.

> The `Context7Agent` class is a pre-configured AI agent that handles the complete documentation lookup workflow automatically.
> — https://context7.com/docs/agentic-tools/ai-sdk/agents/context7-agent · Context7Agent page, opening paragraph

**Agent permissions** · Partly — Its MCP tools only read documentation, and an owner or admin can narrow what any agent using the teamspace keys may retrieve through source-type toggles and library filters, but there is no per-action approval step to configure.

> Every search and MCP request made with one of the teamspace's API keys is filtered through these policies, so they apply to all members at once.
> — https://context7.com/docs/howto/policies · Manage Policies page, introduction

## Which models it runs on

**Claude** · Yes — Claude Code is a first-class client: the ctx7 CLI wires the MCP server into it with one command, and Anthropic is also one of the LLM providers selectable for an on-premise deployment.

> set up the Context7 MCP server (or a CLI-based `docs` skill) for Claude Code, Cursor, OpenCode, and more with a single command
> — https://context7.com/docs/clients/cli · CLI page, 'It does two things' bullet list

**GPT** · Yes — OpenAI models are supported on both sides: the on-premise setup wizard lists OpenAI as an AI provider, and OpenAI's Codex CLI is one of the documented MCP clients configured by ctx7 setup.

> AI Provider - Choose OpenAI, Anthropic, Gemini, AWS Bedrock, or a custom OpenAI-compatible endpoint.
> — https://context7.com/docs/enterprise/on-premise · On-Premise Deployment, 'Complete the setup wizard' step

**Open models** · Partly — Open-weight models can only be used on the Enterprise on-premise build, where the LLM and embedding providers accept a custom OpenAI-compatible base URL; the hosted service reranks with OpenAI, Gemini and Anthropic and offers no model choice.

> Base URL / Bedrock endpoint | Custom OpenAI-compatible endpoint, or an optional Bedrock Runtime endpoint
> — https://context7.com/docs/enterprise/on-premise · On-Premise Deployment, 'AI Provider Settings' table

**Model choice** · Yes — Context7 sits behind the MCP protocol rather than a model, so the buyer's own client and model choice decides everything; the vendor states the connection is independent of the selected model.

> The MCP connection is independent of the model selected for the agent. You can use the same Context7 server with any model available in Cursor Cloud Agents.
> — https://context7.com/docs/clients/cursor · Cursor page, 'Cursor Cloud Agents' note

## Where you use it

**In your editor** · Yes — It runs inside editors as an MCP server or installed skill, with dedicated setup pages for Cursor and VS Code and a one-command install that writes the client configuration for you.

> Context7 brings up-to-date library documentation directly into Cursor. Instead of getting outdated code examples from training data, you get current documentation from source repositories.
> — https://context7.com/docs/clients/cursor · Cursor page, opening paragraph

**On the command line** · Yes — The ctx7 CLI is a real terminal surface, not just an installer: it resolves a library by name and prints its documentation without a browser, and also configures MCP clients.

> **Fetch library documentation** — resolve any library by name and query its up-to-date docs directly in your terminal, without opening a browser
> — https://context7.com/docs/clients/cli · CLI page, first bullet of 'It does two things'

**In your pipeline** · Partly — CI use is limited to keeping the index fresh and calling the HTTP API: the documented GitHub Actions workflow posts a refresh on push. Nothing in the product acts on a pull request or reviews a diff.

> Keep your Context7 documentation in sync by triggering a refresh whenever you push to your main branch.
> — https://context7.com/docs/integrations/github-actions · GitHub Actions page, page description

**In a browser** · Yes — The site itself is a usable surface: a browsable index of libraries plus a hosted chat at /chat that queries the MCP server directly, with sign-in only needed to keep history.

> Chat with Context7 MCP Server for up-to-date library documentation
> — https://context7.com/chat · Chat page, heading above the prompt box

## Whose machine it runs on

**Self-hosted** · Partly — Self-hosting exists but only as the Enterprise on-premise build, deployed by Docker or Kubernetes with your own vector storage and AI provider; the comparison table marks Self-Hosted absent on Free and Pro.

> Context7 On-Premise keeps your repositories, generated documentation, application database, vector store, and MCP server in your infrastructure.
> — https://context7.com/docs/enterprise/on-premise · On-Premise Deployment, opening paragraph

**Open source** · Partly — Only the MCP server client is open source on GitHub and forkable to change what queries it sends; the indexing pipeline, the index itself and the hosted API are not published.

> The Context7 MCP server is open source: - Code is publicly available on GitHub
> — https://context7.com/docs/security/compliance-and-reporting · Compliance and Reporting page, 'Open Source' section

## What it costs to run

**How it meters** · Yes — It bills two ways at once: $10 per seat per month including 2,000 API calls per seat, then $5 per 1,000 extra calls, with private repository parsing metered separately at $5 per 1M tokens.

> Pro plan costs $10 per seat per month. Each teamspace member counts as a seat... You get 2,000 free API calls per seat per month, then $5 per 1,000 additional calls.
> — https://context7.com/plans · FAQ, 'How does the Pro plan pricing work?'

**Free tier** · Yes — A standing $0 plan gives public-repository access and 1,000 API calls a month with no call to sales; it is capped rather than time-limited, and private repositories need Pro.

> The Free plan includes access to public repositories, basic access control, and 1,000 API calls per month.
> — https://context7.com/plans · FAQ, "What's included in the Free plan?"

**API access** · Yes — A documented REST API covers search, context retrieval, refresh, usage metrics, policies and library ingestion, authenticated with a bearer API key created in the dashboard; the Search API is on every tier.

> All API requests require authentication using an API key. Include your API key in the `Authorization` header:
> — https://context7.com/docs/api-guide · API Guide, 'Authentication' section

**MCP server** · Yes — The product is itself an MCP server at mcp.context7.com/mcp exposing two tools, resolve-library-id and query-docs, so any MCP client or agent can query it with a bearer key.

> To configure manually, use the Context7 server URL `https://mcp.context7.com/mcp` with your MCP client and pass your API key via the `Authorization: Bearer YOUR_API_KEY` header.
> — https://context7.com/docs/resources/all-clients · MCP Clients page, opening paragraph

**Bring your own key** · Partly — Bringing your own inference is an Enterprise capability: on-premise deployments configure their own LLM and embedding provider keys, and Enterprise plans may use their own provider for extraction and ranking. Hosted Free and Pro use Context7's providers.

> On-premise Enterprise plans can use their own LLM provider for code extraction and private library ranking
> — https://context7.com/docs/security/data-privacy · Data Privacy, 'Enterprise Controls' bullets

## Buying it for a team

**A company can buy it** · Yes — Organisations buy it as teamspaces billed per member on Pro or Enterprise, and teamspaces up to 50 members can activate Enterprise self-serve with a payment method and no sales call.

> Teamspaces up to 50 members can self-serve by adding a payment method and activating the Enterprise plan instantly.
> — https://context7.com/plans · FAQ, 'Can I start on Enterprise without talking to sales?'

**Seat model** · Yes — Pricing is strictly per seat at $10 a month with each teamspace member counted, and there is a ceiling rather than a floor: Free is one person, Pro caps at 10 members, Enterprise is unlimited.

> | Free       | 1 (personal only) | | Pro        | 10                | | Enterprise | Unlimited         |
> — https://context7.com/docs/howto/teamspace · Manage Your Teamspace, 'Limits' table

**Pooled budget** · No — Allowances are explicitly not pooled: each member gets their own 2,000 calls, unused seat allowance does not carry over, and one member's overage is billed even while another seat sits idle.

> Limits are per seat, not shared across the teamspace... the unused allocation from other seats does not carry over.
> — https://context7.com/plans · FAQ, 'How is API usage tracked for Pro teamspaces?'

**Admin controls** · Yes — Owners and admins set teamspace policies that filter every search and MCP request by source type, trust score, verification and blocked libraries, with developers held to read-only access to those settings.

> Policies are scoped to a teamspace. Only owners and admins can change them; developers have read-only access.
> — https://context7.com/docs/howto/policies · Manage Policies page, Note callout

**Audit log** · Partly — Audit trails are named only as an Enterprise entitlement alongside SSO; no admin audit log is described for Free or Pro, where the dashboard shows usage metrics rather than a record of administrative action.

> Enterprise customers can enable SSO (SAML, OAuth, OIDC) and receive dedicated audit trails
> — https://context7.com/docs/security/overview · Security overview, 'Highlights' bullets

**Single sign-on** · Partly — SAML 2.0 and OIDC are supported but gated to Enterprise, with Entra and Okta setup guides; the comparison table marks SSO absent on both Free and Pro, where sign-in is OAuth 2.0 only.

> **Single Sign-On (SSO) is available for Enterprise plans.**
> — https://context7.com/docs/security/auth-and-access-control · Authentication and Access Control, 'Enterprise SSO' section

## What happens to your code

**Opt out of training** · Partly — Your code and prompts never reach Context7, but the queries the client formulates are stored anonymously to benchmark retrieval; switching that storage off is an Enterprise control and the vendor warns it may degrade quality.

> Enterprise plans can disable query storage for benchmarking — however, this may affect the quality of context retrieval over time
> — https://context7.com/docs/security/data-privacy · Data Privacy, 'Enterprise Controls' bullets

**Data residency** · Yes — Indexed documentation and metadata sit in Upstash infrastructure in the United States and the European Union under GDPR and the EU-U.S. Data Privacy Framework, with region-specific residency available to enterprise customers on request.

> All indexed documentation and metadata are stored within Upstash's SOC 2 compliant infrastructure in the United States and the European Union.
> — https://context7.com/docs/security/data-privacy · Data Privacy, 'Data Residency' section

**Getting out** · Partly — GDPR access, deletion and portability rights are published and deleted data is purged within 30 days, but no documented bulk export of your indexed libraries exists and per-seat call allowances expire monthly without carrying over.

> The right to access your data - The right to delete your data - Data portability options
> — https://context7.com/docs/security/data-privacy · Data Privacy, 'GDPR Compliance' bullets

**Certifications** · Partly — GDPR compliance is claimed on every tier and SOC 2 Type II is inherited from Upstash infrastructure, but the plan table reserves SOC-2 compliance for Enterprise and ISO 27001 is still in progress rather than certified.

> - SOC 2 Type II - GDPR compliant - ISO 27001 (in progress)
> — https://context7.com/docs/security/compliance-and-reporting · Compliance and Reporting, 'Compliance Certifications' list

## What changed

- 2026-10-18 — Capabilities · Free tier · Price · Terms

## Keeping it current

These facts are re-checked against Context7's own pages and updated when they change. If you represent Context7, sign in and update the listing from your dashboard at https://theagentsindex.com/dashboard. The operations this site accepts from an agent are listed at https://theagentsindex.com/.well-known/agents.json — that catalog needs no key to read, and each entry states its own auth.
