MCP Catalogs
Home

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.

developer-toolsops-infraother
5
Forks
1
Open issues
9 mo ago
Last commit
2d ago
Indexed

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:

you:Automating build processes for Delphi applications via MCP tools in AI assistants
you:Cleaning build artifacts from Pascal projects without manual IDE intervention
you:Building Lazarus projects with specific configurations remotely through MCP protocol
you:Does this work on Mac or Linux?
you:Can I build projects without RAD Studio?

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 README
  • delphi.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

shell-mcpgithub-mcpfile-system-mcp

Installation

  1. Install Node.js >= 18
  2. Clone repository: git clone https://github.com/flydev-fr/mcp-delphi
  3. Install dependencies: pnpm install or npm install
  4. Build: pnpm run build
  5. Configure environment variables in .env file (paths to rsvars.bat and MSBuild)
  6. 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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.