Delphi

v1.0.0Developer Toolsstable

Delphi and Lazarus/FPC MCP server: build/clean pascal projects via MCP tools.

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

What is Delphi?

Delphi is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to delphi and lazarus/fpc mcp server: build/clean pascal projects via mcp tools.

Delphi and Lazarus/FPC MCP server: build/clean pascal projects via MCP tools.

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

Features

  • Delphi and Lazarus/FPC MCP server: build/clean pascal projec

Use Cases

Build and clean Delphi and Lazarus/FPC projects via MCP.
Manage Pascal project compilation and lifecycle.
flydev-fr

Maintainer

LicenseMIT
Languagetypescript
Versionv1.0.0
UpdatedMay 7, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mcp-delphi

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

MCP Delphi is a TypeScript MCP server that exposes build and clean tools for Delphi, Lazarus, and Free Pascal Compiler (FPC) projects, allowing AI assistants like Claude to compile Pascal code, clean build artifacts, and manage the full project lifecycle through natural language. It integrates with Windows-based Embarcadero Delphi via MSBuild and rsvars.bat, and with cross-platform Lazarus via lazbuild, making it useful for Pascal developers who want AI-assisted build automation without leaving their AI client.

Prerequisites

  • Node.js 18 or later with npm or pnpm
  • Windows OS with Embarcadero Delphi installed (for delphi.build/delphi.clean tools), or Lazarus installed for lazarus.build/lazarus.clean, or FPC for fpc.build
  • MSBuild accessible on the system PATH, or its path specified via MSBUILD_PATH
  • Claude Desktop or another MCP-compatible client
1

Clone the mcp-delphi repository

Clone the repository from GitHub to your local machine.

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.

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

Create and configure the .env file

Copy or create a .env file in the project root and set the path to your Delphi rsvars.bat and optionally MSBuild. Adjust paths to match your Embarcadero Studio installation version.

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
4

Add the server to Claude Desktop config

Register the built server in claude_desktop_config.json using node to run the compiled index.js.

{
  "mcpServers": {
    "mcp-delphi": {
      "command": "node",
      "args": ["C:/path/to/mcp-delphi/dist/index.js"]
    }
  }
}
5

Restart Claude Desktop and test a build

Restart Claude Desktop and ask it to build a Delphi project. Provide the full path to your .dproj file in the request.

Delphi Examples

Client configuration

Claude Desktop configuration for mcp-delphi running from the compiled dist directory.

{
  "mcpServers": {
    "mcp-delphi": {
      "command": "node",
      "args": ["C:/dev/mcp-delphi/dist/index.js"]
    }
  }
}

Prompts to try

Example prompts for building and managing Pascal projects through Claude with mcp-delphi connected.

- "Build my Delphi project at C:/dev/MyApp/MyApp.dproj in Release configuration for Win64."
- "Clean the build artifacts for C:/dev/MyApp/MyApp.dproj."
- "Compile the Lazarus project at /home/user/myapp/myapp.lpi using the Release build mode."
- "Build the Free Pascal program at /src/hello.pas and output the binary to /bin/hello."
- "Clean the Lazarus project artifacts for MyForm.lpi and then rebuild from scratch."

Troubleshooting Delphi

delphi.build fails with 'rsvars.bat not found' or similar path error

Verify the RSVARS_BAT path in your .env file matches your Embarcadero Studio installation directory and version number. Common paths: 'C:\Program Files (x86)\Embarcadero\Studio\22.0\bin\rsvars.bat' for Delphi 11, '23.0' for Delphi 12.

MSBuild not found or build exits with code 9009

Set MSBUILD_PATH in .env to the full path of MSBuild.exe from your Visual Studio or Build Tools installation. Alternatively, add the MSBuild directory to your system PATH and restart. Exit code 9009 on Windows means the executable was not found.

lazarus.build fails even though lazbuild is installed

Ensure lazbuild is on the system PATH accessible to the Node.js process. On Windows, verify the Lazarus installation directory (e.g., C:\lazarus) is in PATH. If lazbuild is in a non-standard location, the server may need to be patched to accept a LAZBUILD_PATH configuration variable.

Frequently Asked Questions about Delphi

What is Delphi?

Delphi is a Model Context Protocol (MCP) server that delphi and lazarus/fpc mcp server: build/clean pascal projects via mcp tools. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Delphi?

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

Which AI clients work with Delphi?

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

Is Delphi free to use?

Yes, Delphi is open source and available under the MIT 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": { "mcp-delphi": { "command": "npx", "args": ["-y", "mcp-delphi"] } } }

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

Read the full setup guide →

Ready to use Delphi?

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