Analysis updated 2026-07-24
Expose custom tools from a Pascal desktop app so Claude Code or another MCP client can call them.
Build an AI-assisted automation server in Pascal that handles long-running background tasks.
Learn how the Model Context Protocol works by studying and modifying the included echo example.
Integrate AI tool-calling into an existing Free Pascal or Lazarus Windows application.
| prairiedog2k/fpc-mcp-server | vincitamore/pascal-gba | csm101/delphi-visual-studio-code-debugger | |
|---|---|---|---|
| Stars | 0 | 1 | 6 |
| Language | Pascal | Pascal | Pascal |
| Setup difficulty | moderate | hard | moderate |
| Complexity | 3/5 | 4/5 | 4/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires the Lazarus IDE and Free Pascal Compiler on a Windows 64-bit system, no extra packages are needed beyond the standard Pascal library units.
This repository provides a reusable server for projects built with Free Pascal and Lazarus, two tools for writing Pascal applications. The server implements something called the Model Context Protocol, or MCP, which lets an application expose its own tools to a client program like Claude Code. The code was originally written for a specific project involving Cheat Engine, then pulled out into this standalone package so other Pascal applications can use it without rebuilding the underlying plumbing. The server handles the communication layer. It runs an HTTP server, frames messages using JSON-RPC, manages sessions between client and server, dispatches tool requests to the right handler, and can run longer tasks in the background as async jobs. An application that wants to offer tools to an MCP client only needs to register its own tool functions. The repository includes a small example program called echo_server that registers a single tool which simply sends back whatever text it receives. This example proves the full round trip works, from client request to server response. Building the project requires Lazarus and the Free Pascal Compiler, tested on Windows 64-bit. The build process uses standard Pascal library units for HTTP and JSON handling, so no extra packages are needed. The server code uses Windows-specific networking APIs, which means this project currently runs only on Windows. That limitation comes from the Cheat Engine fork it was originally extracted from. To extend the server, an application calls a registration function from its own code to add a new tool. It can also set the server name and version, and optionally associate each session with a target identifier such as a process ID. The repository organizes its code into several units: one for the HTTP server, one for JSON-RPC handling, one for the tool registry, one for session objects, one for async job handling, one for result formatting, and one for running tasks on the main thread. The tool registry is the main extension point where applications plug in their own functionality.
A reusable Pascal server that lets your Free Pascal or Lazarus applications expose custom tools to AI clients like Claude Code using the Model Context Protocol.
Mainly Pascal. The stack also includes Pascal, Free Pascal, Lazarus.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.