# Context7

> Up-to-date, version-specific library docs for AI coding agents.

- Website: https://context7.com
- Category: Coding & Development
- Source page: https://opendirs.com/en/tools/context7
- Pricing: Freemium
- Starting price: Unknown
- Public API: Yes
- Open source: Yes
- Chinese language: No
- Accessible from mainland China: Unknown
- Platforms: Unknown
- Country: Unknown
- Last verified: Nov 28, 2026

## Overview

Context7 by Upstash serves current, version-specific documentation and code examples for thousands of libraries to AI coding tools via an MCP server and API. Adding it to Cursor, Claude Code, Codex, or VS Code reduces hallucinated APIs caused by outdated model training data.

**Best for:** Developers using AI coding assistants who want accurate, current API docs.

## Key features

- MCP server for Cursor, Claude Code, VS Code, and more
- Version-specific docs and code snippets
- Large index of popular libraries
- API and CLI access

## Use cases

- Getting correct code for a newly released framework version
- Reducing hallucinated functions in AI-generated code
- Grounding agents on internal or niche libraries

## Pros

- Simple to add to any MCP client
- Free to start
- Noticeably improves answer accuracy for new APIs

## Cons

- Coverage varies for obscure libraries
- Rate limits apply on free usage

## Alternatives

- [Beacon](https://opendirs.com/en/tools/beacon.md)
- [Claude Code](https://opendirs.com/en/tools/claude-code.md)
- [Warp](https://opendirs.com/en/tools/warp.md)
- [Repomix](https://opendirs.com/en/tools/repomix.md)
- [Google Antigravity](https://opendirs.com/en/tools/google-antigravity.md)

## FAQ

### What is Context7?

Context7 by Upstash serves current, version-specific documentation and code examples for thousands of libraries to AI coding tools via an MCP server and API. Adding it to Cursor, Claude Code, Codex, or VS Code reduces hallucinated APIs caused by outdated model training data.

### Is Context7 free?

Context7 uses a Freemium pricing model (verified Nov 28, 2026).

### Does Context7 have an API?

Yes. Context7 offers an API for developers.

### Does Context7 support Chinese, and is it available in China?

Context7 does not support Chinese, and it has unverified availability in mainland China.

### What are the best alternatives to Context7?

Popular alternatives to Context7 include Beacon, Claude Code, Warp, Repomix.

_Last verified: Nov 28, 2026_