Skip to content
Back to skills

Context7

ASecurity

Use when fetching library or framework docs, API signatures, and examples via Context7, not for OpenAI OpenAPI specs.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 14, 2026
ai-agentsreactnextjsnodeapidocumentation

Works with

  • api
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 14, 2026

npx -y skills add anntnzrb/agents --skill context7 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Context7?

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

Security grade badge for Context7
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anntnzrb-context7/badge)](https://www.skillsdirectory.com/skills/anntnzrb-context7)

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: context7
description: "Use when fetching library or framework docs, API signatures, and examples via Context7, not for OpenAI OpenAPI specs."
license: AGPL-3.0-or-later
compatibility: Requires Context7 MCP server via MCPorter.
---

# Context7

Fetch verified, version-accurate documentation and code examples via the dynamic MCP runner (`mcporter call context7.<tool>`).

Tool schemas are dynamic and authoritative. When discovering capabilities or parameter requirements, inspect the live server directly.

## Discovery Workflow for Agents (Cold Start)

1. **Roster of available tools (Short listing):**
   ```sh
   mcporter list context7 --brief
   ```
2. **Inspect exact parameters and schema for a specific tool:**
   ```sh
   mcporter list context7.<tool_name> --schema
   ```

## Core Workflow

Documentation retrieval is a two-step process:

### 1. Resolve Library to Context7 ID
Search the index with the library name (e.g., `"Next.js"`, `"React"`, `"OpenAI"`, `"Effect"`, `"Pydantic"`):
```sh
mcporter call context7.resolve_library_id query="Next.js" --output json
```
*(Returns candidate library IDs starting with `/`, such as `/vercel/next.js` or `/openai/openai-node`).*

### 2. Query Documentation Snippets
Fetch targeted documentation using the resolved library ID:
```sh
mcporter call context7.get_library_docs library_id="/vercel/next.js" query="App Router Server Actions" --output json
```

## Best Practices
- **Single-topic queries:** Keep each query focused on a single topic (e.g. routing, caching, auth).
- **Exact library ID:** Always pass the full library ID starting with `/` returned by step 1.
- **Do not guess:** If a library is not found, search with official punctuation.

Files in this skill

  • SKILL.md1.7 KB
  • evals/evals.json15 KB

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.