Code Index MCP by johnhuang316
A Model Context Protocol (MCP) server that helps large language models index, search, and analyze code repositories with minimal setup
Code Index MCP is an open-source mcp server by johnhuang316, written mainly in Python, with 1,007 GitHub stars and the MIT license. Its code was last updated Jul 27, 2026. The latest PyPI release is code-index-mcp 2.17.1, published Jul 27, 2026, with 2,607 downloads last week.
Scan summary: scanned Nov 5, 2026 at commit d395cbf. No capabilities flagged by our checks. 1 published advisory for its package. Scan policy
How to install Code Index MCP
Built from the start command in the project's README: uvx code-index-mcp. Check the README for required keys or settings.
claude mcp add code-index-mcp-johnhuang316 -- uvx code-index-mcp{
"mcpServers": {
"code-index-mcp-johnhuang316": {
"command": "uvx",
"args": [
"code-index-mcp"
]
}
}
}{
"mcpServers": {
"code-index-mcp-johnhuang316": {
"command": "uvx",
"args": [
"code-index-mcp"
]
}
}
}code --add-mcp '{"name":"code-index-mcp-johnhuang316","command":"uvx","args":["code-index-mcp"]}'What Code Index MCP can touch
- Our checks did not find this. The tool may still do it.Run shell commandsNot seen in this scan
- Our checks did not find this. The tool may still do it.Run dynamic codeNot seen in this scan
- Our checks did not find this. The tool may still do it.Read or write filesNot seen in this scan
- Our checks did not find this. The tool may still do it.Read environment and secretsNot seen in this scan
- Our checks did not find this. The tool may still do it.Control a web browserNot seen in this scan
- Our checks did not find this. The tool may still do it.Connect to databasesNot seen in this scan
- Our checks did not find this. The tool may still do it.Read or send messagesNot seen in this scan
- Our checks did not find this. The tool may still do it.Touch money or tradingNot seen in this scan
- Our checks did not find this. The tool may still do it.Connect to the internetNo connections seen while running
"Not seen" means our checks did not find it, and the tool may still do it. Covers commit d395cbf, Nov 5, 2026. See the scan policy.
Before you install Code Index MCP
AgenticMart scanned Code Index MCP on Nov 5, 2026 with automated checks for hidden code, known-malicious packages, leaked secrets and vulnerable dependencies. The result covers one commit under our scan policy, so review what access you give it and check any advisories shown here.
What it can access
- An MCP server is a program your AI app starts and talks to. A local one runs with your user's permissions: it can see the files, environment variables and network your account can.
Before you install
- Pin the version you reviewed instead of always installing the latest release.
- Read the tool list or scripts before the first run, and keep approval prompts on for actions that write, send or delete.
- Maintained by johnhuang316 on GitHub, 1,007 stars and 119 forks. Popularity is not proof of safety.
- Last code change: Jul 27, 2026.
- Open-source license: MIT.
Published advisories for code-index-mcp
From the OSV database, for this PyPI package. Check that your installed version is past any fix.
- CVE-2026-10692Code Index MCP is vulnerable to Uncontrolled Resource ConsumptionFixed in 2.14.1.
Tools Code Index MCP exposes (14)
Listed by the server itself during our scan of commit d395cbf.
set_project_pathSet the base project path for indexing.
search_code_advancedSearch for code pattern with pagination. Auto-selects best search tool (ugrep/ripgrep/ag/grep). Supports glob file_pattern (e.g., "*.py"), explicit regex mode, and fuzzy matching (ugrep only). Regex matching requires passing regex=True and may require an external search tool.
find_filesFind files matching glob pattern using in-memory index. Supports path patterns (*.py, test_*.js) and filename-only matching (README.md).
get_file_summaryGet a summary of a specific file, including: - Line count - Function/class definitions (for supported languages) - Import statements - Basic complexity metrics
get_symbol_bodyGet the source code body of a specific symbol (function, method, or class). This tool retrieves only the code for the specified symbol, enabling efficient context usage by avoiding loading entire files. Args: file_path: Path to the file containing the symbol symbol
refresh_indexManually rebuild the project file index. Use after git operations or when index seems stale.
build_deep_indexBuild the deep index (full symbol extraction) for the current project. This performs a complete re-index and loads it into memory. Uses parallel processing by default. For large codebases (3000+ files), tuning max_workers can significantly improve build times. Args: ma
get_settings_infoGet information about the project settings.
create_temp_directoryCreate the temporary directory used for storing index data.
check_temp_directoryCheck the temporary directory used for storing index data.
clear_settingsClear all settings and cached data.
refresh_search_toolsManually re-detect the available command-line search tools on the system. This is useful if you have installed a new tool (like ripgrep) after starting the server.
get_file_watcher_statusGet file watcher service status and statistics.
configure_file_watcherConfigure file watcher service settings. Args: enabled: Whether to enable file watcher debounce_seconds: Debounce time in seconds before triggering rebuild additional_exclude_patterns: Additional directory/file patterns to exclude observer_type: Observer backend
Code Index MCP is an open-source mcp server by johnhuang316, written mainly in Python. A Model Context Protocol (MCP) server that helps large language models index, search, and analyze code repositories with minimal setup
At a glance
- Stars
- 1k
- Forks
- 119
- Language
- Python
- License
- MIT
- Created
- Mar 2025
- Last update
- Jul 27, 2026
- Type
- MCP Server
- Price
- Free
Questions about Code Index MCP
What is Code Index MCP?
A Model Context Protocol (MCP) server that helps large language models index, search, and analyze code repositories with minimal setup
Who maintains Code Index MCP?
Code Index MCP is maintained by johnhuang316 on GitHub (johnhuang316/code-index-mcp). AgenticMart lists it from public repository data.
Is Code Index MCP safe to use?
AgenticMart scanned Code Index MCP on Nov 5, 2026 with automated checks for hidden code, known-malicious packages, leaked secrets and vulnerable dependencies. The result covers one commit under our scan policy, so review what access you give it and check any advisories shown here.
What license does Code Index MCP use?
It is published under the MIT license.
Code Index MCP alternatives
View more →Similar mcp servers in Research & Analysis, ranked by GitHub stars. Compare licence, recent activity and scan status before you choose.
| Name | Stars | Licence | Last updated | Scan |
|---|---|---|---|---|
| Code Index MCP (this page) johnhuang316 | 1k | MIT | Jul 27, 2026 | Scanned, no flagged issues |
| Worldmonitor koala73 | 90k | AGPL-3.0 | Nov 1, 2026 | Scanned, no flagged issues |
| GPT Researcher assafelovic | 30k | Apache-2.0 | Oct 10, 2026 | Scanned, no flagged issues |
| Auto Claude Code Research In Sleep wanshuiyin | 18k | MIT | Nov 1, 2026 | Scanned, no flagged issues |
| Deep Research u14app | 4.7k | MIT | Jun 18, 2026 | Scanned, no flagged issues |
| MCP Server Chart antvis | 4.4k | MIT | Aug 27, 2026 | Scanned, no flagged issues |