Mcp Server Reposearch
Overview
Mcp Server Reposearch is a server that provides enhanced content search capabilities compared to the built-in search_files tool in Cline.
To use Mcp Server Reposearch, you need to set up the server and configure it with a .reposearchignore file to control filtering. You can then perform searches using regular expressions.
- Control filtering through a
.reposearchignorefile using gitignore format. - Support for regular expression searches. - Output format control, including options to include content in results.
- Searching for specific content in large codebases.
- Filtering search results based on custom ignore patterns.
- Performing complex searches using regular expressions.
Add to your AI client
Use these steps to connect Mcp Server Reposearch in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-server-reposearch-happyzym": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-reposearch-happyzym"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-server-reposearch-happyzym": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-reposearch-happyzym"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-server-reposearch-happyzym": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-reposearch-happyzym"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-server-reposearch-happyzym": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-reposearch-happyzym"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-server-reposearch-happyzym": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-reposearch-happyzym"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-server-reposearch-happyzym": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-reposearch-happyzym"
]
}
}
}FAQ
Can I use Mcp Server Reposearch with any programming language?
Yes! It can be used to search through any text-based files regardless of the programming language.
Is there a limit to the size of files I can search?
The server can handle large files, but performance may vary based on system resources.
How do I prevent token explosion during searches?
You can configure the server settings to manage token usage effectively.