Delphi Compiler MCP

v1.0.0Developer Toolsstable

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.

ai-assistantclaude-desktopcodeartscodeartsdaofydelphi
Share:
57
Stars
0
Downloads
0
Weekly
0/5

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

Compile Delphi projects and units through MCP.
Access automatic compiler detection via Windows registry.
Execute builds with full MSBuild integration.
chinawsb

Maintainer

LicenseMIT License
Languagepython
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx delphi-compiler-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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-delphi
2

Verify 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_environment
3

Locate 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.

4

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"
      }
    }
  }
}
5

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.

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.

Quick Config Preview

{ "mcpServers": { "delphi-compiler-mcp-server": { "command": "npx", "args": ["-y", "delphi-compiler-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides