Skip to main content
Glama

Delphi Compiler MCP Donate

A lightweight Model Context Protocol (MCP) server that wraps the native Delphi (RAD Studio) compilers. It enables automatic Debug/Release builds for Win32 and Win64 projects written in Object Pascal.

Installation

From PyPI

pip install delphi-compiler-mcp

From local source

git clone https://github.com/yourusername/delphi-compiler-mcp.git
pip install .

Related MCP server: Delphi Build MCP Server

MCP configuration example

Create (or update) your MCP client configuration, e.g. .cursor/mcp.json:

{
  "mcpServers": {
    "delphi-compiler": {
      "command": "delphi-compiler-mcp",
      "env": {
        "DELPHI_PATH": "C:\\Program Files (x86)\\Embarcadero\\Studio\\23.0"
      }
    }
  }
}

Usage

CLI

# Default compile (Debug / Win32)
mcp call delphi-compiler compile

# Release build for Win64
mcp call delphi-compiler build --platform Win64

Through an AI MCP client

If your MCP client supports natural-language commands (e.g. via an AI assistant), it is enough to say:

  • «build project» — to run a Release build

  • «compile project» — to run a Debug compile

The client will translate the phrase into the corresponding MCP call shown above.

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables building and cleaning Delphi projects (.dproj/.groupproj) on Windows using MSBuild with RAD Studio environment initialization. Supports both individual projects and group projects with configurable build configurations and platforms.
      5
      19
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI coding agents to compile Delphi projects programmatically by parsing .dproj files, executing the Delphi compiler, and returning structured error results with multi-language support and automatic configuration generation from IDE build logs.
      4
      10
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      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.
      251 PyPI
      108
      MIT