MARS

Design and mediaAgent frameworks and SDKs

REST framework for Delphi: JAX-RS style resources and routes, servers and clients, JWT, OpenAPI 3, FireDAC and Devart UniDAC/MyDAC/IBDAC, SSE, MCP servers for AI agents. Windows, Linux, Docker.

Your AI app calls the MARS MCP server, which does the design and media and agent frameworks and SDKs work and sends the result back to the chat.

About MARS

MARS is a community MCP server from andrea-magni, filed in our directory under design and media and agent frameworks and sdks. REST framework for Delphi: JAX-RS style resources and routes, servers and clients, JWT, OpenAPI 3, FireDAC and Devart UniDAC/MyDAC/IBDAC, SSE, MCP servers for AI agents. Windows, Linux, Docker.

At a glance

Publisher
andrea-magni (community)
Runs
See the README for setup
Written in
Pascal
License
MPL-2.0
GitHub stars
400

How to set up MARS

  1. Follow the install steps in the MARS README; it is written in Pascal, so have that toolchain ready.
  2. Check the MARS README for keys or settings; the registry lists none that MARS requires.
  3. Add MARS to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the MARS tools to confirm the connection.
  5. Run one read-only task with MARS first, and keep your app asking before each tool call until the results look right.

MARS compared with similar servers

  • MCprep by Moo-Ack-Productions has fewer GitHub stars than MARS (393 against 400); both are community servers, and both run locally.
  • Bambu Printer by DMontgomery40 has more GitHub stars than MARS (405 against 400); both are community servers, and both run locally.
  • BeatDesign by BeatAPI has fewer GitHub stars than MARS (389 against 400); both are community servers, and both run locally.

Before you connect MARS

  • Give MARS its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each MARS tool call until you trust what it does with them.
  • Treat text that MARS fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for MARS on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for MARS

How marketing and sales teams put MARS to work, by company size. Pick the size closest to yours and start MARS on one use case.

Small business

  • A small business can use MARS to resize and adapt one design for every channel instead of hiring for each version.
  • Owners can ask MARS to pull brand assets and make quick ad and social variations that still look on brand.
  • A small business with a developer can use MARS to build one focused agent, such as lead follow-up, without a big platform.
  • MARS runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Creative teams can connect MARS so agents produce variants for testing while designers keep control of the master files.
  • Marketing teams can use MARS to hand off designs to web and ads with specs attached, cutting review rounds.
  • Growth engineering teams can use MARS to build agents that combine CRM, analytics and content tools behind one workflow.
  • Start MARS on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can use MARS with brand rules and approved assets only, so generated work stays inside the brand system.
  • Large creative ops teams can use MARS to localize and version assets for many markets with review built in.
  • Enterprises can build on MARS with their own identity, policy and evaluation layers, so agents meet the same bar as other software.
  • MARS is a community server, so have security review the code and pin a version before MARS touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

MARS README

From andrea-magni/MARS on GitHub, shared under its MPL-2.0 license. Images are left out; the original has them.

README.md

MARS-Curiosity: REST library for Delphi

MARS-Curiosity is an open source (MPL 2.0) library to build REST servers and REST clients with Embarcadero Delphi. Endpoints are plain Delphi classes with attributes (JAX-RS style): MARS does routing, parameter binding, JSON serialization, JWT authentication, OpenAPI 3 and hosting, on Windows and Linux.

📖 Documentation: andrea-magni.github.io/MARS · Why MARS? · FAQ · Release notes

type
  TPerson = record
    Name: string;
    Age: Integer;
  end;

  [Path('people'), RolesAllowed('standard')]
  TPeopleResource = class
  public
    [GET, Path('{id}'), Produces(TMediaType.APPLICATION_JSON)]
    function GetPerson([PathParam] id: Integer): TPerson;
  end;
curl -H "Authorization: Bearer $TOKEN" http://localhost:8080/rest/default/people/1
# {"Name":"Andrea","Age":42}

Features

  • Declarative REST resources: [Path], [GET]/[POST]/[PUT]/[PATCH]/[DELETE]/[QUERY], [Produces], [Consumes], path/query/header/cookie/form/body parameters, dependency injection with [Context].
  • Or routes in code (Express style): R.Get<TPerson>('people/{id:int}', ...), with path constraints, groups, middlewares and OpenAPI, next to the resources.
  • JSON to and from records, objects, arrays and datasets, with options per application; YAML and XML writers too.
  • Security: JWT authentication (Bearer header or cookie, key rotation, token renewal), role based authorization ([RolesAllowed], [Authenticated], [PermitAll], [DenyAll]).
  • OpenAPI 3 generated from your code, Swagger UI included; and the other way round, MARSgen: Delphi types and MARS servers (or whole projects) from OpenAPI 3.0/3.1 documents, types from JSON samples, a conformance check of a server against its document.
  • Data access with FireDAC and Devart UniDAC, MyDAC, IBDAC: return datasets as JSON, XML or native formats, parameters from the request, transactions, connections from the configuration; FireDAC clients send back deltas.
  • MCP servers for AI agents: expose Delphi methods and data as Model Context Protocol tools, resources and prompts (Claude, ChatGPT, Copilot, local models), with roles and OAuth 2.1.
  • Server-sent events, HTML and templates (WebStencils, htmx), static files.
  • Logging: JSON request/response logs for Grafana/Loki; client side logging of every request.
  • Client library: RAD components to call MARS and any other REST API, typed records, tokens, async calls, dataset sync with FireDAC, UniDAC, MyDAC and IBDAC.
  • Hosting: console, VCL/FMX, Windows service, Linux daemon (systemd, Docker), IIS ISAPI, Apache module, FastCGI; Indy or Delphi Cross Socket with HTTPS. See Deployment.
  • Tooling: setup with IDE integration, TMS Smart Setup, the MARSCmd project bootstrapper (also from the command line), Agent Skills for AI coding agents.

Delphi 10.4 Sydney to Delphi 13 Florence.

Installation

  1. Run the setup of the latest release
  2. Or use TMS Smart Setup (Delphi 10.4 and newer): tms server-enable community true, then tms install andreamagni.mars
  3. More info at documentation page

Get started

Bootstrap with MARSCmd

Run MARSCmd, pick a template (MARSTemplate with Indy, MARSTemplateDCS with Delphi Cross Socket, MARSTemplateRoutes with Indy and routes in code) and a name: you get a ready project group with the server in several flavors, a client and a test project. Then follow Your First Server.

AI Agent Skills

MARS ships Agent Skills for Claude Code and other AI coding agents: scaffold a new server or develop REST APIs (resources, JWT, FireDAC and Devart datasets, SSE, MCP, ...) with an AI assistant that knows MARS. From Claude Code:

/plugin marketplace add andrea-magni/MARS
/plugin install mars-curiosity@mars

See the Skills folder or the documentation page for manual installation and usage examples.

Documentation

The documentation site is built with VitePress from the docs/ folder and is published automatically to GitHub Pages on every change.

Forum

Official MARS Curiosity forum at Delphi-Praxis International

Contribution

It would be great if you would like to support this project. It's quite easy, and you can become better at Git, too.

Thanks

Most of the code has been written by the author (Andrea Magni) with some significant contributions by Nando Dessena, Stefan Glienke and Davide Rossi. Some of my customers actually act as beta testers and early adopters. I want to thank them all for the trust and effort.

Related Links

Embarcadero Delphi is a modern, powerful and effective language and development tool. Learn more about it at the following links:

Copyrights
  • The Delphi stylized helmet icon is trademark of Embarcadero Technologies.

Questions about MARS

What is the MARS MCP server?

REST framework for Delphi: JAX-RS style resources and routes, servers and clients, JWT, OpenAPI 3, FireDAC and Devart UniDAC/MyDAC/IBDAC, SSE, MCP servers for AI agents. Windows, Linux, Docker. MARS is maintained by andrea-magni on GitHub at andrea-magni/MARS, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the MARS MCP server?

MARS doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (andrea-magni/MARS). Like most servers, MARS ends with a command or URL you paste into your AI app's MCP config.

Does MARS need an API key?

The registry lists no required keys for MARS. Check the MARS README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is MARS an official MCP server?

No. MARS is a community server maintained by andrea-magni. Community servers can be excellent; read the code and the open issues before you give MARS access to company data.

What license is MARS under?

MARS is released under the MPL-2.0 license, according to its GitHub repository. The license covers the code of MARS; the service it connects to has its own terms.