ワンクリックで
context7
Query up-to-date library documentation and code examples using the Context7 MCP server. Requires CONTEXT7_API_KEY.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Query up-to-date library documentation and code examples using the Context7 MCP server. Requires CONTEXT7_API_KEY.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Ask the user structured questions (single choice, multi-select, or free text) using the ask_questions tool. Use this when you need clear, normalized answers.
Unified browser automation skill. Single entry point for Rodney CLI, agent-browser CLI, dev-browser (TypeScript/Playwright), and browser-tools helper scripts.
Web search, code context, company research, and deep research via Exa API. Use when searching the web, finding code examples/docs, researching companies, crawling URLs, or running deep AI research tasks. Triggers on: web search, find code, research company, crawl page, people search.
Methodical investigation and root-cause analysis of bugs and issues before proposing solutions. Use when asked to investigate a bug, diagnose an issue, find the root cause of a problem, debug unexpected behavior, trace an error, or figure out why something is broken. Enforces hypothesis-driven debugging and avoids premature fixes.
Quick patch version bump workflow — run tests, bump version in package.json and all version references, commit, push, relink binaries, and verify. Use when asked to bump the version, do a patch release, increment the version number, cut a patch, or publish a new version.
Create well-structured atomic git commits from uncommitted changes using conventional commit messages. Use when asked to commit, stage, create commits, clean up uncommitted work, or prepare changes for push. Handles grouping related changes into logical commits and writing proper commit messages.
| name | context7 |
| description | Query up-to-date library documentation and code examples using the Context7 MCP server. Requires CONTEXT7_API_KEY. |
| homepage | https://context7.com |
| metadata | {"clawdbot":{"emoji":"📚","requires":{"env":["CONTEXT7_API_KEY"]}}} |
Context7 provides real-time, version-specific documentation and code examples for programming libraries. It solves the problem of LLMs generating outdated code by fetching current documentation directly from the source.
mkdir -p ./config
cat > ./config/mcporter.json << EOF
{
"mcpServers": {
"context7": {
"url": "https://mcp.context7.com/mcp",
"headers": {
"CONTEXT7_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
EOF
Or if using opencode/cursor config, ensure the {env:CONTEXT7_API_KEY} is properly set in your environment.
First, find the Context7 library ID for the library you need:
npx mcporter --config ./config/mcporter.json call 'context7.resolve-library-id(query: "How to create routes", libraryName: "express")'
Or using key=value syntax:
npx mcporter --config ./config/mcporter.json call context7.resolve-library-id query="How to create routes" libraryName="express"
This returns matching libraries with their IDs (e.g., /expressjs/express).
Once you have the library ID, query the documentation:
npx mcporter --config ./config/mcporter.json call 'context7.query-docs(libraryId: "/expressjs/express", query: "How to set up middleware")'
Or using key=value syntax:
npx mcporter --config ./config/mcporter.json call context7.query-docs libraryId="/expressjs/express" query="How to set up middleware"
This skill includes a pre-generated CLI at context7-cli.ts. Run it with bun:
# Show help
bun run ./context7/context7-cli.ts
# Resolve library ID
bun run ./context7/context7-cli.ts resolve-library-id \
--query "How to create a REST API" \
--library-name "express"
# Query documentation
bun run ./context7/context7-cli.ts query-docs \
--library-id "/expressjs/express" \
--query "How to handle errors"
Note: The bundled CLI requires mcporter as a dependency. Install it first:
npm install -g mcporter
To regenerate the CLI with the latest schema:
cd /tmp && npx mcporter generate-cli --server context7
mv /tmp/context7.ts ./context7/context7-cli.ts
Resolves a library name to a Context7-compatible library ID.
Parameters:
query (required): The user's question or task - used to rank results by relevancelibraryName (required): Library name to search forReturns: List of matching libraries with IDs, descriptions, and quality scores.
Fetches up-to-date documentation for a specific library.
Parameters:
libraryId (required): Context7 library ID (e.g., /vercel/next.js, /mongodb/docs)query (required): Specific question about the libraryReturns: Relevant documentation snippets and code examples.
| Library | ID |
|---|---|
| Next.js | /vercel/next.js |
| React | /facebook/react |
| Express | /expressjs/express |
| MongoDB | /mongodb/docs |
| Supabase | /supabase/supabase |
| Prisma | /prisma/prisma |
resolve-library-id first unless you know the exact library IDControl output format with -o flag:
npx mcporter --config ./config/mcporter.json call context7.query-docs ... -o json # JSON output
npx mcporter --config ./config/mcporter.json call context7.query-docs ... -o markdown # Markdown output
npx mcporter --config ./config/mcporter.json call context7.query-docs ... -o text # Plain text (default)