loading…
Search for a command to run...
loading…
An MCP server that indexes local Python projects into a SQLite database to enable efficient symbol searching and dependency tracking. It allows users to find fu
An MCP server that indexes local Python projects into a SQLite database to enable efficient symbol searching and dependency tracking. It allows users to find function or class definitions, trace module imports, and read file contents through natural language interfaces.
This project is a simple MCP (Model Context Protocol) server for local Python codebase search.
It provides tools to:
index_project().py files.db/code_index.db.find_symbol(name)LIKE matching.find_import(module)read_file(path)utf8, latin-1).server.py: MCP server entrypoint and tool definitions.indexer.py: Indexing logic to SQLite.parser.py: Symbol extraction (FunctionDef, ClassDef) using ast.dependency.py: Import extraction using ast.search.py: Search queries against the database.db/: Index database location (code_index.db).pipWindows PowerShell example:
python -m venv venv
.\venv\Scripts\Activate.ps1
pip install -r requirements.txt
Start the MCP server:
python server.py
Available tools:
index_projectfind_symbolfind_importread_fileAdd this to your MCP client configuration so it runs as an MCP server:
{
"mcpServers": {
"code-intelligence": {
"command": "python",
"args": [
"path-to-your-server"
]
}
}
}
index_project once to build the initial index.find_symbol to locate functions/classes.find_import to trace module usage.index_project after major code changes..git, node_modules, __pycache__, dist, build..gitignore).Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"mcp-local-codebase-search": {
"command": "npx",
"args": []
}
}
}Query your database in natural language
Read-only database access with schema inspection.
Interact with Redis key-value stores.
Database interaction and business intelligence capabilities.