Query up-to-date library documentation and code examples using Context7 MCP. Use when you need current, version-specific documentation for npm packages, Pyth...
Documents
UXC Context7
Try itQuery up-to-date library documentation and code examples using Context7 MCP. Use when you need current, version-specific documentation for npm packages, Pyth...
What it does
Query up-to-date library documentation and code examples using Context7 MCP. Use when you need current, version-specific documentation for npm packages, Pyth...
The skill document
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 ...is equivalent touxc mcp.context7.com/mcp ....- If link setup is temporarily unavailable, use direct
uxc mcp.context7.com/mcp ...calls as fallback.
Reference Files
- Workflow details:
references/usage-patterns.md
Related skills
Context7 MCP 是一款为开发者提供最新代码文档和示例的服务,通过集成到开发环境中,确保LLM生成的代码基于最新的库文档。
Context7 (context7.com). Use this skill for ANY Context7 request — searching and reading data. Whenever a task involves Context7, use this skill instead of calling the API directly.
Discover and call remote schema-exposed interfaces with UXC. Use when an agent or skill needs to list operations, inspect operation schemas, and execute Open...
Use Context.dev for live web search, page scraping, crawling, structured extraction, document parsing, screenshots, brand intelligence, design systems, industry classification, monitors, and asynchronous batches. Trigger when a user needs current public-web data, clean Markdown or HTML, typed JSON from websites, company logos or brand details, website change tracking, or high-volume web processing—even when they do not mention Context.dev explicitly.
Use Etherscan MCP through UXC for address balance checks, token holder analysis, transaction inspection, and contract lookup tasks. Use when tasks need Ether...