check_ugrep_installation
Check if ugrep is installed and get installation instructions
Search a codebase the way ugrep does — boolean, fuzzy, inside archives, by code structure — and replace across it with a dry run and backups by default.
LABSCO SUMMARY
A replace tool an agent can call is only safe if the careless call is the harmless one, and here it is: dryRun is on and backup is on until you turn them off, and the file cap stops a bad pattern from touching a thousand files. On the search side, boolean and fuzzy matching are the two that a plain grep wrapper cannot do — finding urgent TODOs that are not marked done, or an identifier whose spelling you got wrong, in one call.
An MCP server built on ugrep that gives an assistant both halves of a refactor: finding things and changing them. Search covers plain patterns, boolean expressions, approximate matching, compressed archives and language-aware code structures; replacement runs in preview mode unless you say otherwise and writes timestamped backups when it does.
basic_searcherror AND (critical OR fatal) is one search rather than three — boolean_searchfuzzy_searcharchive_searchcode_structure_searchsearch_and_replacebulk_replacecode_refactorlist_file_types, get_search_statsinteractive_searchNo account and no key. ugrep must be installed and on your PATH — ugrep --version should report 7.4 or higher — via apt-get, Homebrew, Chocolatey or from source. Node.js 18 or higher. The npm package name is codeseeker-mcp (0.1.0); build from a clone with npm install and npm run build, then point your client at the built index.js. Interactive mode needs a real terminal and cannot run through MCP, so treat it as a command it hands you rather than a search it performs.
One command — npx -y github:mixelpixx/CodeSeeker-MCP
USE CASES
Preview the replacement first, read what would change, then run it again with the dry run off and backups written.
Refactor by structure — function, class, variable — so a name that also appears in a comment or a string is left alone.
Use a boolean query to combine the terms that must appear with the ones that must not, instead of grepping and filtering by eye.
Run a fuzzy search with a couple of character errors allowed, and get the real spelling back.
Search by structure type in the language you are working in — every class, every import — rather than by a regex that also matches usages.
Search the archives directly, including nested ones, without extracting them to disk first.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
check_ugrep_installationCheck if ugrep is installed and get installation instructions
BEFORE YOU INSTALL
1 tool when we connected. The README's tool reference documents 11 tools (basic_search, boolean_search, fuzzy_search, archive_search, code_structure_search, interactive_search, search_and_replace, bulk_replace, code_refactor, list_file_types, get_search_stats); when we connected, the server listed only check_ugrep_installation.
CONTEXT COST
Rated by the size of the one tool definition that rides along on every turn
INSTALLATION
npx -y github:mixelpixx/CodeSeeker-MCPgit clone https://github.com/mixelpixx/CodeSeeker-MCP.git
cd CodeSeeker-MCP
npm install
npm run buildAdd this to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json; Windows: %APPDATA%/Claude/claude_desktop_config.json):
{
"mcpServers": {
"codeseeker": {
"command": "node",
"args": [
"<YOUR_PATH_TO_CODESEEKER_MCP>/build/index.js"
]
}
}
}