Daofy logo

Daofy

Compiles Delphi and Lazarus projects, searches code and documentation, edits project files, and supports Delphi automation through MCP.

Install Daofy

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "daofy": {
      "command": "uvx",
      "args": [
        "daofy-for-delphi"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio daofy -- uvx daofy-for-delphi

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx daofy-for-delphi

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

daofy MCP server connects AI assistants to Delphi and Lazarus/Free Pascal development workflows on Windows. It can compile projects, inspect and modify source files, manage components, query code and documentation knowledge bases, and run Delphi GUI or console automation scripts. Reach for daofy when an assistant needs compiler access, project-aware code search, or build diagnostics without switching to an IDE. Delphi compilers are detected from the Windows registry, while Lazarus/FPC support activates when the toolchain is installed.

Use cases

  • Compile Delphi projects and inspect build errors
  • Search Delphi, Lazarus, FPC, and project documentation
  • Edit Delphi units and component forms with backups
  • Run scripted GUI or console tests against Delphi applications
  • Build project and third-party source knowledge bases

Key features

  • Delphi and Lazarus/FPC project compilation
  • Compiler detection and build-event handling
  • Project-aware source and documentation search
  • Delphi file, component, and structured-content editing
  • Scripted Delphi GUI and console automation
  • RTTI discovery and runtime calls

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16h ago via OSV.dev · daofy-for-delphi (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars111Stargazers on the source repository.
Last commitTodayMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.

How Daofy works

What daofy does

daofy exposes Delphi and Lazarus/Free Pascal development operations through the Model Context Protocol. Delphi support covers whole-project builds for .dproj and .dpr projects, single-unit compilation, compiler configuration, environment checks, project auditing, AST and runtime inspection, file editing, formatting, backups, DFM conversion, component management, and package operations. Lazarus/FPC support includes .lpi and .lpr project compilation, project metadata inspection, source search, and file operations.

Its knowledge-base features index Delphi source, Lazarus and FPC source, project code, third-party libraries, examples, and documentation. Searches can cover classes, functions, code, API references, examples, and general documents. Coding-rule queries provide default or project-specific Delphi and Lazarus guidance. Delphi automation can drive GUI or console programs with scripted actions, assertions, screenshots, waits, and RTTI property access.

How it works

The server is implemented in Python and communicates with MCP-compatible AI clients. On Windows, it looks for installed Delphi compilers through the registry, PATH, and common installation directories. Lazarus/FPC operations use lazbuild.exe when Lazarus is installed. Delphi project builds prioritize MSBuild and can process dependencies, build events, search paths, conditional symbols, optimization, debug information, and warning settings.

Knowledge bases are stored under the project’s data/ directory, with project-specific indexes in <project>/.delphi-kb/. Source changes can trigger incremental updates. Vector indexes use ZVec, while the experience store uses SQLite. Background operations such as knowledge-base construction can be submitted asynchronously and monitored with async_task.

Setup and configuration

Install the packaged server with pip:

Terminal
pip install daofy-for-delphi

A source installation uses a Git checkout, a Python virtual environment, and the dependencies in requirements.txt. The runtime requires Python 3.10 through 3.14, Windows, and Git. Delphi compilation requires a Delphi compiler; Lazarus compilation additionally requires Lazarus/FPC. Seven-Zip is optional and is used to extract CHM help files.

Compiler settings can be detected automatically or managed in config/compilers.json. Knowledge-base configuration files are generated when indexes are first built. Optional document formats require additional packages: python-docx for DOCX, a legacy Word converter for DOC, PyMuPDF or pdfplumber for PDF, and BeautifulSoup for EPUB.

Tools and capabilities

  • delphi_project for compilation, project configuration, creation, auditing, AST inspection, and runtime checks.
  • delphi_kb and lazarus_kb for source, documentation, class, function, and example searches, plus index construction.
  • delphi_file, lazarus_file, manage_component, and structured_content for source and structured-file operations.
  • automate_delphi for scripted GUI and console testing, including process reuse with keep_alive.
  • delphi_rtti for discovering and calling runtime capabilities exposed by Delphi applications.
  • code_hosting, package, check_environment, tool_help, async_task, ocr, experience, daofy_update, and generate_copyright for repository, environment, background-task, image, memory, update, and document workflows.

Limitations and notes

Delphi and Lazarus compilation depend on locally installed Windows toolchains. CHM knowledge-base construction requires Seven-Zip. Example indexes are intended for full-text search rather than structured class or function analysis. The server stores knowledge-base data locally in project and data/ directories, so indexing can take several minutes for large documentation or source collections.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Daofy

daofy is an MCP server that connects AI assistants to Delphi and Lazarus/Free Pascal toolchains. Its main tools compile projects, inspect and edit files, search source and documentation knowledge bases, manage components, and automate Delphi GUI or console applications on Windows.

Install it from PyPI with `pip install daofy-for-delphi`. You can also clone the repository, create a Python virtual environment, activate it, and install `requirements.txt`. The runtime requires Python 3.10–3.14, Windows, and Git.

daofy supports Delphi 2005 through Delphi 13 and Lazarus/Free Pascal. Delphi installations can be detected through the Windows registry, PATH, and common installation directories. Lazarus compilation uses `lazbuild.exe` when Lazarus is installed.

Yes. `delphi_kb` can build and search Delphi source, API documentation, project and third-party code, and example repositories. General document indexing supports formats including CHM, HTML, Markdown, PDF, DOCX, EPUB, and web pages, with some formats requiring optional dependencies.

Yes. `automate_delphi` runs JSON-driven GUI or console tests with actions such as clicking, typing, waiting, RTTI property access, screenshots, and assertions. GUI automation uses a named pipe and requires Delphi applications to integrate the `DaofyAutomation` unit.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDaofy AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/daofy?style=directory)](https://allmcps.com/mcp/daofy)
HTML Embed
<a href="https://allmcps.com/mcp/daofy"><img src="https://allmcps.com/api/badge/daofy?style=directory" alt="Daofy on AllMCPs" /></a>