mcp-context7-docs

v2026.09.24

Fetch version-specific library and framework documentation via Context7 MCP. Use when implementing against third-party APIs/SDKs where model knowledge may be stale, or when the user says "use context7" / asks for current docs for a named library.

GitHub
安装命令
npx skhub add janjaszczak/mcp-context7-docs
Markdown
SKILL.md

mcp-context7-docs

Activation gate (anti-noise)

Activate when at least one is true:

  • User asks for current/official docs for a named library or framework (Next.js, FastAPI, Prisma, etc.).
  • User includes "use context7" or equivalent.
  • You are about to call a third-party API and the exact version or recent API surface matters.

Do not activate for:

  • General web search, news, or "what happened lately" → use searxng / duckduckgo (see skills/deep-research/SKILL.md).
  • Deep synthesized research with citations in one call → perplexity only when user explicitly requests deep research.
  • Repo-local conventions → read the repository first (repo-grounding).

Procedure

  1. Identify library name and version if known (from package.json, pyproject.toml, lockfile, or user).
  2. Call Context7 MCP tools to resolve and fetch relevant documentation snippets.
  3. Prefer official API shapes from Context7 over memory or training cutoff; cite that docs came from Context7 when they drive a design choice.
  4. If Context7 is unavailable: mark UNCERTAIN, fall back to searxng for the official docs URL, then read repo lockfiles for version.

Output

  • Short: which library/version was targeted + key API constraints + next implementation step.
  • Do not dump full doc pages; keep only what the current task needs.

Failure handling

  • MCP unreachable: confirm context7 in mcp.json, CONTEXT7_API_KEY in ~/.cursor/.env — runbook doc/mcp-secrets.md; restart Cursor; Node.js 18+ / npx on PATH.
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

Sep 24, 2026

分类

未分类

许可证

未指定

源路径

skills/mcp-context7-docs

默认分支

main

最新提交

cb70ff7

Tree SHA

dc4c45a