local-rag-mcp

local-rag-mcp is a skill for Claude Code from yeaight7/agent-powerups. It costs 29 tokens per session (703 once invoked), scanned A, original, Apache-2.0.

A way to search and maintain a local collection of documents using meaning-based retrieval. RAG, or retrieval-augmented generation, lets an AI find relevant source material before answering.

In plain words
What is it for?
Use it to query, add to, and maintain a local document corpus when ordinary exact-text search is not enough.
Why use it?
It helps answer conceptual questions across documents while keeping the searchable collection local, subject to its privacy setup.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the codebase-intelligence plugin — 4 skills, 1 command, 3 agents shipped together

Good fit Use it to query, add to, and maintain a local document corpus when ordinary exact-text search is not enough.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yeaight7/agent-powerups/local-rag-mcp
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yeaight7/agent-powerups --skill local-rag-mcp
Clone the repo
git clone --depth 1 https://github.com/yeaight7/agent-powerups

Made for: Claude Code.

Or install codebase-intelligence, the plugin that ships this one along with the rest of its 4 skills, 1 command, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for local-rag-mcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/yeaight7/agent-powerups/local-rag-mcp/github.svg)](https://agentmods.dev/skills/yeaight7/agent-powerups/local-rag-mcp)
Your own site
<a href="https://agentmods.dev/skills/yeaight7/agent-powerups/local-rag-mcp"><img src="https://agentmods.dev/badge/skills/yeaight7/agent-powerups/local-rag-mcp/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for local-rag-mcp

Your own site · 80×15
<a href="https://agentmods.dev/skills/yeaight7/agent-powerups/local-rag-mcp"><img src="https://agentmods.dev/badge/skills/yeaight7/agent-powerups/local-rag-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 703 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.00703
Opus 5 $0.00015 $0.00351
Sonnet 5 $0.00006 $0.00141
Haiku 4.5 $0.00003 $0.00070

Measured 10d ago against content hash c0a03428ff79, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

local-rag-mcp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/codebase-intelligence/skills/local-rag-mcp/SKILL.md · 63 lines

How it starts

The opening of the file, as written. The whole thing — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Local RAG MCP

When to use

Use when the task requires semantic search over a local document corpus and an appropriate local RAG MCP server is available. Prefer standard grep/glob for simple pattern matching — RAG adds value for conceptual queries and cross-document synthesis.

Requirements / Checks

  • Verify a local RAG MCP server is configured (apx mcp list or check MCP settings).
  • Do NOT attempt to install or spin up Docker containers for vector databases without explicit user permission.
  • Confirm whether the embedding provider is local or remote — if remote (e.g., OpenAI), warn the user before ingesting sensitive content.

Workflow

  1. Identify need — determine whether the query requires semantic retrieval (conceptual, cross-document) vs. standard grep/glob (exact pattern, single file).

  2. Check configuration — verify the connection to the local RAG MCP server. If it fails, surface the error rather than falling back silently.

  3. Inventory corpus — use status or list tools to see what's already indexed before ingesting anything.

  4. Ingest (only if necessary) — ingest only files explicitly approved for this corpus. Include clear source metadata (file path, ingest timestamp). Exclude: .env files, credential files, SSH keys, and files outside the workspace.

  5. Query strategy:

    • Start with the user's exact terms; do not paraphrase into broader concepts.
    • Add one specific disambiguating detail if initial results are too broad.
    • Keep result limits small first (top 5); expand only if results are insufficient.
  6. Expand around hits — if a top result lacks surrounding context, fetch neighboring chunks before drawing conclusions.

  7. Synthesize with citations — in your response, distinguish between retrieved evidence (cite source and chunk) and your own inference.

  8. Clean up — delete stale or incorrectly ingested sources when requested; do not accumulate unrelated documents.

Tool Interface (illustrative — actual names depend on your server)

Read the full file on GitHub · 63 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 63 lines · 29 tokens per session scan A c0a03428ff79

Subscribe to this mod's changes

local-rag-mcp is a skill published in the GitHub repository yeaight7/agent-powerups (6 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 29 tokens to every session and 703 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

knowledge-retrieval

Semantic search over ingested documents using RAG (LlamaIndex/ChromaDB or Foundational RAG).

open-gitagent/opengap · 28 tokens

dspy

Build complex AI systems with declarative programming, optimize prompts automatically, create modular RAG systems and agents with DSPy - Stanford NLP's framework for systematic LM programming.

synthetic-sciences/openscience · 35 tokens

langchain

Framework for building LLM-powered applications with agents, chains, and RAG. Supports multiple providers (OpenAI, Anthropic, Google), 500+ integrations, ReAct agents, tool calling, memory management, and vector store retrieval. Use for building chatbots, question-answering systems, autonomous agents, or RAG…

synthetic-sciences/openscience · 79 tokens

pn-rag-evaluation

Evaluate retrieval-augmented generation pipelines — golden sets, automated metrics (incl. RAGAS-style), human rubrics, regression gates in CI. Use when building or changing RAG (chunks, embeddings, rerankers, prompts) and need quality proof, not vibes.

perniemann/pnCore · 62 tokens

thinking-out-loud

A contract for what the agent does when a long, messy, stream-of-consciousness ramble arrives (usually voice dictation): act on nothing until the echo brief is approved. The echo audits the entire transfer, mission, locked decisions and constraints, open questions, flips and parked tangents, with the model's…

Shubhamsaboo/awesome-llm-apps · 206 tokens

azure-search-documents-dotnet

Azure AI Search SDK for .NET (Azure.Search.Documents). Use for building search applications with full-text, vector, semantic, and hybrid search. Covers SearchClient (queries, document CRUD), SearchIndexClient (index management), and SearchIndexerClient (indexers, skillsets). Triggers: "Azure Search .NET"…

microsoft/skills · 102 tokens