MCP server for intelligent code search: semantic (RAG), symbolic (tree-sitter), and regex (ripgrep) search modes. Built for Claude Code and AI coding assistants.
git clone https://github.com/jbenshetler/mcp-ragex.gitRAGex is an MCP server that gives Claude Code intelligent search capabilities across your entire codebase using three complementary modes: semantic search for natural language queries, tree-sitter symbolic search for code structure, and ripgrep regex patterns for exact matching. It indexes your project locally in Docker, with no code leaving your machine, and returns results in sub-seconds to help Claude understand existing patterns and avoid duplicate code. The skill automatically detects the best search mode based on your query, supports 30+ programming languages, and works with both AMD64 and ARM64 platforms, including NVIDIA GPU acceleration for faster indexing.
Install with `curl -fsSL https://raw.githubusercontent.com/jbenshetler/mcp-ragex/refs/heads/main/install.sh | bash`, then run `ragex start` in your project to index the codebase (1-5 minutes), and `ragex register claude | sh` to connect to Claude Code. Test with commands like `ragex search "auth functions"` for semantic search or `ragex search "async def" --regex` for pattern matching.
Finding existing authentication functions when Claude proposes building a new auth system
Discovering coding conventions and patterns in your codebase before Claude generates new code
Locating database query examples to ensure Claude uses your project's established patterns
Searching for error handling implementations across the codebase
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/jbenshetler/mcp-ragexCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
I'm working on a project for [COMPANY], a [INDUSTRY] company. I need to search through [NUMBER] lines of [PROGRAMMING_LANGUAGE] code for a specific pattern. Use the MCP server with all three search modes: semantic, symbolic, and regex. The pattern I'm looking for is: [PATTERN]. Return the results in a clear, organized format.
# Code Search Results
## Semantic Search Results
- Found 3 relevant code blocks that match the concept of [PATTERN]
- File: `src/utils/validation.js`
- Line 42-50: Input validation logic
- File: `src/api/handlers.js`
- Line 112-120: Request validation middleware
- File: `src/models/user.js`
- Line 78-85: User data validation
## Symbolic Search Results
- Found 2 exact matches for the pattern
- File: `src/utils/helpers.js`
- Line 22: `if (input.length > MAX_LENGTH) { ... }`
- File: `src/api/validators.js`
- Line 56: `if (data.size > MAX_SIZE) { ... }`
## Regex Search Results
- Found 5 matches for the regex pattern
- File: `src/utils/validation.js`
- Line 45: `if (input.length > 100) { ... }`
- File: `src/api/handlers.js`
- Line 115: `if (request.size > 1000) { ... }`
- File: `src/models/user.js`
- Line 80: `if (user.data > 50) { ... }`
- File: `src/utils/helpers.js`
- Line 25: `if (payload.size > 200) { ... }`
- File: `src/api/validators.js`
- Line 60: `if (response.length > 500) { ... }`AI assistant built for thoughtful, nuanced conversation
Get more done every day with Microsoft Teams – powered by AI
Automate security compliance and monitor real-time security posture seamlessly.
Automate your spreadsheet tasks with AI power
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan