Context7 pulls current documentation and code examples straight from the source into the model's context, to avoid outdated or hallucinated APIs. It works as CLI plus skills, or as an MCP server.
O que ela faz
Onde Context7 MCP roda e o que acrescenta, segundo a documentação
Resolve a library name to a Context7 library ID (resolve-library-id)
Fetch docs for a library ID and question (query-docs)
Match a specific library version mentioned in the prompt
Accept direct library IDs like /vercel/next.js in prompts
Set up with one command: npx ctx7 setup
Quando usar
Boa adequação
Coding against fast-changing libraries and frameworks
Avoiding hallucinated or outdated API usage
Não indicado para
Questions that do not involve library documentation
Heavy use without an API key: README recommends one for higher rate limits
Como instalar o Context7 MCP
Você precisa de: Node.js 18+ for the ctx7 CLI; Free API key recommended from context7.com/dashboard
Install Node.js 18 or newer
Run npx ctx7 setup (use --cursor, --claude or --opencode to target an agent)
Choose CLI + Skills or MCP mode
Or manually point your client at https://mcp.context7.com/mcp with an Authorization: Bearer API key header
Optionally add a rule telling the agent to use Context7
Sends your query and library name to the Context7 service
Notas de segurança dos mantenedores
Queries go to the hosted Context7 service; README does not detail data handling
Revise a fonte antes de conceder ao agente acesso a credenciais ou sistemas de produção. Documentamos o que os mantenedores informam; não auditamos o código.
Ferramenta de programação agêntica da Anthropic que lê sua base de código, edita arquivos e executa comandos pelo terminal, por IDEs, pelo app desktop ou pelo navegador.
O plano gratuito termina em: Não há plano gratuito: o Claude Code está incluído nas assinaturas pagas do Claude (Pro, Max, Team, Enterpris…