Enables coding agents to perform semantic searches across local, GitHub, and Bitbucket repositories using a local embedding model.
Also known as markdorof/delphi-code, delphi-code
- Stars
- 0
- Tools
- —
- Downloads, 30 days
- 1,332
- Latest version
- 0.3.4
- Last commit
- Oct 18, 2026
- License
- Apache-2.0
What is Delphi Code MCP?
Delphi Code enables coding agents to perform semantic searches across local, GitHub, and Bitbucket repositories using a local embedding model.
Summary generated from the project's README
About Delphi Code MCP server
Delphi Code provides semantic search capabilities for coding agents by indexing local directories alongside GitHub and Bitbucket repositories. It uses a local embedding model to find relevant code based on meaning rather than exact keyword matches. This allows developers to locate logic across multiple projects even when specific terms are not present in the source files. The server runs entirely on your machine, ensuring that code remains private and never leaves your local environment.
Designed for macOS users on Apple silicon, the tool integrates with various AI clients including Claude Code, Cursor, VS Code, and Gemini CLI. Users can manage their codebase through a command line interface or a local web UI. Setup involves downloading a model once, after which searches run near-instantly without requiring a GPU or cloud provider. To access remote repositories, you can provide a GITHUB_TOKEN or Bitbucket credentials, but the actual indexing and search processes remain offline.
What you can do with it
- 1Cross-repository logic discoveryAsk an AI agent to find where specific backend logic handles requests across different repositories.
- 2Semantic code searchingLocate code snippets by describing their purpose instead of using specific text strings.
- 3Automated project indexingAdd local paths or remote Git repositories to a searchable index for your coding assistant.
Written from the project's README. Every use case is checked against a quote from it.
How to install Delphi Code MCP
Formats verified 10 Nov 2026Install Delphi Code MCP in Claude Code
$ claude mcp add delphi-code -- uvx delphi-codeInstall Delphi Code MCP in Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"delphi-code": {
"command": "uvx",
"args": [
"delphi-code"
]
}
}
}Install Delphi Code MCP in VS Code
.vscode/mcp.json
{
"servers": {
"delphi-code": {
"type": "stdio",
"command": "uvx",
"args": [
"delphi-code"
]
}
}
}Install Delphi Code MCP in Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"delphi-code": {
"command": "uvx",
"args": [
"delphi-code"
]
}
}
}Install Delphi Code MCP in Codex
~/.codex/config.toml
[mcp_servers.delphi-code] command = "uvx" args = ["delphi-code"]
Install Delphi Code MCP in Gemini CLI
~/.gemini/settings.json
{
"mcpServers": {
"delphi-code": {
"command": "uvx",
"args": [
"delphi-code"
]
}
}
}Automated checks
Ran Nov 13, 2026Full report →Passed our automated checks. That is not a security audit: read the code and give the server the narrowest access it needs. How checks work
- Source repository linked and reachablePass
- Open source license (OSI)Pass
- Commit or release in the last yearPass
- Package name not close to a popular packagePass
- Remote endpoint uses HTTPSNot checked
- Destructive tools are labelledNot checked
- No hidden instructions to the modelPass
- No critical advisory in the package or its dependenciesPass
README
View on GitHubDelphi Code
Let your coding agent browse code across all your repositories. Index local projects and GitHub or Bitbucket repositories, then ask "where does the backend handle the refund the web app requests?" and get the right files from every repository at once, even when no file contains those words.

- Private: your code never leaves your machine. Indexing and search run offline with a local model; no account, cloud provider, or background daemon.
- Fast: the MCP server keeps the model loaded, so repeated searches are near-instant. No GPU needed.
- Works with your agents: Claude Code, Claude Desktop, Codex, Cursor, VS Code, Gemini CLI, and OpenCode.
Install
curl -LsSf https://github.com/markdorof/delphi-code/releases/latest/download/install.sh | sh
The script installs uv if needed, then runs setup, which downloads the embedding model once and connects every agent it finds. Options go after sh -s --: --no-setup, --no-connect, --version VERSION. With uv already installed:
uv tool install --managed-python --python 3.14 delphi-code
delphi-code setup
Requires macOS 14+ on Apple silicon (Linux is untested, Windows unsupported). delphi-code doctor checks the installation.
Use
delphi-code add ~/src/api github.com/octo/tools # track and index projects
delphi-code search 'where are user passwords checked?'
delphi-code ui # or do it all in the browser
Your agent calls the same search through MCP. After installing a new agent, run delphi-code connect. To connect one by hand:
| Agent | Setup |
|---|---|
| Claude Code | claude plugin marketplace add markdorof/delphi-code, then claude plugin install delphi-code@delphi-code |
| Codex | codex plugin marketplace add markdorof/delphi-code, then codex plugin add delphi-code@delphi-code |
| Cursor | Add {"mcpServers": {"delphi-code": {"type": "stdio", "command": "delphi-code", "args": ["mcp"]}}} to ~/.cursor/mcp.json |
| VS Code (Copilot) | code --add-mcp '{"name": "delphi-code", "command": "delphi-code", "args": ["mcp"]}' |
| Gemini CLI | gemini mcp add delphi-code delphi-code mcp |
| OpenCode | Add {"mcp": {"delphi-code": {"type": "local", "command": ["delphi-code", "mcp"]}}} to ~/.config/opencode/opencode.json |
For agents other than Claude Code and Codex, also copy the skill into the agent's skills folder so it knows when to search by meaning instead of grep.
Commands
| Command | What it does |
|---|---|
setup |
Downloads the model (or imports it with --from DIR on an offline machine) and connects agents. |
add [SOURCE ...] |
Tracks and indexes local paths or remote repositories (--ref picks a branch or tag). Without sources, picks repositories from your GitHub or Bitbucket account. |
sync [PROJECT ...] |
Updates tracked projects, re-embedding only what changed. |
index -p PATH |
Indexes a project once without tracking it. |
search QUERY |
Searches every index, or one with -p. Filter with --language, --path, --limit. |
list, status, remove NAME |
Show tracked projects, show a project's index, stop tracking a project. |
connect, disconnect |
Add or remove Delphi Code in your agents' configs. |
ui |
Opens a local web UI for search, projects, and setup checks. |
doctor |
Checks the model and storage. |
mcp |
Serves the commands as MCP tools over stdio. |
-p takes a path or an indexed project's name. index and add skip .gitignored files and accept --ignore, --path, and --language. Every command takes --help, and most take --json for scripts. Only setup, add, and sync use the network.
Settings
| Variable | Purpose |
|---|---|
GITHUB_TOKEN / GH_TOKEN |
GitHub access for remote repositories (falls back to gh auth token, then git's credentials) |
BITBUCKET_APP_PASSWORD with BITBUCKET_EMAIL or BITBUCKET_USERNAME |
Bitbucket access (an API token works) |
DELPHI_CODE_MODEL |
Use another local SentenceTransformers model instead of the default all-MiniLM-L6-v2 |
DELPHI_CODE_INDEX_ROOT, DELPHI_CODE_REGISTRY, DELPHI_CODE_LOG_FILE |
Move indexes, the tracked-project list, or the log |
DELPHI_CODE_LOG_LEVEL |
DEBUG, INFO, WARNING, ERROR, or OFF |
Data lives in ~/Library/Application Support/delphi-code on macOS and ~/.local/share/delphi-code on Linux.
Upgrade and uninstall
uv tool upgrade delphi-code
Your model and indexes are kept. If a command fails with index_incompatible, delete the index directory it names and run sync again. See releases for changes.
delphi-code disconnect
uv tool uninstall delphi-code
rm -rf ~/Library/Application\ Support/delphi-code
uv cache clean # frees about 900 MB of downloaded packages
If the install script installed uv and you don't need it, uninstall uv and its Python too.
License
Apache-2.0. See THIRD_PARTY_NOTICES.md. To contribute, see CONTRIBUTING.md.
Delphi Code MCP questions
How do I add Delphi Code MCP to Claude Code?
Run claude mcp add delphi-code -- uvx delphi-code in your terminal. Add --scope user to make it available in every project.
How do I add Delphi Code MCP to Cursor?
Open ~/.cursor/mcp.json and add the server under mcpServers, using the Cursor config shown in the install section above.
Is my code private?
Yes, your code never leaves your machine because indexing and search run offline with a local model.
Which AI agents are compatible with Delphi Code?
It works with Claude Code, Claude Desktop, Codex, Cursor, VS Code, Gemini CLI, and OpenCode.
What operating systems are supported?
It requires macOS 14+ on Apple silicon; Linux is currently untested and Windows is not supported.
How do I add a new repository to the index?
You can use the 'add' command to track local paths or remote repositories.