Context7 logo - MCP Servers AI tool

Context7

MCP ServerFreemium

Context7 is an MCP server that supplies library documentation to AI assistants. It can map a library name to a Context7-compatible ID and retrieve documentation and code examples for a specific question.

Last updated:

  • Official. Built and maintained by the company or project behind the service, so usually kept in step with it. Not audited by us.

  • Community. Built and maintained by an independent developer or group, not by the company behind the service. The company has not reviewed it, and updates depend on its author.

About Context7

Context7 is an MCP server that connects an AI assistant to Context7's library documentation service. It lets the assistant look up a library's Context7-compatible ID, then fetch documentation and code examples relevant to a specific question. This gives people a way to bring library reference material into an assistant conversation when asking about a particular library, rather than asking the assistant to work from documentation lookup tools that are not connected to Context7.

What can Context7 do?

Context7 exposes two documented tools for finding and retrieving library documentation. One resolves a library name to the ID Context7 uses. The other fetches documentation and code examples for a library and a specific question. The documented functions concern retrieving reference material, not modifying a project.

  • Resolve a library name to a Context7-compatible library ID.
  • Fetch current documentation for a library and a specific question.
  • Retrieve code examples alongside the documentation.

How Context7 connects and authenticates

The official client guide documents a local stdio connection and a remote HTTP connection. Local stdio uses API-key authentication. Remote HTTP clients can authenticate with OAuth 2.0 or an API key. The guide includes configuration guidance for Claude Code, Cursor, VS Code, ChatGPT, Claude Desktop, Codex, and Smithery. It does not enumerate filesystem, network, or>GitHub Official MCP Server is a related option for work involving GitHub, while Docker MCP Server is another MCP server in this directory. The verified facts here do not establish their specific capabilities, so compare their listings before choosing one. Context7's documented focus is retrieving library documentation and code examples for an assistant.

Key Features

Maps library names to Context7-compatible library IDs.

Fetches current library documentation and code examples for a specific question.

Provides documentation lookup through the resolve-library-id and query-docs tools.

Supports local stdio and remote HTTP connections.

Remote HTTP authentication supports OAuth 2.0 or an API key.

Before you installSecurity checklist for MCP servers

An MCP server runs code and gives your AI assistant access to files, accounts or data. A few minutes of checking is worth it.

  1. Check the source. Make sure the repository belongs to the vendor or author you expect, that the vendor's own documentation links to it, and that it is actively maintained. Beware of lookalike names.
  2. Read what it can do. Look at the tools the server exposes and the permissions or scopes it asks for. Start with read-only access where the server allows it.
  3. Use the least access that works. Give it a dedicated API key or a narrowly scoped token, ideally on a test project or sandbox, not your production credentials.
  4. Pin versions and review updates. Install a specific version, read changes before upgrading, and do not run copied commands you do not understand.
  5. Treat what it returns as untrusted. Documents, web pages and tool results can contain text that tries to steer your AI assistant. Keep confirmation switched on for actions that write, delete, send or spend.
  6. Know where your data goes. Find out whether the server runs on your machine or is hosted, and what it sends to the vendor or to third parties.
  7. Keep a way back. Know how to revoke the key and remove the server from your client's configuration.

This page is general information, not security or legal advice, and listing a server is not an endorsement or a security review. We do not create, host or control MCP servers, and listing details such as commands, permissions or pricing can be out of date, so check the official source. You install and use MCP servers at your own risk. See the section on third-party products in our Terms of Service.

Pricing Plans

Free

$0

  • Includes 1,000 API calls per month across the MCP server and related APIs.
  • Requests stop after the monthly allowance is used, with 20 bonus calls daily until the next month.
  • Limited to public libraries and one personal teamspace member.
  • Suited to personal use with public library documentation needs.

Pro

$10 per seat / month

  • Includes 2,000 API calls per seat per month.
  • Additional calls are priced separately.
  • Suited to users who need a larger monthly allowance than the free plan.

Enterprise

Custom

  • Includes 2,000 API calls per seat per month.
  • Enterprise details and contracts are handled by the vendor.
  • Suited to organizations seeking an enterprise plan with vendor-arranged terms.

Pricing information last updated: November 29, 2026

FAQs

What does Context7 do?

It provides an AI assistant with library documentation and code examples. Its tools map a library name to a Context7-compatible ID and fetch documentation for a specific question.

How can I connect to Context7?

The documented options are a local stdio connection or remote HTTP. Local stdio uses API-key authentication. Remote HTTP supports OAuth 2.0 or an API key.

Which clients are listed in the official guide?

The guide includes configuration guidance for Claude Code, Cursor, VS Code, ChatGPT, Claude Desktop, Codex, and Smithery.

What is included in the free plan?

A free account and API key include 1,000 API calls per month for the MCP server and related APIs. Requests stop after the allowance, with 20 bonus calls daily until the next month. The plan is limited to public libraries and one personal teamspace member.

Can Context7 edit my repository or code?

The documented MCP tools retrieve documentation. They do not describe editing repositories or changing user code.