How to Use the R2R MCP in Claude Code
Connect Claude Code to your R2R engine for terminal-based RAG and vector search in your CI/CD pipelines.
Works with every AI agent you already use
…and any MCP-compatible client
Connect R2R MCP to Claude Code
Create your Vinkius account to connect R2R to Claude Code — we handle the hosting, security, and runtime updates so you don't have to. No server setup required.
Key Capabilities
Headless RAG via Claude Code
Execute `rag_query` directly from your terminal. Use it in shell scripts or CI/CD jobs to generate context-aware reports from your R2R engine. It returns structured data ready for piping into other CLI tools. Automate your knowledge retrieval without a GUI.
Terminal-based vector search with Claude Code
Call `search` to find document chunks based on semantic similarity. It is ideal for searching massive logs or documentation sets stored in R2R. Integrate this into your workflow to verify documentation presence before deploying. Claude Code runs the search and displays the results in your standard output.
Monitor R2R via Claude Code
Use `get_health` to check your R2R engine availability within your automated pipeline. It provides a simple status check for your infrastructure. Combine this with `list_collections` to audit your data availability before running heavy ingestion jobs. It keeps your automation robust.
Set up R2R MCP in Claude Code
Prerequisites
- Claude Code CLI installed (
npm install -g @anthropic-ai/claude-code) - Active Vinkius subscription with a valid endpoint token
- 1
Run the add command
Open your terminal and run the command shown on the right. Replace
[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. Use--scope userto make it available across all projects. - 2
Verify the connection
Start a Claude Code session and type
/mcpto list connected servers. You should seer2r-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest R2R transactions." It will automatically discover and invoke the available R2R tools.
claude mcp add --transport http r2r-mcp https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about R2R MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the R2R MCP today
We host it, we monitor it, we maintain it. You just paste one token.