Context7 icon

Context7

Context7 is a tool for injecting up-to-date, version-specific documentation and code examples directly into the prompt context of AI coding agents. Instead of relying on stale training data or hallucinated APIs, Context7 retrieves documentation and real examples from source libraries, tailored to your stack. It integrates with MCP servers, Cursor, Claude, and other tools.

By simply adding use context7 to a prompt, developers can trigger precise inline docs for packages like Next.js, React, Cloudflare Workers, and more. You can also automate this by adding a rule to your .windsurfrules file or equivalent, so relevant prompts automatically invoke Context7 without manual triggers.

Context7 is maintained by the Upstash team and supports community contribution for new libraries via GitHub.

Developer

Upstash builds serverless data infrastructure and developer tools, including Redis, Kafka, and Context7.

Pricing and Plans

PlanPriceFeatures
FreeFree
  • Personal use
  • Up-to-date documentation injection
  • Access to public projects

System Requirements

Operating System
WEB

AI Capabilities

Context injection
Up-to-date library documentation retrieval
Code example extraction
Prompt enhancement
LLM hallucination reduction