Delphi

v1.0.0Developer Toolsstable

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

delphimcpmcp-serverpascal
Share:
119
Stars
0
Downloads
0
Weekly
0/5

What is Delphi?

Delphi is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to native delphi server implementation of the model context protocol (mcp)

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

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Native Delphi Server implementation of the Model Context Pro

Use Cases

Native Delphi server implementation of the Model Context Protocol.
GDKsoftware

Maintainer

LicenseMIT
Languagepascal
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx delphi-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Delphi

The Delphi MCP Server is a native Pascal/Delphi implementation of the Model Context Protocol, providing a working HTTP and stdio MCP server built entirely with Delphi and Free Pascal. It ships with four example tools (echo, get_time, list_files, calculate) and four resources (project info, readme, recent logs, server status) to demonstrate the protocol, and serves as a foundation for Delphi developers who want to build MCP-compatible services using their existing Pascal codebase. Teams maintaining legacy Delphi applications can extend this server to expose business logic to any MCP-compatible AI client.

Prerequisites

  • Delphi IDE (RAD Studio) or Free Pascal / Lazarus installed for compilation
  • Git to clone the repository
  • An MCP-compatible client such as Claude Desktop or Claude Code to connect
  • Windows (primary target), with Linux 64-bit also supported via cross-compilation
1

Clone the repository

Clone the Delphi MCP Server repository to your development machine.

git clone https://github.com/GDKsoftware/Delphi-MCP-Server.git
cd Delphi-MCP-Server
2

Build the server on Windows

Run the provided build script to compile the Delphi source into an executable.

build.bat
3

Build for Linux 64-bit (optional)

Cross-compile a Linux binary using the build script with the Release Linux64 target.

build.bat Release Linux64
4

Start the server in HTTP mode

Run the compiled executable without arguments to start the HTTP MCP server. It will listen on port 3000 by default.

.\DelphiMCPServer.exe
# Server will be available at: http://localhost:3000/mcp
5

Add the server to Claude Code via HTTP transport

Register the running Delphi MCP server with Claude Code using the HTTP transport flag.

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

Configure SSL (optional)

To enable HTTPS, edit the settings.ini file in the server directory and set Enabled=1 under the [SSL] section, providing paths to your CertFile and KeyFile.

Delphi Examples

Client configuration

Claude Desktop config connecting to the Delphi MCP server running in HTTP mode on localhost.

{
  "mcpServers": {
    "delphi-mcp-server": {
      "command": "claude",
      "args": ["mcp", "add", "--transport", "http", "delphi-mcp-server", "http://localhost:3000/mcp"]
    }
  }
}

Prompts to try

These prompts test the four example tools and four resources included in the Delphi MCP Server.

- "Echo the message 'Hello from Delphi' back to me"
- "What is the current server time?"
- "List the files in the server's working directory"
- "Calculate 42 * 7 + 15"
- "Show me the project info resource"
- "Get the server status"
- "Show me the recent server logs"

Troubleshooting Delphi

build.bat fails with 'compiler not found' or Delphi path errors

Ensure Delphi RAD Studio or Free Pascal is installed and the compiler (dcc32.exe or fpc) is on your system PATH. Update any path references in build.bat to match your installation directory.

MCP Inspector or Claude Code cannot connect to http://localhost:3000/mcp

Verify the server process is running (check Task Manager on Windows). Confirm port 3000 is not in use by another application: netstat -ano | findstr :3000. Check the settings.ini file for any configured port overrides.

STDIO mode not working with Claude Desktop

For stdio mode, run the executable with the --stdio flag: .\DelphiMCPServer.exe --stdio. In claude_desktop_config.json set 'command' to the full path of the executable and 'args' to ['--stdio'].

Frequently Asked Questions about Delphi

What is Delphi?

Delphi is a Model Context Protocol (MCP) server that native delphi server implementation of the model context protocol (mcp) It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Delphi?

Follow the installation instructions on the Delphi GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Delphi?

Delphi works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Delphi free to use?

Yes, Delphi is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

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

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Delphi?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides