MCP server/search

Code Search MCP Server

Universal MCP server for intelligent code search across any programming language

★ 2LLMTooling/code-search-mcp ↗by LLMToolingupdated
1

Add it to Claude Code

claude mcp add code-search -- npx -y @llmtooling/code-search-mcp
2

Make 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@latest

Free · 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 filters
search_textSearch code using regex patterns
search_filesFind files by name, pattern, or extension
detect_stacksDetect technology stacks in a directory
analyze_dependenciesAnalyze project dependencies
refresh_indexRebuild the symbol index

Try it

Find the definition of the 'User' class in my project.
Search for all occurrences of the regex pattern 'TODO:' in the src directory.
Detect the technology stack and frameworks used in this repository.
List all outdated dependencies in my project.
Find all files ending in .test.ts in the current directory.
Original README from LLMTooling/code-search-mcp
<h1>Code Search MCP</h1> Universal MCP server for intelligent code search across any programming language <h2>Overview</h2>

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

Frequently Asked Questions

What are the key features of Code Search MCP?

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.

What can I use Code Search MCP for?

Quickly navigating large codebases by searching for specific symbols or definitions. Performing structural code refactoring analysis using AST patterns. Auditing project dependencies for outdated packages across different ecosystems. Identifying the technology stack of an unfamiliar project during onboarding.

How do I install Code Search MCP?

Install Code Search MCP by running: npx -y @llmtooling/code-search-mcp

What MCP clients work with Code Search MCP?

Code Search MCP works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Conare · memory for coding agents

Turn this server into reusable context

Keep Code Search MCP docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Set up free$npx conare@latest