npm package

ctx7

Updated 2026-07-16 View source ↗

#66 of 203 by Downloads / week among npm packages

42.6k Downloads / week

Context7 CLI - Fetch documentation context and configure Context7

About

CLI for Context7 - query up-to-date library documentation and configure Context7 for AI coding agents.

Resolve a library name to a Context7 library ID.

Fetch documentation for a specific library using its Context7 ID.

Configure Context7 MCP and a rule for your AI coding agents. Authenticates via OAuth, generates an API key, and writes the config.

Remove the Context7 setup written by ctx7 setup. By default this removes both MCP setup and CLI setup for the selected agent.

If you installed the CLI itself globally with npm install -g ctx7, remove that separately with npm uninstall -g ctx7. If you use npx ctx7, there is no permanent CLI install to remove.

Log in to access authenticated…

Excerpted from www.npmjs.com/package/ctx7

Latest metrics

Downloads / week 42.6k 2026-07-16