Delphi Build Server

v1.0.0Developer Toolsstable

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.

build-toolsdelphifpclazarusmcp
Share:
18
Stars
0
Downloads
0
Weekly
0/5

What is Delphi Build Server?

Delphi Build Server is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 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 configu...

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.

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Enables building and cleaning Delphi projects (.dproj/.group

Use Cases

Build Delphi projects and group projects using MSBuild. Clean project builds and manage configurations. Support RAD Studio integration for automated builds.
flydev-fr

Maintainer

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

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx delphi-build-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 Build Server

The Delphi Build Server is a TypeScript MCP server that enables AI agents to compile, build, and clean Delphi and Pascal projects on Windows without leaving the AI client. It supports Embarcadero RAD Studio projects (.dproj and .groupproj) via MSBuild, Free Pascal Compiler (FPC) source files, and Lazarus IDE projects via lazbuild — covering five distinct build tools in one server. Environment initialization is handled automatically through rsvars.bat for RAD Studio, ensuring the correct compiler paths are set before each build invocation.

Prerequisites

  • Windows operating system (required for Delphi/MSBuild integration)
  • Node.js 18 or higher and npm or pnpm
  • Embarcadero RAD Studio installed (for delphi.build and delphi.clean tools)
  • Free Pascal Compiler installed (for fpc.build tool, optional)
  • Lazarus IDE installed (for lazarus.build and lazarus.clean tools, optional)
1

Clone the repository

Clone the mcp-delphi repository from GitHub.

git clone https://github.com/flydev-fr/mcp-delphi.git
cd mcp-delphi
2

Install dependencies and build

Install Node.js dependencies and compile the TypeScript source to JavaScript.

npm install && npm run build
# Or with pnpm:
pnpm install && pnpm run build
3

Locate your RAD Studio rsvars.bat

Find the rsvars.bat file for your RAD Studio version. This file initializes the Delphi build environment and is required for MSBuild-based compilation.

# Common path for RAD Studio 12 (Alexandria):
# C:\Program Files (x86)\Embarcadero\Studio\23.0\bin\rsvars.bat
# Adjust the version number to match your installation.
4

Add to your MCP client configuration

Register the server in Claude Code or Claude Desktop with the required environment variables pointing to your RAD Studio installation.

{
  "mcpServers": {
    "delphi-build": {
      "command": "node",
      "args": ["/path/to/mcp-delphi/dist/index.js"],
      "env": {
        "RSVARS_BAT": "C:\\Program Files (x86)\\Embarcadero\\Studio\\23.0\\bin\\rsvars.bat",
        "DELPHI_CONFIG": "Release",
        "DELPHI_PLATFORM": "Win64"
      }
    }
  }
}

Delphi Build Server Examples

Client configuration

Claude Desktop configuration for the Delphi Build Server on Windows. Replace paths with your actual RAD Studio and project locations.

{
  "mcpServers": {
    "delphi-build": {
      "command": "node",
      "args": ["C:\\tools\\mcp-delphi\\dist\\index.js"],
      "env": {
        "RSVARS_BAT": "C:\\Program Files (x86)\\Embarcadero\\Studio\\23.0\\bin\\rsvars.bat",
        "MSBUILD_PATH": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Current\\Bin\\MSBuild.exe",
        "DELPHI_CONFIG": "Release",
        "DELPHI_PLATFORM": "Win64"
      }
    }
  }
}

Prompts to try

Use these prompts in Claude after the Delphi Build Server is connected to compile and manage your Pascal projects.

- "Build MyApp.dproj in Release configuration for Win64 using the delphi.build tool"
- "Clean the MyApp.dproj build artifacts using delphi.clean"
- "Build the entire solution file MyGroup.groupproj for all projects in Release mode"
- "Compile src/main.pas with Free Pascal targeting Linux x86_64 using fpc.build"
- "Build MyLazarusProject.lpi using lazbuild in Release mode"
- "Show me the build output and any errors from the last delphi.build call"

Troubleshooting Delphi Build Server

delphi.build fails with 'rsvars.bat not found' or environment initialization error

Set the RSVARS_BAT environment variable to the full path of your RAD Studio rsvars.bat. Example: C:\Program Files (x86)\Embarcadero\Studio\23.0\bin\rsvars.bat. The version number (23.0) corresponds to RAD Studio 12 Alexandria; adjust for your version.

MSBuild is not found during build

Set the MSBUILD_PATH environment variable to the full path of your MSBuild.exe. It is typically in the Visual Studio installation directory under MSBuild\Current\Bin\, or in C:\Windows\Microsoft.NET\Framework64\v4.0.30319\.

The server starts but no Delphi tools appear in Claude

Verify the dist/index.js file exists by running `npm run build` again. Check the MCP client logs for startup errors. On Windows, ensure the command path uses double backslashes or forward slashes in the JSON config.

Frequently Asked Questions about Delphi Build Server

What is Delphi Build Server?

Delphi Build Server is a Model Context Protocol (MCP) server that 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. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Delphi Build Server?

Follow the installation instructions on the Delphi Build Server GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Delphi Build Server?

Delphi Build Server works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Delphi Build Server free to use?

Yes, Delphi Build Server 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-build-server": { "command": "npx", "args": ["-y", "delphi-build-server"] } } }

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

Read the full setup guide →

Ready to use Delphi Build Server?

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