Delphi Code
Allows indexing and searching Bitbucket repositories, using BITBUCKET_APP_PASSWORD with BITBUCKET_EMAIL or BITBUCKET_USERNAME for access, so agents can search across remote Bitbucket code alongside local projects.
Allows indexing and searching GitHub repositories, using GITHUB_TOKEN/GH_TOKEN or gh auth token for access, so agents can search across remote GitHub code alongside local projects.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Delphi Codewhere are user passwords checked in my projects?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Delphi Code
Let your coding agent find code by what it does, not by what it's called. Ask "where are user passwords checked?" and get the right files back, 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.
Across repositories: index local projects or GitHub and Bitbucket repositories and search them all at once.
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 | shThe 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 setupRequires macOS 14+ on Apple silicon (Linux is untested, Windows unsupported). delphi-code doctor checks the installation.
Related MCP server: MCP Indexer
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 browserYour 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 |
|
Codex |
|
Cursor | Add |
VS Code (Copilot) |
|
Gemini CLI |
|
OpenCode | Add |
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 |
| Downloads the model (or imports it with |
| Tracks and indexes local paths or remote repositories ( |
| Updates tracked projects, re-embedding only what changed. |
| Indexes a project once without tracking it. |
| Searches every index, or one with |
| Show tracked projects, show a project's index, stop tracking a project. |
| Add or remove Delphi Code in your agents' configs. |
| Opens a local web UI for search, projects, and setup checks. |
| Checks the model and storage. |
| 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 access for remote repositories (falls back to |
| Bitbucket access (an API token works) |
| Use another local SentenceTransformers model instead of the default all-MiniLM-L6-v2 |
| Move indexes, the tracked-project list, or the log |
|
|
Data lives in ~/Library/Application Support/delphi-code on macOS and ~/.local/share/delphi-code on Linux.
Upgrade and uninstall
uv tool upgrade delphi-codeYour 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 packagesIf 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.
This server cannot be deployed
Maintenance
Related MCP Connectors
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Search indexed code, trace dependencies, assess change impact, and recall repository memory.
Project memory, semantic code search, and grounded agent context.
Shared memory for coding agents. Stop re-explaining your codebase every session.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides semantic code search capabilities that run 100% locally using EmbeddingGemma embeddings. Enables finding code by meaning across 15 file extensions and 9+ programming languages without API costs or sending code to the cloud.238-
- AlicenseNot gradedqualityDmaintenanceEnables semantic code search across multiple repositories using natural language queries. Provides intelligent code discovery, symbol lookups, and cross-repo dependency analysis for AI coding agents.MIT
- AlicenseAqualityFmaintenanceProvides intelligent semantic code search using local AI embeddings, enabling natural language queries to find relevant code by meaning rather than exact keywords. Indexes codebases in the background with smart project detection and privacy-first local processing.628 npm199MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to semantically search and navigate code repositories using natural language, with support for multiple repos, incremental indexing, and no local install needed.-