Skip to content

kilianpaquier/context7

v0.8.0MIT

Up-to-date code documentation for LLMs and AI code editors

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

EventOutputAgent Runtimes
PreToolUse, before a web search or fetcha reminder to try Context7 before the raw web toolClaude Code, Codex
PostToolUse, after a web search or fetchthe same reminder, for the next lookup in the sessionCopilot, Cursor
SessionStarta reminder that Context7 is available for library docsClaude Code, Codex, Copilot, Cursor
SubagentStartthe same, for every subagent spawnedClaude Code, Codex, Copilot

Skills

SkillDescription
context7-mcpSynced as-is from upstream. When to use Context7 over training data or a raw web search for library docs.
context7-cliFallback for fetching docs through the ctx7 CLI when the Context7 MCP is unavailable or blocked.

Installation

[!warning] Either (or both) context7-mcp (MCP allowed) or ctx7 (MCP denied) binaries are needed in PATH environment 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 RuntimeManifestMCP configurationHook configuration
APMapm.ymlapm.yml.apm/hooks/hooks.json
Antigravityplugin.jsonmcp_config.json-
Claude Code.claude-plugin/plugin.jsonmcp.jsonhooks/claude.json
Codex.claude-plugin/plugin.jsonmcp.jsonhooks/claude.json
Copilotplugin.jsonmcp.jsoncom.github.copilot/hooks/hooks.json
Cursor.cursor-plugin/plugin.jsonmcp.jsonhooks/cursor.json
Devin.claude-plugin/plugin.jsonmcp.json-