Code Index MCP by johnhuang316

by johnhuang316• 1k•• Scanned•Claim this listing•Request removal

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 Code · Terminal
claude mcp add code-index-mcp-johnhuang316 -- uvx code-index-mcp
Claude Desktop · claude_desktop_config.json
{
  "mcpServers": {
    "code-index-mcp-johnhuang316": {
      "command": "uvx",
      "args": [
        "code-index-mcp"
      ]
    }
  }
}
Cursor · .cursor/mcp.json
{
  "mcpServers": {
    "code-index-mcp-johnhuang316": {
      "command": "uvx",
      "args": [
        "code-index-mcp"
      ]
    }
  }
}
VS Code · Terminal
code --add-mcp '{"name":"code-index-mcp-johnhuang316","command":"uvx","args":["code-index-mcp"]}'

What Code Index MCP can touch

  • Run shell commandsNot seen in this scan
  • Run dynamic codeNot seen in this scan
  • Read or write filesNot seen in this scan
  • Read environment and secretsNot seen in this scan
  • Control a web browserNot seen in this scan
  • Connect to databasesNot seen in this scan
  • Read or send messagesNot seen in this scan
  • Touch money or tradingNot seen in this scan
  • 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

  1. Pin the version you reviewed instead of always installing the latest release.
  2. 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_path

    Set the base project path for indexing.

  • search_code_advanced

    Search 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_files

    Find files matching glob pattern using in-memory index. Supports path patterns (*.py, test_*.js) and filename-only matching (README.md).

  • get_file_summary

    Get a summary of a specific file, including: - Line count - Function/class definitions (for supported languages) - Import statements - Basic complexity metrics

  • get_symbol_body

    Get 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_index

    Manually rebuild the project file index. Use after git operations or when index seems stale.

  • build_deep_index

    Build 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_info

    Get information about the project settings.

  • create_temp_directory

    Create the temporary directory used for storing index data.

  • check_temp_directory

    Check the temporary directory used for storing index data.

  • clear_settings

    Clear all settings and cached data.

  • refresh_search_tools

    Manually 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_status

    Get file watcher service status and statistics.

  • configure_file_watcher

    Configure 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.

NameStarsLicenceLast updatedScan
Code Index MCP (this page)
johnhuang316
1kMITJul 27, 2026Scanned, no flagged issues
Worldmonitor
koala73
90kAGPL-3.0Nov 1, 2026Scanned, no flagged issues
GPT Researcher
assafelovic
30kApache-2.0Oct 10, 2026Scanned, no flagged issues
Auto Claude Code Research In Sleep
wanshuiyin
18kMITNov 1, 2026Scanned, no flagged issues
Deep Research
u14app
4.7kMITJun 18, 2026Scanned, no flagged issues
MCP Server Chart
antvis
4.4kMITAug 27, 2026Scanned, no flagged issues