Daofy MCP

MCP server for Delphi and Lazarus/Free Pascal: project builds, docs and code search, DFM editing and GUI automation tests.

  • 109 ★ on the repository
  • Last commit
  • MIT
MCP server

Broad access

Why this level

  • The server runs the compiler and built programs, edits project files and automates the GUI on your machine.
All reasons and checks

chinawsb/daofy

Install

Manual install

pip install daofy-for-delphi

Python 3.10 to 3.14 is required; Delphi and Lazarus compilers must already be installed.

Access and checks

How we review

Broad accessThe tool can change data, run commands or handle secrets.

  • The server runs the compiler and built programs, edits project files and automates the GUI on your machine.

This is third-party code. Review the repository files before installing.

What it does

Daofy lets an AI assistant build Delphi and Lazarus/Free Pascal projects and search knowledge right from the conversation, without switching to the IDE or command line. The server builds a whole project (`.dproj`, `.dpr`) through MSBuild with build events, checks a single `.pas` file, finds installed compilers on its own and resolves third-party library paths so the command line does not balloon. The built-in knowledge base semantically searches classes and functions in the Delphi sources, and builds a separate base for your project that tracks third-party libraries. CHM and FPC documentation can be searched in full text. There are tools for DFM components with PAS sync, formatting through pasfmt, component packages, coding rules and GUI and console automation with `click`, `type`, `waitfor` and `capture` scripts. Language plugins enable themselves when the matching toolchain is installed.

Who it is for. Delphi and Lazarus/Free Pascal developers who want an agent to build, check and edit projects.

Good fit when

  • An agent is asked to build a `.dproj` project and analyze compiler errors.
  • You need search across Delphi source classes and functions and CHM documentation.
  • A DFM component has to be added or changed with the PAS file updated in sync.
  • A script tests a program's interface: click, type, wait and capture.

Not a fit when

  • Development is in another language; the server knows only Delphi and Lazarus/FPC.
  • No Delphi or Lazarus compiler is installed and there is nothing to build with.
  • GUI automation tests cannot run on a machine with sensitive data.

Example request

Build MyApp.dproj, show the compiler errors and find the TStringList class in the knowledge base.

MCP

Transport
stdio
Authentication
not required

Limitations

Python 3.10 to 3.14 and installed development tools are required: Embarcadero Delphi or Lazarus with Free Pascal. The server finds Delphi compilers through the Windows registry. 7-Zip is needed for unpacking data and can be placed in `tools/7z/`. The knowledge base has optional packages for Word and PDF, such as `python-docx` and `PyMuPDF`. The tools edit project files and run the compiler and built programs, including GUI automation, so work under version control. The README and texts are in Chinese. The README names a sponsor, an advertisement for a model routing service that has nothing to do with how the server works.

How to disable. Remove the connection in client settings and the package with `pip uninstall daofy-for-delphi`. Project knowledge bases sit next to the projects and are deleted by hand.

FAQ

How do I install Daofy?

Run `pip install daofy-for-delphi`. The README also has a command with a PyPI mirror for users in China. Then configure your client per the assistant setup section.

What does check_environment do?

It diagnoses the build environment, detects installed compilers and installs the pasfmt formatter. Run it first to confirm the server sees your Delphi.

Which languages are supported?

Delphi (Embarcadero) and Lazarus/Free Pascal. Each language plugin turns on automatically when its toolchain is installed.

How is a project built?

With the `delphi_project` tool through MSBuild when available, handling build events. Lazarus has `lazarus_compile` based on `lazbuild`.

Can I test a program's interface?

Yes, with the `automate_delphi` tool: scripts using `click`, `type`, `waitfor`, `rget` and `capture` drive a Delphi program's GUI or console.

Discussion

No questions or reviews yet.

MCP server that turns a RAD Studio machine into a remote backend for agents: read, safe editing, MSBuild builds, git and deploy

MCP serverBroad access23Repository stars

A Claude Code plugin that turns on a Delphi expert mode: code style, audit, review, DUnitX tests and end-to-end app checks

PluginExtended access91Repository stars

MCP server for CODESYS V3.5: Claude reads and edits Structured Text, compiles with the real compiler and runs the simulation.

MCP serverBroad access133Repository stars

An MCP server that knows every class, table and form in your D365FO code and checks X++ signatures before the agent writes code

MCP serverBroad access171Repository stars

A debugger MCP server: the agent sets breakpoints, steps through code and reads variables of a live program over DAP.

MCP serverBroad access107Repository stars

A configurator that reads your repo and sets up agents, skills, MCP servers and rules for its stack across several assistants

CLIExtended access48Repository stars

README in short

The server combines compilation, Delphi and Free Pascal knowledge, DFM editing and interface automation for working with an agent without the IDE.

README badge

Report a problem