Agent skill

Context7 MCP

by danielvm-git in danielvm-git/bigpowers

Fetch current library docs via Context7 MCP instead of training data.

MITAuto-check passedDatabases

Install Context7 MCP

skills CLI
$ npx skills add danielvm-git/bigpowers --skill context7-mcp -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install danielvm-git/bigpowers context7-mcp --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/danielvm-git/bigpowers.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/context7-mcp .claude/skills/context7-mcp && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
context7-mcp
GitHub stars
256
Token cost
~603 tokens
SKILL.md length
236 words
Files
1
Skills in repo
39
Repo updated
First seen
Licence
MIT

At a glance

Fetch current library docs via Context7 MCP instead of training data.

  • Works in 4 steps: Cache key: ":" (lowercase, trimmed). → Read: bash… → Miss / stale: call query-docs; store via… → …
  • User asks about frameworks
  • SKILL.md covers When to Use, Bounded Retry (max 3x), Fetch Cache (ETag-revalidated) and Process, plus 1 more section
  • Calls bash

What it does

Context7 MCP is an agent skill from danielvm-git/bigpowers. Fetch current library docs via Context7 MCP instead of training data. Use when user asks about frameworks, APIs, setup, or code examples for React, Next.js, Prisma, etc.

Its SKILL.md is about 600 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Databases, covering ORMs and data access and MCP servers. It works with Model Context Protocol, Next.js, React and Prisma. The repository describes itself as: Agent skills synthesizing years of software engineering discipline into a prescriptive methodology for solo developers. The licence is MIT.

When your agent uses it

  • User asks about frameworks
  • Code examples for React

Example prompts

  • “/context7-mcp”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Cache key: ":" (lowercase, trimmed).
  2. Read: bash scripts/lib/doc-fetch-cache.sh get "" — exit 0 → use cached body.
  3. Miss / stale: call query-docs; store via doc-fetch-cache.sh put.
  4. TTL: 300s default (DOC_CACHE_TTL). Stale entries refresh on next fetch; honor ETag when MCP returns it.

What it can do on your machine

Read from SKILL.md and the folder at commit 812d57a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • bash

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Context7 MCP loads about 603 tokens when it runs. Until then it costs about 46 tokens; SKILL.md has 236 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~46
When it runs · the whole SKILL.md, loaded when a task matches
~603

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from danielvm-git/bigpowers at commit 812d57a, republished under its MIT licence (© danielvm-git). 236 words, ~603 tokens.

Download SKILL.mdSave it as .claude/skills/context7-mcp/SKILL.md (or your agent's skills folder).
name
context7-mcp
description
Fetch current library docs via Context7 MCP instead of training data. Use when user asks about frameworks, APIs, setup, or code examples for React, Next.js, Prisma, etc.
model
haiku
effort
light

Context7 MCP

HARD GATE — Max 3 Context7 tool calls per user question (resolve-library-id + query-docs count toward the cap). On quota/rate-limit errors, emit an explicit CONTEXT7_UNAVAILABLE block — do NOT silently answer from training data.

HARD GATE — Before HTTP fetch, check bash scripts/lib/doc-fetch-cache.sh get "<libraryId>:<query>". Cache hit within TTL → use cached body (no round-trip). On ETag mismatch after conditional refresh, replace cache entry.

When to Use

  • Setup/configuration questions ("How do I configure Next.js middleware?")
  • Code involving libraries ("Write a Prisma query for…")
  • API references ("What are the Supabase auth methods?")
  • User mentions specific frameworks (React, Vue, Svelte, Express, Tailwind, etc.)

Bounded Retry (max 3x)

AttemptAction
1resolve-library-id → pick best match
2query-docs with selected libraryId
3Retry query-docs once with refined query (narrower scope)

After 3 failures, stop and print:

CONTEXT7_UNAVAILABLE
Reason: <quota|rate-limit|no-match|timeout>
Action: Ask user to retry later, paste official docs URL, or run `bts docs <lib>`.
Do NOT substitute training-data answers without labeling them UNVERIFIED.

Fetch Cache (ETag-revalidated)

  1. Cache key: "<libraryId>:<normalized-query>" (lowercase, trimmed).
  2. Read: bash scripts/lib/doc-fetch-cache.sh get "<key>" — exit 0 → use cached body.
  3. Miss / stale: call query-docs; store via doc-fetch-cache.sh put.
  4. TTL: 300s default (DOC_CACHE_TTL). Stale entries refresh on next fetch; honor ETag when MCP returns it.

bts docs <lib> shares the same cache helper when invoked from this skill.

Process

  1. resolve-library-id with libraryName + full user query.
  2. Select match: name similarity, reputation, benchmark score; prefer version-specific IDs when user names a version.
  3. query-docs with libraryId + specific question (one concept per call).
  4. Answer using fetched docs; cite library/version when relevant.

Verify

→ verify: test -f scripts/lib/doc-fetch-cache.sh

© danielvm-git, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/context7-mcp of danielvm-git/bigpowers.

Open the folder on GitHubat commit 812d57a

Compare with similar skills

Context7 MCP next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Context7 MCP compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Context7 MCP this skilldanielvm-git/bigpowers256—~603Automated safety check: PassMIT
Context7 MCPrtadewald/skills175—~681Automated safety check: PassNone
Documentation Lookupaffaan-m/ECC274k1 repos~670Automated safety check: PassMIT
Documentation Lookupaffaan-m/ECC274k—~640Automated safety check: PassMIT
Fetching Library Docsaiskillstore/marketplace4301 repos~1.6kAutomated safety check: PassNone
Context7 Efficientaiskillstore/marketplace430—~1.5kAutomated safety check: PassNone

Similar skills

  • Context7 MCP

    rtadewald/skills

    This skill should be used when the user asks about libraries, frameworks, API references, or needs code examples.

    175 GitHub stars~681 tokensUpdated 9 days ago
    DatabasesAuto-check passed
  • 通过 Context7 MCP 使用最新的库和框架文档,而非训练数据。当用户提出设置问题、API参考、代码示例或命名框架(例如 React、Next.js、Prisma)时激活。

    274k GitHub starsUsed in 1 repo~670 tokens
    DatabasesAuto-check passed
  • 訓練データの代わりにContext7 MCP経由で最新のライブラリとフレームワークドキュメント使用。セットアップの質問、APIリファレンス、コード例、またはユーザーがフレームワーク(例:React、Next.js、Prisma)に名前を付けるときにアクティベーション。

    274k GitHub stars~640 tokensUpdated 2 days ago
    DatabasesAuto-check passed
  • Fetching Library Docs

    aiskillstore/marketplace

    Token-efficient library API documentation fetcher using Context7 MCP with 77% token savings.

    430 GitHub starsUsed in 1 repo~1.6k tokens
    DatabasesAuto-check passed
  • Context7 Efficient

    aiskillstore/marketplace

    Token-efficient library documentation fetcher using Context7 MCP with 86.8% token savings through intelligent shell pipeline filtering.

    430 GitHub stars~1.5k tokensUpdated today
    DatabasesAuto-check passed
  • Nextcrm

    pdovhomilja/nextcrm-app

    Connect to NextCRM MCP server to manage CRM data — accounts, contacts, leads, opportunities, targets, products, contracts, activities, documents, target lists, enrichment, email accounts, campaigns…

    711 GitHub stars~3.3k tokensUpdated 2 days ago
    Sales & SupportAuto-check passed

More from danielvm-git/bigpowers

All 39 skills in this repo
  • Extract Design

    danielvm-git/bigpowers

    Extract a Google DESIGN.md file from an HTML prototype (claude.ai/design or any styled page) using Puppeteer, producing machine-readable tokens and AI-generated prose.

    256 GitHub stars~1k tokensUpdated 16 days ago
    Auto-check passed
  • Align Grid

    danielvm-git/bigpowers

    Build editorial/magazine/report webpages on a GENUINE Müller-Brockmann modular grid (International Typographic Style) — not a decorative one.

    256 GitHub stars~3k tokensUpdated 16 days ago
    Auto-check passed
  • Assess Impact

    danielvm-git/bigpowers

    Analyze the blast radius of a proposed change before any code is written.

    256 GitHub stars~766 tokensUpdated 16 days ago
    Auto-check passed
  • Audit Code

    danielvm-git/bigpowers

    Self-review checklist for the coding agent to run before dispatching a reviewer.

    256 GitHub stars~1.6k tokensUpdated 16 days ago
    Auto-check: notes
  • Audit Plan

    danielvm-git/bigpowers

    Evaluate an incoming project plan against bigpowers principles and conventions, surface gaps, and produce a READY/NOT READY verdict before engagement begins.

    256 GitHub stars~880 tokensUpdated 16 days ago
    Auto-check passed
  • Compose Workflow

    danielvm-git/bigpowers

    Chain multiple bigpowers skills into a custom workflow recipe saved in specs/.

    256 GitHub stars~723 tokensUpdated 16 days ago
    Auto-check passed

Categories

Questions about Context7 MCP

What does Context7 MCP do?

Fetch current library docs via Context7 MCP instead of training data. Context7 MCP is an agent skill from danielvm-git/bigpowers. Fetch current library docs via Context7 MCP instead of training data.

When should I use Context7 MCP?

Context7 MCP fits situations like: user asks about frameworks; code examples for React.

How do I install Context7 MCP in Claude Code?

Run `npx skills add danielvm-git/bigpowers --skill context7-mcp -a claude-code`. Or copy the skill folder (skills/context7-mcp in danielvm-git/bigpowers) into .claude/skills/context7-mcp in your project. Claude Code loads it when a task matches its description.

How do I install Context7 MCP in Codex?

Run `npx skills add danielvm-git/bigpowers --skill context7-mcp -a codex`. Or copy the skill folder (skills/context7-mcp in danielvm-git/bigpowers) into .agents/skills/context7-mcp in your project. Codex loads it when a task matches its description.

Can I use Context7 MCP in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add danielvm-git/bigpowers --skill context7-mcp -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/context7-mcp, .gemini/skills/context7-mcp, .github/skills/context7-mcp and .opencode/skills/context7-mcp in your project.

What does Context7 MCP need to run?

Going by SKILL.md and its folder, Context7 MCP needs the command-line tools its instructions call (bash).

Does Context7 MCP access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Context7 MCP safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Context7 MCP use?

Context7 MCP is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Context7 MCP use?

About 603 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Context7 MCP?

Skills that share tags, products or a category with Context7 MCP: Context7 MCP (rtadewald/skills, 175 stars), Documentation Lookup (affaan-m/ECC, 274k stars), Documentation Lookup (affaan-m/ECC, 274k stars) and Fetching Library Docs (aiskillstore/marketplace, 430 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Context7 MCP?

danielvm-git (a GitHub user) maintains it in danielvm-git/bigpowers, which has 256 GitHub stars. The repository holds 39 skills in this directory. The repository was last updated on September 21, 2026.

Source: danielvm-git/bigpowers on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.