Universal MCP server for intelligent code search across any programming language
Code Search MCP
Universal MCP server for intelligent code search across any programming languageOverview
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.
Core Features
| Feature | Description | Performance |
|---|---|---|
| Symbol Search | Find classes, functions, methods, and variables with intelligent filtering | Fast (indexed) |
| AST Search | Structural code search using Abstract Syntax Trees with metavariables and relational rules | Fast |
| Text Search | Regex-powered code search using ripgrep | Very Fast |
| File Search | Locate files by name, pattern, or extension with glob support | Very Fast |
| Stack Detection | Automatically detect technology stacks and frameworks in projects | Fast |
| Dependency Analysis | Analyze project dependencies across multiple ecosystems | Fast |
| Index Caching | Persistent symbol indices with automatic invalidation | 80%+ faster startup |
Language Support
Code Search MCP supports 12 programming languages with full symbol indexing and intelligent search capabilities.
| Language | Symbol Search | Text Search | Dependency Analysis |
|---|---|---|---|
| JavaScript | Full | Full | Full (npm) |
| TypeScript | Full | Full | Full (npm) |
| Python | Full | Full | Full (pip) |
| Java | Full | Full | Full (Maven/Gradle) |
| C# | Full | Full | Full (NuGet) |
| Go | Full | Limited | Full (go.mod) |
| Rust | Full | Limited | Full (Cargo) |
| C / C++ | Full | Limited | Limited |
| PHP | Full | Limited | Full (Composer) |
| Ruby | Full | Limited | Full (Bundler) |
| Kotlin | Full | Limited | Full (Gradle) |
MCP Tools
The server exposes the following tools through the Model Context Protocol interface.
| Tool | Description | Key Parameters |
|---|---|---|
search_symbols |
Search for code symbols with filters | path, language, name, match, kinds, scope |
search_text |
Search code using regex patterns | path, pattern, language, case_insensitive, literal, limit, paths |
search_files |
Find files by name, pattern, or extension | path, pattern, name, extension, directory |
detect_stacks |
Detect technology stacks in a directory | path, scan_mode (fast/thorough) |
analyze_dependencies |
Analyze project dependencies | path, include_transitive, check_outdated |
refresh_index |
Rebuild the symbol index | path, force_rebuild |
|