npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

delphi-mcp-server

v1.2.1

Published

MCP server for Delphi development — VCL, FMX, RTL knowledge base, code generation, and project analysis

Downloads

251

Readme

delphi-mcp-server

The most comprehensive MCP server for Delphi development — 43 tools covering VCL, FireMonkey (FMX), and RTL knowledge, code generation, compile-and-fix loops, project analysis, and a 777-symbol third-party library knowledge pack. Ships with a native RAD Studio IDE plugin and a Claude Code marketplace plugin.

Status: v1.2.0 — Claude Code plugin + knowledge_pack_search tool + Enterprise tier. Windows-only for compile (Delphi 12 + 13); knowledge/search tools work anywhere. Commercial use requires a subscription (see LICENSE + docs/PRICING.md + docs/ENTERPRISE.md).


Why this one

There are a handful of Delphi MCP servers out there (mcp-delphi, delphi-compiler-mcp, GDK Delphi-MCP-Server, MCPConnect). Here's what's different about this one:

| Capability | This project | Typical alternatives | |---|---|---| | Tool count | 43 | 3–10 | | Third-party symbol knowledge | 777 across 8 curated packs | ❌ | | Component knowledge base | 100+ VCL/FMX components, 60 RTL units, 100 error codes | Minimal or none | | Auto-fix compile errors | Yes, with 777-symbol knowledge pack spanning VCL / FMX / RTL / DevExpress VCL / FastReport VCL / Indy 10 / Spring4D / TMS VCL+FNC | No | | Project HEALTH.md dashboard | Yes (LOC, dependency graph, 3rd-party footprint, knowledge-pack coverage, code-smell flags, delta vs previous runs) | No | | Native RAD Studio IDE plugin | Yes (dockable form, one-click tool access) | No | | Delphi 13 support | Yes | Usually D10.x / D11 only |

We'll keep this table honest. If a competitor ships something useful, it'll show up here.


What's inside

Knowledge & lookup

| Tool | What it does | |---|---| | component_info | Properties, events, methods for any VCL/FMX component | | component_list | Browse 100+ components by framework and category | | explain_error | E/W/H codes with causes and fix suggestions | | rtl_search | Find functions/classes/types across RTL, VCL, FMX | | list_patterns | Available design patterns | | list_form_templates | Available form templates |

Code generation

| Tool | What it does | |---|---| | generate_form | Forms from templates (login, CRUD, master-detail, ...) | | generate_unit | Units (class, interface, record, datamodule) | | code_patterns | Singleton, repository, MVVM, DI, and more — in Delphi | | scaffold_interface | Interface + implementation skeleton |

Project analysis & compile

| Tool | What it does | |---|---| | project_analyze | Structure, conventions, dependencies | | extend_project | Add features respecting existing conventions | | compile_project | Invoke DCC32/DCC64 and parse output | | auto_fix_compile | Iterative compile → parse errors → add missing units → recompile | | lint_delphi | Style and smell checks | | memory_leak_detector | Heuristic leak detection (best-effort, see docs/TOOLS.md) | | db_connect_and_discover | Inspect SQL Server schema (requires ODBC driver) |

Full inventory with maturity tags in docs/TOOLS.md. Honest scope boundaries in docs/LIMITATIONS.md.


Requirements

  • Windows 10/11 (Delphi toolchain is Windows-only)
  • Node.js ≥ 18
  • Delphi 12 and/or 13 for compile/fix tools (knowledge tools work without Delphi installed)
  • SQL Server ODBC driver only if using db_connect_and_discover

Install

npm install -g delphi-mcp-server

Or via npx:

npx delphi-mcp-server

On first run, the server auto-detects installed Delphi versions from the Windows registry and writes delphi-mcp.config.json in the current directory. You can edit it to override paths.


Configure your MCP client

Claude Code — one-command plugin install

/plugin marketplace add bogdanpricop/delphi-mcp-server
/plugin install delphi-mcp-server@delphi-mcp-server

This installs the MCP server configuration and six Delphi slash commands: /delphi-health, /delphi-fix, /delphi-lookup, /delphi-audit, /delphi-pack, /delphi-about. Pairs cleanly with adrianosantostreina/delphi-dev — install both for style-guide auto-activation and MCP tools.

Claude Code — manual MCP registration

If you prefer to register the server without the plugin wrapper:

{
  "mcpServers": {
    "delphi": {
      "command": "npx",
      "args": ["-y", "delphi-mcp-server"]
    }
  }
}

Claude Desktop

Add the same block to claude_desktop_config.json.

RAD Studio IDE plugin (HTTP bridge)

The IDE plugin talks to the server over HTTP on port 19621. Install and run the bridge:

delphi-mcp-server --http

Build the plugin first. The .bpl is not bundled in the npm package. Open ide-plugin/DelphiMCPBridge.dproj in RAD Studio and build Win32 / Release. Then run:

.\scripts\install-ide-plugin.ps1

Full install + troubleshooting guide: docs/IDE_PLUGIN_INSTALL.md. Pre-built .bpls per Delphi version are attached to each GitHub Release if you don't want to build from source.


Quick examples

> What properties does TDBGrid have?
→ component_info

> What does E2003 mean?
→ explain_error

> Which unit has HTTP client support?
→ rtl_search  → System.Net.HttpClient

> Create a login form for VCL
→ generate_form

> Compile C:\Projects\MyApp\MyApp.dproj and fix missing units
→ auto_fix_compile

Local development

git clone https://github.com/bogdanpricop/delphi-mcp-server.git
cd delphi-mcp-server
npm install
npm run build
npm test

Scripts: dev (watch), typecheck, build, test, start, start:http.


License & commercial use

Licensed under the Business Source License 1.1 (see LICENSE).

  • Free for personal evaluation, education, and non-commercial open-source projects — 15 tools available.
  • Pro subscription ($49/dev/mo) unlocks all 43 tools + the 777-symbol knowledge pack + HEALTH.md dashboard for commercial production use. See docs/PRICING.md.
  • Enterprise tier ($199/dev/mo, 5+ seats) adds SLA, on-prem deployment, compliance artefacts, and custom knowledge-pack coverage. See docs/ENTERPRISE.md.
  • Automatically converts to Apache 2.0 on 2029-04-18.

For commercial licensing, contact: [email protected]


Tech stack

TypeScript · Node.js · @modelcontextprotocol/sdk · tsup · vitest · Delphi 12/13 FMX + VCL (IDE plugin)