Delphi Compiler MCP
Enables AI assistants to compile Delphi projects and single units directly through the Model Context Protocol. It features automatic compiler detection via the Windows registry and supports MSBuild with full build event integration.
What is Delphi Compiler MCP?
Delphi Compiler MCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enables ai assistants to compile delphi projects and single units directly through the model context protocol. it features automatic compiler detection via the windows registry and supports msbuild wi...
Enables AI assistants to compile Delphi projects and single units directly through the Model Context Protocol. It features automatic compiler detection via the Windows registry and supports MSBuild with full build event integration.
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Enables AI assistants to compile Delphi projects and single
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx delphi-compiler-mcp-serverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Delphi Compiler MCP
The Delphi Compiler MCP Server connects AI assistants directly to the Embarcadero Delphi build toolchain, enabling compilation of full projects and individual Pascal units without leaving your AI chat interface. It automatically discovers installed Delphi compilers through the Windows registry and supports MSBuild with complete build event integration. Developers working in Delphi can use this server to trigger builds, check syntax, detect third-party library dependencies, and diagnose compiler environments — all from Claude or any MCP-compatible client. The underlying package is daofy-for-delphi, which exposes a rich set of tools covering the full Delphi development lifecycle.
Prerequisites
- Windows operating system (compiler detection uses the Windows registry)
- Embarcadero Delphi IDE installed (any version detectable via the registry)
- Python 3.8+ and pip available on PATH
- An MCP-compatible client such as Claude Desktop
- pip install daofy-for-delphi executed before configuring the client
Install the daofy-for-delphi package
Install the Python package that provides the delphi-compiler-mcp-server entry point. Use the standard pip command or a Chinese mirror if network access is limited.
pip install daofy-for-delphiVerify compiler auto-detection
After installation, confirm that the server can find your Delphi installation through the Windows registry. The check_environment tool will report which compilers were detected and their paths.
daofy check_environmentLocate the Claude Desktop config file
Open the Claude Desktop configuration file at %APPDATA%\Claude\claude_desktop_config.json in a text editor. Create the file if it does not yet exist.
Add the MCP server entry
Add a mcpServers entry that invokes the daofy command directly. The three Python environment variables ensure correct encoding on Windows — especially important for Delphi source files that may use non-ASCII characters.
{
"mcpServers": {
"delphi-compiler": {
"command": "daofy",
"env": {
"PYTHONUNBUFFERED": "1",
"PYTHONIOENCODING": "utf-8",
"PYTHONUTF8": "1"
}
}
}
}Restart Claude Desktop and verify
Quit and relaunch Claude Desktop. The Delphi Compiler tools (project, check_environment, delphi_kb, and others) should now appear in the tools panel. Ask Claude to run check_environment to confirm the connection.
Delphi Compiler MCP Examples
Client configuration
Complete claude_desktop_config.json entry for the Delphi Compiler MCP Server using the pip-installed daofy command.
{
"mcpServers": {
"delphi-compiler": {
"command": "daofy",
"env": {
"PYTHONUNBUFFERED": "1",
"PYTHONIOENCODING": "utf-8",
"PYTHONUTF8": "1"
}
}
}
}Prompts to try
Example prompts you can send to Claude once the Delphi Compiler MCP Server is connected.
- "Compile my Delphi project at C:\Projects\MyApp\MyApp.dproj and show me any errors."
- "Check the environment and tell me which Delphi compilers are installed and their versions."
- "Search the Delphi knowledge base for how TStringList works and show me common usage examples."
- "Read the file Unit1.pas, check for syntax issues, and suggest improvements."
- "List the third-party component packages my project depends on."Troubleshooting Delphi Compiler MCP
The server starts but reports no compilers found
Ensure Delphi is installed on the same Windows machine running the server. The registry detection reads from HKEY_LOCAL_MACHINE\SOFTWARE\Embarcadero\BDS. If you have a non-standard installation, add the compiler path manually in config/compilers.json inside the daofy package directory.
UnicodeDecodeError or garbled text in tool output
Confirm that all three environment variables (PYTHONUNBUFFERED=1, PYTHONIOENCODING=utf-8, PYTHONUTF8=1) are set in the MCP config. These are required for correct encoding handling on Windows.
daofy command not found after pip install
The pip scripts directory may not be on your PATH. Run python -m daofy as the command instead, or add the Python Scripts folder (typically %APPDATA%\Python\Scripts) to your system PATH environment variable.
Frequently Asked Questions about Delphi Compiler MCP
What is Delphi Compiler MCP?
Delphi Compiler MCP is a Model Context Protocol (MCP) server that enables ai assistants to compile delphi projects and single units directly through the model context protocol. it features automatic compiler detection via the windows registry and supports msbuild with full build event integration. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Delphi Compiler MCP?
Follow the installation instructions on the Delphi Compiler MCP GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Delphi Compiler MCP?
Delphi Compiler MCP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Delphi Compiler MCP free to use?
Yes, Delphi Compiler MCP is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.
Delphi Compiler MCP Alternatives — Similar Developer Tools Servers
Looking for alternatives to Delphi Compiler MCP? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Delphi Compiler MCP in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Delphi Compiler MCP?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.