Skip to content
Back to skills

Mcp Context7 Docs

CSecurity

Query up-to-date documentation and code examples for any programming library or framework. Use when looking up API docs, finding code examples, or checking library usage. Triggers on "how to use [library]", "docs for [package]", "show me examples of [framework]", "Context7 lookup".

  • 1,689 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 3, 2026
developmentbashreactgitapidocumentation

Works with

  • cli
  • api
  • mcp

Security analysis

C71/100
  • criticalPipes output to a shell interpreter
  • mediumUses curl or wget to download content
  • criticalDownloads and executes remote scripts — classic supply chain attack

Pro shows the line behind each finding and how to fix it

Scanned June 3, 2026

npx -y skills add Dicklesworthstone/pi_agent_rust --skill mcp-context7-docs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mcp Context7 Docs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mcp Context7 Docs
[![Security: C — Skills Directory](https://www.skillsdirectory.com/api/skills/dicklesworthstone-mcp-context7-docs/badge)](https://www.skillsdirectory.com/skills/dicklesworthstone-mcp-context7-docs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mcp-context7-docs
description: Query up-to-date documentation and code examples for any programming library or framework. Use when looking up API docs, finding code examples, or checking library usage. Triggers on "how to use [library]", "docs for [package]", "show me examples of [framework]", "Context7 lookup".
---

# Context7 Documentation

MCP service at `https://mcp.context7.com/mcp` (http) with 2 tools.

## Requirements

- `mh` CLI must be installed. If not available, install with:
  ```bash
  curl -fsSL https://raw.githubusercontent.com/vaayne/mcphub/main/scripts/install.sh | sh
  ```

## Usage

List tools: `mh -u https://mcp.context7.com/mcp -t http list`
Get tool details: `mh -u https://mcp.context7.com/mcp -t http inspect <tool-name>`
Invoke tool: `mh -u https://mcp.context7.com/mcp -t http invoke <tool-name> '{"param": "value"}'`

## Notes

- Run `inspect` before invoking unfamiliar tools to get full parameter schema
- Timeout: 30s default, use `--timeout <seconds>` to adjust
- **Important**: Always call `resolveLibraryId` first to get the Context7-compatible library ID before calling `queryDocs`, unless user provides ID in `/org/project` format

## Tools

| Tool               | Description                                                                                                                                                                                          |
| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `queryDocs`        | Retrieves and queries up-to-date documentation and code examples from Context7 for any programming library or framework. Requires a Context7-compatible library ID obtained from `resolveLibraryId`. |
| `resolveLibraryId` | Resolves a package/product name to a Context7-compatible library ID. Must be called before `queryDocs` to get a valid library ID.                                                                    |

## Workflow

1. **Resolve library ID**: First, resolve the library name to a Context7 ID
   ```bash
   mh -u https://mcp.context7.com/mcp -t http invoke resolveLibraryId '{"libraryName": "react"}'
   ```

2. **Query documentation**: Use the resolved ID to fetch docs
   ```bash
   mh -u https://mcp.context7.com/mcp -t http invoke queryDocs '{"context7CompatibleLibraryID": "/facebook/react", "topic": "hooks"}'
   ```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…