Borrowing it
Nothing to install: this file belongs to codingthefuturewithai/rag-retriever. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/codingthefuturewithai/rag-retriever/main/.claude/commands/setup-mcp.mdgit clone --depth 1 https://github.com/codingthefuturewithai/rag-retrieverWrote 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.
[](https://agentmods.dev/commands/codingthefuturewithai/rag-retriever/setup-mcp)<a href="https://agentmods.dev/commands/codingthefuturewithai/rag-retriever/setup-mcp"><img src="https://agentmods.dev/badge/commands/codingthefuturewithai/rag-retriever/setup-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.
<a href="https://agentmods.dev/commands/codingthefuturewithai/rag-retriever/setup-mcp"><img src="https://agentmods.dev/badge/commands/codingthefuturewithai/rag-retriever/setup-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00635 |
| Opus 5.5 | $0.00000 | $0.00254 |
| Sonnet 5.5 | $0.00000 | $0.00127 |
| Haiku 4.5 | $0.00000 | $0.00064 |
Grade A, and why
setup-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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Setup RAG Retriever MCP Server
Configure the RAG Retriever MCP server for use with Claude Code commands.
Prerequisites
- RAG Retriever installed via
pipx install rag-retrieveror local development setup - Claude Code with MCP support
- OpenAI API key configured
Setup Steps
1. Install RAG Retriever
pipx install rag-retriever
2. Initialize Configuration
rag-retriever --init
3. Configure API Key
Edit your config file (location shown by init command):
api:
openai_api_key: sk-your-api-key-here
4. Add MCP Server to Claude Code
First get your home directory:
echo $HOME
Add the MCP server using the FULL path. For example, if your home directory is /Users/timkitchens:
claude mcp add-json -s user rag-retriever '{"type":"stdio","command":"/Users/timkitchens/.local/bin/mcp-rag-retriever"}'
Important: Replace /Users/timkitchens with your actual home directory from the echo command above.
For Other AI Assistants (Windsurf, Cursor, etc.): Add this JSON configuration (replace with your actual home directory):
"rag-retriever": {
"command": "/Users/yourusername/.local/bin/mcp-rag-retriever"
}
Windows users: Check pipx list for the exact path and use that full path in both cases.
5. Verify Setup
Run a Claude Code command to test:
/list-collections
6. Test with Real Content
Index Claude Code documentation to verify full functionality:
/index-website "https://docs.anthropic.com/en/docs/claude-code/overview 3 claude_code_docs"
Wait 1-2 minutes for crawling, then test search:
/search-knowledge "MCP server setup claude_code_docs"
Available MCP Tools
Once configured, you have access to:
list_collections()- Discover available collectionsvector_search(query, collection_name, limit, score_threshold)- Search collectionscrawl_and_index_url(url, max_depth, collection_name)- Index websites
Troubleshooting
- Ensure OpenAI API key is valid and has credits
- Check that Python can import
rag_retriever.mcp - Verify MCP server is running with
python -m rag_retriever.mcp --help - Check Claude Code logs for MCP connection issues
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.
- 2mo ago First seen · 88 lines · 0 tokens per session scan A 4c13e56c630e
setup-mcp is a command published in the GitHub repository codingthefuturewithai/rag-retriever (27 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 635 tokens. 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-30.
setup-mcp compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| setup-mcpcodingthefuturewithai/rag-retriever | Command | 27 | 1y ago | MIT | A | 0 | Claude Code |
| checklistgithub/spec-kit | Command | 148k | yesterday | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 148k | yesterday | MIT | A | 27 | Claude Code |
| specifygithub/spec-kit | Command | 148k | yesterday | MIT | A | 13 | Claude Code |
| analyzegithub/spec-kit | Command | 148k | yesterday | MIT | A | 26 | Claude Code |
| convergegithub/spec-kit | Command | 148k | yesterday | MIT | A | 35 | Claude Code |
| implementgithub/spec-kit | Command | 148k | yesterday | MIT | A | 14 | Claude Code |