loading…
Search for a command to run...
loading…
Provides LLMs with safe, read-only access to local codebases for searching, reading files, and finding function definitions. All source code remains local, ensu
Provides LLMs with safe, read-only access to local codebases for searching, reading files, and finding function definitions. All source code remains local, ensuring privacy while enabling AI assistants to explore project structures and functionality.
A Model Context Protocol (MCP) server that provides LLMs with safe, read-only access to a local codebase.
It allows AI assistants to answer questions like:
All source code remains local — nothing is uploaded or shared externally.
LLM Client (Claude / Cursor / Custom UI)
│
│ MCP (stdio)
▼
MCP Server (Node + TypeScript)
│
▼
Local Project Files (read-only)
| Tool Name | Description |
|---|---|
list_files |
List all files in the project |
read_file |
Read a file by relative path |
search_code |
Search text across source files |
find_function |
Locate function definitions |
npm install
Edit src/config.ts and set the absolute path of the project you want to query:
export const PROJECT_ROOT = "ABSOLUTE_PATH_TO_YOUR_PROJECT";
npm run build
npm start
Example (Claude Desktop):
{
"mcpServers": {
"local-code": {
"command": "node",
"args": ["<absolute-path>/dist/index.js"]
}
}
}
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"local-code-mcp-server": {
"command": "npx",
"args": []
}
}
}