← Back to Skills Marketplace
jolestar

Context7 MCP Skill

by jolestar · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
417
Downloads
0
Stars
3
Active Installs
1
Versions
Install in OpenClaw
/install context7-mcp-skill
Description
Query up-to-date library documentation and code examples using Context7 MCP. Use when you need current, version-specific documentation for npm packages, Pyth...
README (SKILL.md)

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

  1. 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.
  2. Resolve a library name to get library ID:

    • context7-mcp-cli resolve-library-id libraryName=react query='useState hook'
  3. 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 to uxc 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
Usage Guidance
This skill appears to do what it says: it uses the uxc tool to invoke Context7's MCP at mcp.context7.com/mcp to resolve library IDs and query docs. Before installing or invoking it: 1) Confirm you trust the external endpoint (mcp.context7.com) because queries (including code snippets or questions) will be sent there. 2) Check the 'uxc' tool/skill (a required dependency) for its own network/credential behaviors—uxc may require account credentials or other permissions not declared by this skill. 3) Avoid sending secrets or private code in queries to the external service. 4) If you need to restrict outbound network access, block calls to the MCP endpoint or avoid installing this skill. The included validate.sh is only a local repo lint/validation script (requires ripgrep) and is not executed by the agent at runtime.
Capability Analysis
Type: OpenClaw Skill Name: context7-mcp-skill Version: 1.0.0 The skill bundle is designed to query library documentation via Context7 MCP. All instructions in `SKILL.md` and `references/usage-patterns.md` are directly related to this stated purpose, involving the `uxc` skill to set up a `context7-mcp-cli` alias and then use it. The `scripts/validate.sh` actively checks for and prevents potentially risky patterns like dynamic command renaming or specific JSON input methods, indicating a focus on secure and predictable agent behavior. There is no evidence of data exfiltration, malicious execution, persistence mechanisms, or prompt injection attempts to subvert the agent's core function.
Capability Assessment
Purpose & Capability
Name/description match the instructions: SKILL.md shows how to resolve library IDs and query docs at mcp.context7.com/mcp via a fixed command (context7-mcp-cli) or the uxc fallback. The required behavior (calling an external documentation MCP) aligns with the stated purpose.
Instruction Scope
Runtime instructions are narrowly scoped to: check/create the fixed link command via the uxc skill, call context7-mcp-cli resolve-library-id and query-docs, and parse responses. The skill does not instruct reading arbitrary local files, harvesting system env vars, or exfiltrating data beyond calling the documented external endpoint. It does require network access to mcp.context7.com/mcp, which is expected for this purpose.
Install Mechanism
There is no install specification; the skill is instruction-only. The only script included (scripts/validate.sh) is a repo validation helper and is not executed at runtime by the agent. No downloads or archive extracts are present.
Credentials
The skill requests no environment variables or credentials itself, which is proportionate. It does depend on the external 'uxc' skill/tool being present; that tool may have its own network/credential requirements not declared here. Users should verify the trustworthiness and requirements of uxc before using this skill.
Persistence & Privilege
The skill does not request always:true, does not modify other skills' configs, and has no install-time persistence. The only operational side-effect is creating a fixed-link command via uxc (uxc link context7-mcp-cli ...), which is scoped to uxc's linking mechanism.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install context7-mcp-skill
  3. After installation, invoke the skill by name or use /context7-mcp-skill
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of context7-mcp-skill. - Enables querying up-to-date, version-specific documentation and code examples for libraries via Context7 MCP. - Supports npm packages, Python libraries, and others. - Requires the uxc skill and network access to mcp.context7.com. - Provides CLI tools to resolve library names and query documentation. - Includes usage instructions and example commands for quick reference.
Metadata
Slug context7-mcp-skill
Version 1.0.0
License
All-time Installs 3
Active Installs 3
Total Versions 1
Frequently Asked Questions

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.

💬 Comments