Delphi
Delphi and Lazarus/FPC MCP server: build/clean pascal projects via MCP tools.
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
Maintainer
Works with
Installation
Manual Installation
npx mcp-delphiConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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-delphiInstall 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 buildCreate 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=Win64Add 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"]
}
}
}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.
Delphi Alternatives — Similar Developer Tools Servers
Looking for alternatives to Delphi? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
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.
Set Up Delphi in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.