mcp s
MCP servers developed in Delphi
claude mcp add --transport stdio code4delphi-mcp-servers docker run -i code4delphi/mcp-servers-database:latest \ --env DB_CONNECTION_STRING="Database connection string or placeholder"
How to use
This MCP server repository provides practical Delphi-based MCP (Model Context Protocol) servers that expose common tooling to LLMs. The available examples cover database access (via STDIO or HTTP), filesystem operations, current date/time, and machine information. Each server implements the MCP transport (STDIO, SSE, or HTTP) and can be invoked by an MCP client to perform standardized actions like querying a database, reading or writing files, or retrieving system information. You can start a server using the Docker image shown in the configuration, or adapt the approach to run a local binary if you build from the Delphi source.
To use, connect your MCP client to the server using the appropriate transport. For example, the Database server can be accessed via STDIO for local inter-process communication or via HTTP if you deploy the SSE/HTTP variant. The client sends MCP requests following the protocol, and the server returns structured responses with the requested data or results. This collection enables LLM-driven workflows for data access, file management, and system introspection without hard-coding tool integrations into the model.
How to install
Prerequisites:
- Docker installed on your machine (or a Delphi-compiled server if you build locally).
- Basic familiarity with MCP transports (STDIO, SSE, HTTP).
Install and run (Docker):
- Ensure Docker is running on your system.
- Pull and start the Database MCP server using the provided image (as referenced in the mcp_config): docker run -i code4delphi/mcp-servers-database:latest
- Verify the server is listening on the expected transport (STDIO, SSE, or HTTP) per the server variant you chose.
- Connect an MCP client to the server using the transport your deployment uses (STDIO for local inter-process, SSE/HTTP for remote access).
If you prefer to build from Delphi sources:
- Install the Delphi toolchain and dependencies mentioned in the repository.
- Build the MCP Server project (Database, FileSystem, DateTime, etc.).
- Start the resulting executable and connect with the corresponding MCP client.
Additional notes
Tips and considerations:
- The repository lists multiple MCP server examples (Database, Database-HTTP, FileSystem, DateTime, ServerInfoPC). Choose the variant that matches your deployment needs (STDIO for local, HTTP/SSE for remote).
- When using Docker, ensure the image tags align with the version you require. If needed, build your own image from the Delphi build output.
- If you use HTTP/SSE transports, ensure proper network exposure and security considerations (authentication, TLS as needed).
- For database access servers, configure your database connection strings and permissions through environment variables or mounted configurations as supported by the image.
- Review the MCP transport details (STDIO vs SSE vs HTTP) to select the transport that best fits your orchestration and LLM integration workflow.
Related MCP Servers
Delphi
Native Delphi Server implementation of the Model Context Protocol (MCP)
altium
Altium Model Context Protocol server and Altium API script
DMCPServer
Dinos MCP Server, make your code, on MCP Action and execute by AI
mORMot
Full MCP 2025-06-18 specification implementation for Delphi with mORMot2
Delphi-LSP
Allows AI agents to talk to Delphi 11, 12, 13 LSP Server (DelphiLSP.exe <- Requires a valid Delphi/Embarcadero license !)