omnibrain 18 Posted March 25 Has anybody already implemented a MCP https://modelcontextprotocol.io/introduction Server in Delphi? Any tips, or quickstarts? Share this post Link to post
Sherlock 679 Posted March 25 That site has been up for a week. You can work fast with Delphi, but you can't work magic. Share this post Link to post
Die Holländer 82 Posted March 25 13 minutes ago, omnibrain said: Has anybody already implemented a MCP https://modelcontextprotocol.io/introduction Server in Delphi? No, you can start the implementation. 1 Share this post Link to post
Rollo62 563 Posted Wednesday at 08:15 AM I'm unsure what advantages to expect from this Are'nt these just several independent server layers between the client and the LLMs, to unify the LLM communications? Currently they talk only about Claude, it seems very Claude centric to me. Do these MCP servers have any REST API or whatsoever, maybe I have overseen this? For the use of agents, wouldn't it make more or same sense to have these features built in the client SDK ( Delphi Code ) in the first place? Then your app would have local, full control over all LLM's and DB's. Yes, a server solution might have some advantages too, but they are not good pointing them out very precisely. I would start with unifying access to different LLMs by implementing a general Delphi Interface for several LLM implementations, to have a compatible interface between several LLM ( if that will be really possible ). Perhaps I completely misunderstood the deeper idea behind this additional layer of complexity, then please let me know. Share this post Link to post
omnibrain 18 Posted Wednesday at 11:16 AM 2 hours ago, Rollo62 said: Are'nt these just several independent server layers between the client and the LLMs, to unify the LLM communications? That's exactly what it is for. Unified way of discovery and access. 2 hours ago, Rollo62 said: Currently they talk only about Claude, it seems very Claude centric to me. Anthropic wrote the spec but others, like Cursor adapted it. It's becoming some sort of standard way of tool and content discovery and access. 2 hours ago, Rollo62 said: Do these MCP servers have any REST API or whatsoever, maybe I have overseen this? It's a JSON RPC 2.0 API. 2 hours ago, Rollo62 said: For the use of agents, wouldn't it make more or same sense to have these features built in the client SDK ( Delphi Code ) in the first place? Then your app would have local, full control over all LLM's and DB's. If I want to integrate an agent into my software, I could do that. But I want to implemented several things: a) a way for any Agent to interact with (aspects of) my software. b) a MCP Server for the DBMS we use so I can use the (meta) information during development using agents or Cursor. 2 hours ago, Rollo62 said: I would start with unifying access to different LLMs by implementing a general Delphi Interface for several LLM implementations, to have a compatible interface between several LLM ( if that will be really possible ). This has nothing to do with MCPs, but most cloud systems use a REST API that's similar to OpenAI's. So no need for that. To use local LLMs there are a few competing approaches possible, but you can leave the heavy lifting to libraries like llama.cpp or even use something like ollama and just use this API. Share this post Link to post
Geoffrey Smith 47 Posted Saturday at 11:45 AM On 3/25/2025 at 9:43 PM, omnibrain said: Has anybody already implemented a MCP https://modelcontextprotocol.io/introduction Server in Delphi? Any tips, or quickstarts? I've written some code, which is part of my AI demonstration project at https://github.com/geoffsmith82/Symposium2023/ . I currently have a Weather MCP demo. See https://github.com/geoffsmith82/Symposium2023/tree/main/MCP for the demo project code and https://github.com/geoffsmith82/Symposium2023/tree/main/Libs/MCP for the reusable section. I have had it running in Claude desktop. To get the weather you will need to sign up to https://www.weatherapi.com/signup.aspx and get an API Key. Compile and run the TestAPI project and add the API Key via the Settings->API Keys menu item and find "WEATHER_API_KEY" in the list and add in the key there. In the claude_desktop_config.json, it will need to look something like below. Make sure you update the path to were the exe file is actually located. { "mcpServers": { "WeatherMCPService": { "command": "Z:\\Programming\\Symposium2023\\MCP\\WeatherMCPService", "protocol": "stdio", "args": [] } } } Here is what it looks like in claude desktop. Currently working on some other ideas for an MCP, but the code should be enough to get you started. 1 1 Share this post Link to post