/install context7-mcp-skill
Context7 Skill
Use this skill to query library documentation and code examples.
Prerequisites
uxcskill is installed (see uxc skill for installation)- Network access to
https://mcp.context7.com/mcp
Core Workflow
-
Use fixed link command by default:
command -v context7-mcp-cli- If missing, create it:
uxc link context7-mcp-cli mcp.context7.com/mcp context7-mcp-cli -h- If command conflict is detected and cannot be safely reused, stop and ask skill maintainers to pick a different fixed command name.
-
Resolve a library name to get library ID:
context7-mcp-cli resolve-library-id libraryName=react query='useState hook'
-
Query documentation:
context7-mcp-cli query-docs libraryId=/reactjs/react.dev query='how to use useState'
Available Tools
- resolve-library-id: Resolve a package/library name to Context7 library ID
- query-docs: Query documentation and code examples for a specific library
Usage Examples
Find React documentation
# First resolve the library
context7-mcp-cli resolve-library-id libraryName=react query='React useState hook'
Query specific documentation
context7-mcp-cli query-docs '{"libraryId":"/reactjs/react.dev","query":"how to use useEffect"}'
Query Node.js documentation
context7-mcp-cli resolve-library-id libraryName=node query='file system'
Notes
- Requires library name first, then use the returned libraryId for queries
- Context7 provides version-specific, up-to-date documentation
- Supports npm packages, Python libraries, and more
context7-mcp-cli \x3Coperation> ...is equivalent touxc mcp.context7.com/mcp \x3Coperation> ....- If link setup is temporarily unavailable, use direct
uxc mcp.context7.com/mcp ...calls as fallback.
Reference Files
- Workflow details:
references/usage-patterns.md
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install context7-mcp-skill - After installation, invoke the skill by name or use
/context7-mcp-skill - Provide required inputs per the skill's parameter spec and get structured output
What is Context7 MCP Skill?
Query up-to-date library documentation and code examples using Context7 MCP. Use when you need current, version-specific documentation for npm packages, Pyth... It is an AI Agent Skill for Claude Code / OpenClaw, with 417 downloads so far.
How do I install Context7 MCP Skill?
Run "/install context7-mcp-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Context7 MCP Skill free?
Yes, Context7 MCP Skill is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Context7 MCP Skill support?
Context7 MCP Skill is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Context7 MCP Skill?
It is built and maintained by jolestar (@jolestar); the current version is v1.0.0.