mcp-delphi
by flydev-fr·★ 17·Score 40
MCP server for building and cleaning Delphi, Lazarus, and Free Pascal projects via MSBuild and lazbuild tools.
Overview
mcp-delphi is a specialized MCP server that provides tooling for Pascal-based development environments. It supports three main ecosystems: Delphi projects (using MSBuild), Lazarus IDE projects, and Free Pascal Compiler (FPC) standalone builds. The server works on Windows platforms and integrates with Embarcadero RAD Studio through rsvars.bat to properly initialize the Delphi build environment. It offers multiple build and clean operations with configurable parameters for configuration type, platform, and compiler paths.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this MCP server when working with Delphi, Lazarus, or Free Pascal projects and need AI assistance with build automation via MCP.
When NOT to choose this
Don't choose this if you're not using Pascal development tools or if you need cross-platform build support beyond Windows.
Tools this server exposes
5 tools extracted from the READMEdelphi.builddelphi.build(project: string, configuration?: string, platform?: string, msbuildPath?: string, rsvarsPath?: string)Builds a Delphi project using MSBuild with optional configuration and platform settings.
delphi.cleandelphi.clean(project: string, configuration?: string, platform?: string, msbuildPath?: string, rsvarsPath?: string)Cleans a Delphi project using MSBuild.
fpc.buildfpc.build(source: string, output?: string, defines?: string[], unitPaths?: string[], includePaths?: string[], cpu?: string, os?: string, fpcPath?: string)Compiles a Pascal program using Free Pascal Compiler.
lazarus.buildlazarus.build(project: string, buildMode?: string, cpu?: string, os?: string, lazbuildPath?: string)Builds a Lazarus project using lazbuild with optional build mode and platform settings.
lazarus.cleanlazarus.clean(project: string, lazbuildPath?: string)Cleans Lazarus build artifacts via lazbuild.
Comparable tools
Installation
- Install Node.js >= 18
- Clone repository:
git clone https://github.com/flydev-fr/mcp-delphi - Install dependencies:
pnpm installornpm install - Build:
pnpm run build - Configure environment variables in
.envfile (paths to rsvars.bat and MSBuild) - Run server:
node --env-file=.env dist/server.js
For Claude Desktop, add to claude_desktop_config.json:
{
"mcpServers": {
"mcp-delphi": {
"command": "node",
"args": ["--env-file=.env", "/path/to/mcp-delphi/dist/server.js"]
}
}
}FAQ
- Does this work on Mac or Linux?
- No, this is Windows-only as it requires RAD Studio and MSBuild which are Windows-specific.
- Can I build projects without RAD Studio?
- For Delphi projects, no - RAD Studio is required. However, FPC and Lazarus projects can be built without it if their respective compilers are installed.
Compare mcp-delphi with
Last updated · Auto-generated from public README + GitHub signals.