context7
Up-to-date code documentation for LLMs and AI code editors.
MCP server
This plugin registers the Context7 server with direct binary call context7-mcp.
It resolves library names to Context7-compatible IDs and fetches current, version-specific documentation for libraries, frameworks, SDKs and APIs.
Hooks
| Event | Output | Agent Runtimes |
|---|---|---|
PreToolUse, before a web search or fetch | a reminder to try Context7 before the raw web tool | Claude Code, Codex |
SessionStart | a reminder that Context7 is available for library docs | Claude Code, Codex, Copilot, Devin |
SubagentStart | the same, for every subagent spawned | Claude Code, Codex, Copilot |
pre_llm_call | the same, before every LLM call | Hermes Agent |
Skills
context7-mcp
Synced as-is from upstream. When to use Context7 over training data or a raw web search for library docs.
context7-cli
Fallback for fetching docs through the ctx7 CLI when the Context7 MCP is unavailable or blocked.
Installation
[!warning] Either (or both)
context7-mcp(MCP allowed) orctx7(MCP denied) binaries are needed inPATHenvironment variable to work.
Native plugin (recommended):
my-agent plugin install context7@one-for-all
APM package:
apm install kilianpaquier/ai-integration/plugins/context7 -g
APM plugin:
apm marketplace add kilianpaquier/ai-integration
apm install context7@one-for-all -g
Compatibility table
| Agent Runtime | Manifest | MCP configuration | Hook configuration |
|---|---|---|---|
| APM | apm.yml | apm.yml | .apm/hooks/hooks.json |
| Claude Code | .claude-plugin/plugin.json | mcp.json | hooks/claude.json |
| Codex | .claude-plugin/plugin.json | mcp.json | hooks/claude.json |
| Copilot | .plugin/plugin.json | mcp.json | com.github.copilot/hooks/hooks.json |
| Antigravity | plugin.json | mcp_config.json | - |
| Devin | .claude-plugin/plugin.json | mcp.json | - |
| Hermes Agent | plugin.yaml | manual, ~/.hermes/config.yaml (not bundled) | __init__.py |