A Claude Code plugin for looking up current library documentation, API references, and code examples via Context7, so answers about libraries, frameworks, SDKs, and cloud services come from live docs instead of stale training data.
Run a lookup with /context7:lookup (or let Claude invoke it automatically when
a question names a library); verify the environment read-only with /context7:check;
configure it with /context7:setup:
/context7:lookup react "useEffect cleanup"
/context7:check
/context7:setup
/context7:lookup update
/context7:lookup <library> <query>(default). The two-step Context7 workflow: resolve the library name to a/org/projectID, then query its docs. Works through thectx7CLI, or through the Context7 MCP server when the consuming project has one configured (same backend, ~1.8× more content per call). Also exposes a maintainerupdateaction (/context7:lookup update) that checks the installedctx7CLI against the latest npm release (--fixupgrades it) and diffs Upstash's upstream reference skills against the plugin's bundledvendor/baselines, reporting anything new for manual review. It never auto-rewrites the skill./context7:check. Read-only check of thectx7CLI,CONTEXT7_API_KEYauth and Context7 MCP server state. Claude can invoke it on its own, for example after a session notice thatctx7is missing. It never installs;/context7:setup apply install-clidoes./context7:setup. Idempotent verification and configuration.check(default) reports thectx7CLI,CONTEXT7_API_KEYauth, and Context7 MCP server state read-only;applyresolves what it found (auth and MCP guidance);apply install-cliinstalls/upgrades thectx7CLI. Also covers the Windows Git BashMSYS_NO_PATHCONV=1gotcha. Safe to rerun.
ctx7CLI (npm install -g ctx7@latest) for the CLI path, or a Context7 MCP server configured in the consuming project for the MCP path. Either alone is enough; the skill picks whichever is available.CONTEXT7_API_KEY(optional). Anonymous usage works at low rates; an API key raises limits. Set it as an environment variable; never commit it.
/plugin marketplace add melodic-software/claude-code-plugins
/plugin install context7@melodic-softwareThis plugin has no userConfig and ships no MCP server. It never opens a
network surface by itself beyond the lookups you ask for. Two optional
consumer-side settings:
CONTEXT7_API_KEYenvironment variable. Higher rate limits for both CLI and MCP paths.- A
context7entry in your own MCP configuration if you want the MCP path. The skill documents the exact snippet and degrades cleanly to the CLI when it is absent.
Lookup queries (your library question text) are sent to the Context7 backend
(context7.com / mcp.context7.com). Don't put secrets in queries. The
ctx7 CLI also sends anonymous usage telemetry by default. Set
CTX7_TELEMETRY_DISABLED=1 to opt out. The update action additionally
fetches two public files from raw.githubusercontent.com (Upstash's
reference skills) and reads the npm registry for the latest ctx7 version.
Read-only, nothing uploaded.
MIT (SPDX-License-Identifier: MIT).