Add it to Claude Code
claude mcp add code-search -- npx -y @llmtooling/code-search-mcpMake your agent remember this setup
code-search's config, env vars, and the gotchas you hit — recalled in every future Claude Code, Cursor, and Codex session.
npx conare@latestFree · one command · indexes the sessions already on disk. Set up in the browser instead →
What it does
- High-performance symbol search for classes, functions, and variables
- Structural AST pattern matching with metavariables
- Regex-powered text search using ripgrep
- Automated technology stack and framework detection
- Persistent symbol indexing for 80%+ faster startup times
Tools 6
search_symbolsSearch for code symbols with filterssearch_textSearch code using regex patternssearch_filesFind files by name, pattern, or extensiondetect_stacksDetect technology stacks in a directoryanalyze_dependenciesAnalyze project dependenciesrefresh_indexRebuild the symbol indexTry it
Original README from LLMTooling/code-search-mcp
Code Search MCP is a high-performance Model Context Protocol server that enables LLMs to intelligently search and analyze codebases across 12 programming languages with comprehensive AST search support for 15 languages. Built on our universal-ctags wrapper, ripgrep, and ast-grep, it provides fast symbol search, structural AST pattern matching, text search, file search, and dependency analysis with persistent caching for 80%+ faster startup times.
<h2>Core Features</h2> <table> <tr> <th>Feature</th> <th>Description</th> <th>Performance</th> </tr> <tr> <td>Symbol Search</td> <td>Find classes, functions, methods, and variables with intelligent filtering</td> <td>Fast (indexed)</td> </tr> <tr> <td>AST Search</td> <td>Structural code search using Abstract Syntax Trees with metavariables and relational rules</td> <td>Fast</td> </tr> <tr> <td>Text Search</td> <td>Regex-powered code search using ripgrep</td> <td>Very Fast</td> </tr> <tr> <td>File Search</td> <td>Locate files by name, pattern, or extension with glob support</td> <td>Very Fast</td> </tr> <tr> <td>Stack Detection</td> <td>Automatically detect technology stacks and frameworks in projects</td> <td>Fast</td> </tr> <tr> <td>Dependency Analysis</td> <td>Analyze project dependencies across multiple ecosystems</td> <td>Fast</td> </tr> <tr> <td>Index Caching</td> <td>Persistent symbol indices with automatic invalidation</td> <td>80%+ faster startup</td> </tr> </table> <h2>Language Support</h2>Code Search MCP supports 12 programming languages with full symbol indexing and intelligent search capabilities.
<table> <tr> <th>Language</th> <th>Symbol Search</th> <th>Text Search</th> <th>Dependency Analysis</th> </tr> <tr> <td>JavaScript</td> <td>Full</td> <td>Full</td> <td>Full (npm)</td> </tr> <tr> <td>TypeScript</td> <td>Full</td> <td>Full</td> <td>Full (npm)</td> </tr> <tr> <td>Python</td> <td>Full</td> <td>Full</td> <td>Full (pip)</td> </tr> <tr> <td>Java</td> <td>Full</td> <td>Full</td> <td>Full (Maven/Gradle)</td> </tr> <tr> <td>C#</td> <td>Full</td> <td>Full</td> <td>Full (NuGet)</td> </tr> <tr> <td>Go</td> <td>Full</td> <td>Limited</td> <td>Full (go.mod)</td> </tr> <tr> <td>Rust</td> <td>Full</td> <td>Limited</td> <td>Full (Cargo)</td> </tr> <tr> <td>C / C++</td> <td>Full</td> <td>Limited</td> <td>Limited</td> </tr> <tr> <td>PHP</td> <td>Full</td> <td>Limited</td> <td>Full (Composer)</td> </tr> <tr> <td>Ruby</td> <td>Full</td> <td>Limited</td> <td>Full (Bundler)</td> </tr> <tr> <td>Kotlin</td> <td>Full</td> <td>Limited</td> <td>Full (Gradle)</td> </tr> </table> <h2>MCP Tools</h2>The server exposes the following tools through the Model Context Protocol interface.
<table> <tr> <th>Tool</th> <th>Description</th> <th>Key Parameters</th> </tr> <tr> <td><code>search_symbols</code></td> <td>Search for code symbols with filters</td> <td>path, language, name, match, kinds, scope</td> </tr> <tr> <td><code>search_text</code></td> <td>Search code using regex patterns</td> <td>path, pattern, language, case_insensitive, literal, limit, paths</td> </tr> <tr> <td><code>search_files</code></td> <td>Find files by name, pattern, or extension</td> <td>path, pattern, name, extension, directory</td> </tr> <tr> <td><code>detect_stacks</code></td> <td>Detect technology stacks in a directory</td> <td>path, scan_mode (fast/thorough)</td> </tr> <tr> <td><code>analyze_dependencies</code></td> <td>Analyze project dependencies</td> <td>path, include_transitive, check_outdated</td> </tr> <tr> <td><code>refresh_index</code></td> <td>Rebuild the symbol index</td> <td>path, force_rebuild</td> </tr> <tr> <td><code