code-index — Claude Code MCP server: use and install
Indexes source code in SQLite and gives AI agents structured symbol and call data. It fits repository search and native 1C:Enterprise analysis.
claude mcp add code-index -- npx -y @regsorm/code-index-mcpWhat code-index does
code-index parses source files into an AST, stores symbols, function bodies, calls, and metadata in SQLite, then exposes the index through MCP. It is written in Rust, handles AST data for 14 languages, and includes native support for 1C:Enterprise 8.3 exports from both Configurator and 1C:EDT.
The npm route uses @regsorm/code-index-mcp; its postinstall step fetches a ready binary for the current platform. The server can use HTTP or stdio. In either mode, a separate npx @regsorm/code-index-mcp daemon run process builds the index while the MCP server reads it.
Set CODE_INDEX_HOME before using the npm setup. Without the background indexer, tools return daemon_offline. The server can connect to Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, and Zed.
What it helps with
- find symbol definitions across a repository
- trace calls to a procedure or function
- inspect source structure through an AST
- search project code through MCP
- analyze 1C:Enterprise 8.3 exports
Example prompts for the agent
- Index this repository and find every call to
UpdateData. - Show the definition of
UserServiceand the code locations that use it. - Inspect the 1C modules and map the dependencies between them.
How to install code-index
Platform CLI
claude mcp add code-index -- npx -y @regsorm/code-index-mcpPlatform CLI
codex mcp add code-index -- npx -y @regsorm/code-index-mcpConfig file
{
"mcpServers": {
"code-index": {
"command": "npx",
"args": [
"-y",
"@regsorm/code-index-mcp"
]
}
}
}Config file
{
"servers": {
"code-index": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@regsorm/code-index-mcp"
]
}
}
}Platform CLI
gemini mcp add code-index npx -y @regsorm/code-index-mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about code-index
How do I install code-index in Claude Code?
Run claude mcp add code-index -- npx -y @regsorm/code-index-mcp. Then start npx @regsorm/code-index-mcp daemon run and set CODE_INDEX_HOME.
What does code-index do?
It builds a SQLite index of source code and exposes symbols, function bodies, calls, and structure to an AI agent through MCP. The server supports AST data for 14 languages and native 1C:Enterprise 8.3 analysis.
What does the npm setup require?
Run npx @regsorm/code-index-mcp daemon run and set CODE_INDEX_HOME. The tools return daemon_offline when the background indexer is not running.