# Context7 Usage

> Guidelines for using the Context7 MCP server to fetch real-time documentation and code examples.

- Skill: `seanspiesman/context7-usage` (Agent Skill)
- Install (CLI): `npx skillmds@latest add seanspiesman/context7-usage`
- Raw SKILL.md: https://api.skillmd.com/api/skills/seanspiesman/context7-usage/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- License: MIT
- Author: seanspiesman (https://skillmd.com/u/seanspiesman)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/seanspiesman/context7-usage

---


# Context7 Usage Guidelines

The `io.github.upstash/context7/*` MCP server provides access to real-time, version-specific documentation and code examples for external libraries.

## When to Use

- **Researching Libraries**: When investigating a new library, use `io.github.upstash/context7/*` to understand its capabilities and API surface.
- **Implementation**: Before writing code using an external library, use `io.github.upstash/context7/*` to fetch the latest syntax, methods, and patterns.
- **Debugging**: When a library usage fails, use `io.github.upstash/context7/*` to verify the API usage against the official documentation.
- **Outdated Knowledge**: If you suspect your internal knowledge of a library might be outdated (e.g., major version changes), verify with `io.github.upstash/context7/*`.

## Best Practices

1.  **Be Specific**: When querying, specify the library name and ideally the version if known (or ask for the latest).
2.  **Verify Context**: Ensure the returned documentation matches the environment (e.g., specific framework versions).
3.  **Use Examples**: leverage the code examples provided by `io.github.upstash/context7/*` to ensure idiomatic usage.

## Tool Usage

Simply use the `io.github.upstash/context7/*` tool available in your toolset. You can usually invoke it by asking questions about a library or explicitly asking to "use io.github.upstash/context7/* to check [library]".

