Lazarus MCP Assistant logo

Lazarus MCP Assistant

Connects MCP-capable AI assistants to Lazarus IDE for Object Pascal editing, navigation, debugging, form design, builds, and inspection.

Install Lazarus MCP Assistant

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for lazarus-mcp-assistant, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

lazarus-mcp-assistant embeds an MCP server in Lazarus IDE and exposes 124 IDE tools over HTTP. AI clients can connect to the running IDE to read and edit files, navigate Object Pascal code, manage forms, build projects, and inspect debugger state without leaving Lazarus. Install it as a standard Lazarus package when you want an assistant to work against the live IDE, including unsaved editor buffers. It is tested on Windows and Debian 12 with Lazarus 4.6, FPC 3.2.2, and GTK2.

Use cases

  • Edit Object Pascal source through an AI assistant
  • Navigate declarations and references across a Lazarus project
  • Refactor routines and identifiers with IDE-aware tools
  • Inspect and modify live editor buffers and forms
  • Build and debug Lazarus projects from an MCP client

Key features

  • In-process HTTP MCP server for Lazarus IDE
  • 124 categorized IDE tools
  • Live-buffer-aware file reading
  • Object Pascal navigation and refactoring
  • Project, package, form, build, and debugger operations
  • Path restrictions, dry runs, and tool annotations

Tools80

What Lazarus MCP Assistant lets your agent do. Expand a tool for its parameters.

Self-reported~2.5k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

4/4 checks healthy over the last 13d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars19Stargazers on the source repository.
Last commit3d agoMost recent push to the default branch.
Tools exposed80Callable tools this server registers over MCP.

How Lazarus MCP Assistant works

What lazarus-mcp-assistant does

lazarus-mcp-assistant connects an MCP-capable AI assistant to a running Lazarus IDE instance. Its 124 tools cover editor operations, Object Pascal code analysis and refactoring, project and package work, form editing, building, debugging, and IDE inspection. The assistant can work with the live editor state, so reads prefer unsaved content in an open buffer over the copy on disk.

The design is intended for development inside Lazarus rather than for launching a separate command-line MCP process. Multiple AI sessions can connect to the same IDE, and the in-process server remains available between sessions.

How it works

The plugin runs an HTTP MCP server inside the Lazarus process. Lazarus starts the server, while the AI client connects to it; the client does not spawn the server as a subprocess. This arrangement allows an assistant to edit plugin source, rebuild the IDE, and reconnect after a restart.

Tools use names in the form <category>_<action>, and tools/list returns them with human-readable titles and annotations. The annotations identify read-only operations, potentially destructive operations, and calls that are idempotent. In Claude Code, the tools appear with the mcp__lazarus-ide__ prefix.

Setup and configuration

Install lazarus-mcp-assistant as a standard Lazarus package, then run Lazarus with the package enabled. Configure an MCP-capable client to connect to the HTTP server exposed by the IDE. The integration is tested on Windows and Debian 12 with Lazarus 4.6, FPC 3.2.2, and GTK2.

Source-file operations use absolute paths. The server recognizes both slash styles on Windows, and older parameter names such as file_path, path, and filename remain accepted for compatibility.

Tools and capabilities

The tool groups support work such as:

  • Reading, opening, creating, editing, saving, reverting, and closing editor files and tabs.
  • Moving the cursor, reading selections, and working with active editor buffers.
  • Inspecting unit interfaces, outlines, procedure syntax trees, declarations, references, descendants, overrides, dependencies, and unused symbols.
  • Renaming identifiers, extracting methods, changing uses clauses, editing statements, replacing procedure bodies, and adding class declarations.
  • Creating or moving project and package units, with package dependency updates where required.
  • Building and inspecting projects, working with forms, and using debugger-related IDE tools.

Edits made through the relevant editor, code, form, and project operations are constrained to approved project, package, repository, or temporary locations. The server also protects against ambiguous text replacements and reports errors instead of opening the IDE's file-not-found dialog.

Limitations and notes

The platform scope is Windows and Linux. macOS has not been tested or claimed, even though the code uses LCL and IDE interfaces and includes code for launching Claude Code in Terminal.app.

Some operations are intentionally destructive, including closing or reverting unsaved editors, Git checkout and reset, rebuilds, and installs. File-changing tools generally support undo or dry-run behavior where applicable, but actions such as package installation and project or package creation have separate access considerations. Creating or opening a project or package can make its directory the active writable location, so consent controls matter when that behavior needs to be restricted.

Changes made outside the IDE by another assistant or shell process are visible to the tools. Editor saves, reverts, and closes are not subject to the same path restriction as operations that write existing source content.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Lazarus MCP Assistant

lazarus-mcp-assistant is an MCP server that connects AI assistants to the Lazarus IDE over HTTP. Its main tools read and edit files, navigate and refactor Object Pascal code, manage projects and packages, work with forms, build projects, and inspect debugger state from the running IDE.

Install lazarus-mcp-assistant as a standard Lazarus package, enable it in Lazarus, and configure an MCP-capable client to connect to the HTTP server exposed by the IDE.

Yes, lazarus-mcp-assistant works with Claude Code. Its tools appear there with the `mcp__lazarus-ide__` prefix, and the server supports the in-process HTTP connection model required by the IDE plugin.

lazarus-mcp-assistant supports Windows and Linux. It has been tested on Windows and Debian 12 with Lazarus 4.6, FPC 3.2.2, and GTK2; macOS is not tested or claimed.

No, most source-changing tools are restricted to the active project, loaded package folders, the relevant Git working tree, or the temporary folder. Project and package creation or opening can establish a new active writable location, while save, revert, and close operations follow separate rules.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLazarus MCP Assistant AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/lazarus-mcp-assistant?style=directory)](https://allmcps.com/mcp/lazarus-mcp-assistant)
HTML Embed
<a href="https://allmcps.com/mcp/lazarus-mcp-assistant"><img src="https://allmcps.com/api/badge/lazarus-mcp-assistant?style=directory" alt="Lazarus MCP Assistant on AllMCPs" /></a>