{"name":"Context7 Platform: Up-to-date Code Documentation for LLMs and AI Editors","description":"Context7 Platform provides up-to-date, version-specific code documentation directly to LLMs and AI code editors. It eliminates outdated information and hallucinated APIs, ensuring accurate and relevant code generation. This tool significantly enhances the capabilities of AI coding assistants by integrating real-time documentation into their context.","github":"https://github.com/upstash/context7","url":"https://osrepos.com/repo/upstash-context7","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/upstash-context7","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/upstash-context7.md","json":"https://osrepos.com/repo/upstash-context7.json","topics":["llm","mcp","mcp-server","vibe-coding","TypeScript","AI tools","code documentation","developer tools"],"keywords":["llm","mcp","mcp-server","vibe-coding","TypeScript","AI tools","code documentation","developer tools"],"stars":null,"summary":"Context7 Platform provides up-to-date, version-specific code documentation directly to LLMs and AI code editors. It eliminates outdated information and hallucinated APIs, ensuring accurate and relevant code generation. This tool significantly enhances the capabilities of AI coding assistants by integrating real-time documentation into their context.","content":"## Introduction\n\nIn the rapidly evolving world of AI-powered coding, Large Language Models (LLMs) often struggle with outdated or generic information about libraries and APIs. This leads to inaccurate code examples, hallucinated APIs, and generic answers for old package versions. Context7 Platform addresses this critical challenge by delivering up-to-date, version-specific documentation and code examples directly into your LLM's prompt.\n\nContext7 works in two primary modes: **CLI + Skills**, which installs a skill to guide your agent in fetching documentation using `ctx7` CLI commands, and **MCP**, which registers a Context7 MCP server, allowing your agent to call documentation tools natively.\n\n## Installation\n\nSetting up Context7 for your coding agents is straightforward. An API key is recommended for higher rate limits, which you can obtain for free at [context7.com/dashboard](https://context7.com/dashboard).\n\nTo install, use a single command:\n\nbash\nnpx ctx7 setup\n\n\nThis command authenticates via OAuth, generates an API key, and installs the appropriate skill. You can choose between CLI + Skills or MCP mode and target specific agents using `--cursor`, `--claude`, or `--opencode` flags. For manual configuration or other clients, refer to the [Manual Installation / Other Clients](https://context7.com/docs/resources/all-clients) guide.\n\n## Examples\n\nContext7 integrates seamlessly into your prompts, providing relevant documentation on demand. Here are a few examples of how you can leverage Context7:\n\ntxt\nCreate a Next.js middleware that checks for a valid JWT in cookies\nand redirects unauthenticated users to `/login`. use context7\n\n\ntxt\nConfigure a Cloudflare Worker script to cache\nJSON API responses for five minutes. use context7\n\n\ntxt\nShow me the Supabase auth API for email/password sign-up.\n\n\n**Important Tips:**\n\n*   **Use Library ID**: If you know the exact library, add its Context7 ID to your prompt, for example: `Implement basic authentication with Supabase. use library /supabase/supabase for API and docs.`\n*   **Specify a Version**: Mention the version in your prompt to get documentation for a specific library version, for example: `How do I set up Next.js 14 middleware? use context7`\n\n## Why Use Context7?\n\nContext7 eliminates common frustrations when working with LLMs for code generation:\n\n*   **No Outdated Code**: Say goodbye to code examples based on year-old training data. Context7 fetches the latest information.\n*   **No Hallucinated APIs**: Avoid non-existent APIs that waste your time. Context7 provides accurate API references.\n*   **Version-Specific Answers**: Get precise answers tailored to the specific package versions you are using.\n*   **Direct Integration**: Documentation is pulled directly into your LLM's context, removing the need for tab-switching and manual searches.\n\nBy ensuring your AI coding assistant has access to the most current and accurate documentation, Context7 significantly improves the quality and reliability of generated code.\n\n## Links\n\n*   **Website**: [https://context7.com](https://context7.com)\n*   **X (formerly Twitter)**: [https://x.com/context7ai](https://x.com/context7ai)\n*   **Discord Community**: [https://upstash.com/discord](https://upstash.com/discord)\n*   **CLI Reference**: [https://context7.com/docs/clients/cli](https://context7.com/docs/clients/cli)\n*   **Manual Installation / Other Clients**: [https://context7.com/docs/resources/all-clients](https://context7.com/docs/resources/all-clients)\n*   **Adding Libraries**: [https://context7.com/docs/adding-libraries](https://context7.com/docs/adding-libraries)\n*   **API Reference**: [https://context7.com/docs/api-guide](https://context7.com/docs/api-guide)","metrics":{"detailViews":1,"githubClicks":6},"dates":{"published":null,"modified":"2026-05-04T07:38:11.000Z"}}