Skip to content

Delphi MCP Server

Native Delphi Server implementation of the Model Context Protocol (MCP)

Install: claude mcp add --transport http delphi-mcp-server http://localhost:3000/mcp

Works with Claude Code · 140 GitHub stars

Install

$claude mcp add --transport http delphi-mcp-server http://localhost:3000/mcp

Install command taken from the project's README or registry entry. Always review code before running it.

Delphi MCP Server

MCP

A Model Context Protocol (MCP) server implementation in Delphi, designed to integrate with Claude Code, Codex, and other MCP-compatible clients for AI-powered Delphi development workflows.

Table of Contents

Features

  • Dual-era MCP: Serves MCP 2026-07-28 (per-request _meta, server/discover) and the initialize-based revisions 2025-06-18 and 2025-11-25 on the same endpoint and the same stdio process; see Protocol versions
  • Dual Transport Support: HTTP (Streamable HTTP with SSE) and STDIO (stdin/stdout)
  • Dual Response Mode: Supports both JSON-RPC and Server-Sent Events in the same server
  • Tool System: Extensible tool system with RTTI-based discovery and execution
  • Resource Management: Modular resource system supporting various content types
  • Security: Origin and Host validation against DNS rebinding on every request, loopback binding by default, CORS headers for browser clients, request size and nesting limits, opt-in bearer authentication with OAuth 2.1 resource-server discovery
  • Multi round-trip requests, streaming and subscriptions: InputRequiredResult with signed requestState, progress and log notifications on the response stream, subscriptions/listen for change notifications
  • Native HTTP stack: Indy HTTP server with keep-alive, no external runtime
  • Optional Parameters: Support for optional tool parameters using custom attributes
  • Cross-Platform: Supports Windows (Win32/Win64) and Linux (x64)

Requirements

  • Delphi 11 Alexandria or later. The source uses no language feature beyond inline variables (10.3) and no RTL unit newer than Delphi 11; development happens on Delphi 12 Athens, which is what the default project files target.
  • Windows (Win32/Win64) or Linux (x64)
  • No external dependencies (all required libraries included)

Building with Delphi 11 Alexandria

build.bat and build-tests.bat compile the .dpr directly, so only DELPHI_PATH needs to point at your installation:

set DELPHI_PATH=C:\Program Files (x86)\Embarcadero\Studio\22.0
build.bat

For the IDE and for the Linux64 build, open src/MCPServer.D11.dproj (tests: tests/MCPServerTests.D11.dproj) instead of the Athens project files. They carry the same units and settings, write their output to a separate D11 subdirectory, and exist because Alexandria will not load a ProjectVersion 20.3 project file.

Installation

For Standalone Usage

Similar plugs

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype…

Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发

MCP serverDatabases+105 this week

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

Explore related