Context7 MCP Skill
VerifiedQuery up-to-date library documentation and code examples using Context7 MCP. Use when you need current, version-specific documentation for npm packages, Pyth...
$ Add to .claude/skills/ About This Skill
# Context7 Skill
Use this skill to query library documentation and code examples.
Prerequisites
- `uxc` skill 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
```bash # First resolve the library context7-mcp-cli resolve-library-id libraryName=react query='React useState hook' ```
Query specific documentation
```bash context7-mcp-cli query-docs '{"libraryId":"/reactjs/react.dev","query":"how to use useEffect"}' ```
Query Node.js documentation
```bash 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 <operation> ...` is equivalent to `uxc mcp.context7.com/mcp <operation> ...`.
- If link setup is temporarily unavailable, use direct `uxc mcp.context7.com/mcp ...` calls as fallback.
Reference Files
- Workflow details: `references/usage-patterns.md`
Use Cases
- Query up-to-date library documentation and code examples through the Context7 MCP
- Look up API references for frameworks like React, Next.js, or Express during coding
- Fetch code examples for specific library functions without leaving the agent context
- Supplement AI model knowledge with current documentation for recently updated libraries
- Verify API signatures and parameter types against official library documentation
Pros & Cons
Pros
- +Provides access to current documentation that may be beyond the AI model's training cutoff
- +MCP integration means documentation queries happen inline during coding tasks
- +Covers a wide range of popular libraries and frameworks
Cons
- -Requires the uxc skill as a prerequisite dependency
- -Only available on claude-code and openclaw platforms
- -Documentation coverage depends on what Context7 has indexed — niche libraries may be missing
FAQ
What does Context7 MCP Skill do?
What platforms support Context7 MCP Skill?
What are the use cases for Context7 MCP Skill?
100+ free AI tools
Writing, PDF, image, and developer tools — all in your browser.
Next Step
Use the skill detail page to evaluate fit and install steps. For a direct browser workflow, move into a focused tool route instead of staying in broader support surfaces.