ctx7 weekly downloads statistics
By upstash (8 listings) · npm · MCP servers
Context7 CLI - Fetch documentation context and configure Context7
ctx7 has 38,986 recorded weekly downloads on npm, a decrease of 18.4% over the past 30 days, ranking #857 of 3,247 tracked listings.
About ctx7
ctx7
CLI for Context7 - query up-to-date library documentation and configure Context7 for AI coding agents.
Installation
# Run directly with npx (no install needed)
npx ctx7
# Or install globally
npm install -g ctx7
Quick Start
# Set up Context7 MCP for your coding agents
ctx7 setup
# Remove Context7 setup later
ctx7 remove
# Target a specific agent
ctx7 setup --cursor
ctx7 setup --claude
ctx7 setup --opencode
ctx7 setup --vscode
ctx7 setup --vscode-insiders
ctx7 setup --devin
ctx7 setup --copilot
ctx7 setup --pi
ctx7 setup --t3
T3 Code uses its providers’ configuration. ctx7 setup --t3 configures both Claude Code
and Codex; use --claude or --codex to configure just one. This also affects those
providers outside T3 Code. ctx7 remove --t3 removes their Context7 setup. Both
commands support --project, --mcp, and --cli. Restart the provider session
in T3 Code after setup.
Library Documentation
# Search documentation in one request
ctx7 search "how to stream an OpenAI response from a Next.js route"
# Narrow the search to libraries you already know
ctx7 search "how to stream a response" --library Next.js --library OpenAI
# Find a library
ctx7 library react
ctx7 library nextjs "app router"
# Get documentation
ctx7 docs /reactjs/react.dev "useEffect cleanup"
ctx7 docs /vercel/next.js "proxy"
Usage
Search documentation
Ask a question and get the best snippets from all libraries in one step. No library ID is needed.
ctx7 search "how do I validate a request body with a schema?"
# Search specific libraries: a name or a library ID, repeat for up to four
ctx7 search "how do I stream a response?" --library Next.js --library /openai/openai-node
# Search a specific version
ctx7 search "how do I cache a server function?" --library Next.js --library-version 15.4.0
# Prefer results in the language you write in
ctx7 search "how do I send an SMS?" --library Twilio --language Ruby
# Output as JSON
ctx7 search "how do I use hooks?" --library React --json
Find a library
Resolve a library name to a Context7 library ID.
ctx7 library react
ctx7 library nextjs "app router setup"
ctx7 library prisma "database relations"
# Output as JSON
ctx7 library react --json
Query documentation
Fetch documentation for a specific library using its Context7 ID.
ctx7 docs /reactjs/react.dev "useEffect cleanup"
ctx7 docs /vercel/next.js "proxy authentication"
ctx7 docs /prisma/prisma "one-to-many relations"
# Output as JSON
ctx7 docs /reactjs/react.dev "hooks" --json
Query source code
Search and read a library's source code at the version its docs describe. Search works like ripgrep.
ctx7 code /tanstack/query "invalidateQueries\\(" -g "packages/query-core/**"
ctx7 code /pydantic/pydantic "Input should be a valid integer" -F
ctx7 code /tokio-rs/tokio JoinHandle -c
ctx7 code /colinhacks/zod/v3.24.2 ZodEffects --op definition
ctx7 code /tokio-rs/tokio spawn --op read
ctx7 code /tanstack/query --op list --path packages/query-core/src
--op is grep (default), definition, references, outline, read or list. The search flags are -F, -i, -g (repeat it for more globs), -C, -l, -c, --head-limit and --offset. Add a git tag to the library ID (/colinhacks/zod/v3.24.2) or pass --tag for a version. The first query for a library version can answer that the source is still being indexed. Run the command again after the time it gives.
Get what changes when a library moves from one version to another: breaking changes, codemods, deprecations, behavior and config changes from the release notes of every release in between, and the public API changes found in the source code.
ctx7 get-upgrade-guide /vercel/next.js 14 16
ctx7 get-upgrade-guide /colinhacks/zod 3.24.2
ctx7 get-upgrade-guide /vercel/next.js 14 16 --page 2
A bare major such as 14 means the oldest release of that line as the start and the newest as the target. Without a target version, the guide goes to the latest major. A long guide comes in pages; page 1 starts with what is needed to migrate and says what the next pages hold. The first request for a pair of versions can take a few minutes while the guide is prepared: the command then exits with code 75 and says when to run it again. Guides are prepared for the most used libraries; for any other library the command says that its guide is not prepared yet.
Setup
Configure Context7 MCP and a rule for your AI coding agents. Authenticates via OAuth, generates an API key, and writes the config.
# Interactive (prompts for agent selection)
ctx7 setup
# Target specific agents
ctx7 setup --cursor
ctx7 setup --claude
ctx7 setup --opencode
ctx7 setup --vscode
ctx7 setup --vscode-insiders
ctx7 setup --devin
ctx7 setup --copilot
ctx7 setup --pi
# Use an existing API key instead of OAuth
ctx7 setup --api-key YOUR_API_KEY
# Use OAuth sign-in (the client signs in through the browser)
ctx7 setup --oauth
# Configure an on-premise deployment (pass the deployment root)
ctx7 setup --mcp --base-url https://context7.internal.example --codex
# When on-premise MCP auth is enabled, the CLI prompts for the key with hidden input
ctx7 setup --mcp \
--base-url https://context7.internal.example \
--codex
# For non-interactive automation, provide the key through the environment
CONTEXT7_API_KEY=ctx7op-... ctx7 setup --mcp --yes \
--base-url https://context7.internal.example \
--codex
# Configure for current project only (default is global)
ctx7 setup --project
# Skip prompts
ctx7 setup --yes
```…
Description from the npm listing.
- context7
- cli
- ai
- skills
- documentation
- mcp
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (592)Similar npm MCP servers plugins
All 20 ctx7 alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/ctx7. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.