Context7
Acerca de este servidor
Un servidor MCP de documentación en tiempo real de Upstash. Inyecta documentación oficial actualizada y específica por versión en los agentes de código, eliminando alucinaciones de APIs obsoletas.
Instalación
npx -y @upstash/context7-mcpGuía oficial de instalación del README (en inglés)
> [!NOTE]
> API Key Recommended: Get a free API key at context7.com/dashboard for higher rate limits.
Set up Context7 for your coding agents with a single command. The ctx7 CLI requires Node.js 18 or newer.
npx ctx7 setupAuthenticates via OAuth, generates an API key, and installs the appropriate skill. You can choose between CLI + Skills or MCP mode. Use --cursor, --claude, or --opencode to target a specific agent.
To remove the generated setup later, run npx ctx7 remove. If you globally installed the CLI with npm install -g ctx7, remove that package separately with npm uninstall -g ctx7.
To configure manually, use the Context7 server URL https://mcp.context7.com/mcp with your MCP client and pass your API key via the Authorization: Bearer YOUR_API_KEY header. See the link below for client-specific setup instructions.
Preguntas frecuentes
¿Qué problema resuelve Context7?
Los asistentes de IA suelen alucinar con APIs de librerías obsoletas. Context7 inyecta documentación actualizada y específica de versión con ejemplos de código directamente en el prompt, eliminando de raíz las alucinaciones por datos de entrenamiento caducos.
¿Cómo instalo Context7 en Cursor?
Añade el comando npx -y @upstash/context7-mcp en los ajustes MCP de Cursor; en Claude Code usa claude mcp add context7 -- npx -y @upstash/context7-mcp. Luego solo añade "use context7" a tu prompt.
¿Context7 es gratuito? ¿Hay límites de peticiones?
De código abierto y gratuito: puedes empezar sin clave API. Las peticiones anónimas tienen límite de frecuencia; registrarte gratis en context7.com para obtener una clave lo aumenta. Mantenido oficialmente por Upstash.