# Context7

> Context7 is an Agent Skill for research published in the RTGS2017/NagaAgent repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Context7 MCP via mcporter (stdio). Use for library/API docs, setup, and configuration guidance with up-to-date sources.

- Skill name: `context7`
- Category: [Research](https://www.openparable.com/skill/research/1)
- Source: https://github.com/RTGS2017/NagaAgent/blob/HEAD/apiserver/skills_templates/context7/SKILL.md
- Repository: RTGS2017/NagaAgent (1,538 GitHub stars when collected)

## SKILL.md

# Context7 via MCP (stdio)

Use the Context7 MCP server through mcporter in stdio mode. This keeps the MCP server local and avoids extra config files.

## Quick Checks

```bash
npx -y mcporter@latest list --stdio "npx -y @upstash/context7-mcp@latest" --name context7 --schema
```

## Resolve Library ID

```bash
npx -y mcporter@latest call --stdio "npx -y @upstash/context7-mcp@latest" --name context7 resolve-library-id \
  query="How do I use React hooks?" \
  libraryName="react"
```

## Query Docs

```bash
npx -y mcporter@latest call --stdio "npx -y @upstash/context7-mcp@latest" --name context7 query-docs \
  libraryId="/websites/react_dev" \
  query="useEffect cleanup examples"
```

## Optional API Key

If you have a Context7 API key, set `CONTEXT7_API_KEY` in the environment before running the commands above.

---

Source: https://www.openparable.com/skill/research/context7 (OpenParable). Cite the canonical URL above.
