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.
