Mort MCP logo

Mort MCP

Write, check, run, format, and inspect Mort code through MCP with compiler-backed documentation and standard-library lookup.

Install Mort MCP

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

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mort-mcp": {
      "command": "uvx",
      "args": [
        "mort-mcp"
      ],
      "env": {
        "MORT_HOME": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

The install command started, but didn't respond the way we expected when we tried to talk to it.

uvx mort-mcp

initialize succeeded but no response to tools/list.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The mort-mcp MCP server gives AI agents tools for writing and validating Mort, a statically typed systems language that compiles to C. It invokes the Mort compiler CLI for type checking, execution, formatting, C emission, version reporting, and access to standard-library and language documentation. Reach for it when an agent needs compiler-accurate feedback or reference material for Mort code, especially when the language is unfamiliar.

Use cases

  • Type-check Mort source before compiling
  • Run Mort programs with controlled input and arguments
  • Look up standard-library signatures and fields
  • Search Mort language rules and compiler examples
  • Inspect generated C for hosted or freestanding output

Key features

  • Compiler-backed Mort type checking
  • Mort program execution with timeout support
  • Generated C inspection
  • Official Mort formatting
  • Standard-library API lookup
  • Language documentation and example search

Tools8

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

Self-reported~186 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.

13/13 checks healthy over the last 48d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · mort-mcp (PyPI)

Adoption & maintenance

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

Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveStarted but did not complete the MCP handshake in our test.
Tools exposed8Callable tools this server registers over MCP.

How Mort MCP works

What mort-mcp MCP server does

The mort-mcp MCP server connects an MCP-capable agent to the Mort compiler and its supporting documentation. Mort is a statically typed systems language that compiles to C and is used for MORT OS. The server is designed to give an agent reliable feedback instead of requiring it to infer Mort syntax or APIs from another language.

It can validate source text or files, compile and execute programs, display generated C, apply the official formatter, inspect standard-library APIs, search reference documentation, read compiler examples, and report compiler and language versions. The tools use the installed compiler and expose information tied to that compiler version.

How it works

Each tool runs mortc through its command-line interface. Type checking does not build the program or require a C compiler, making mort_check suitable for quick iteration. Its diagnostics include the file, line, and column together with the relevant source line.

mort_run compiles and executes a program. Inputs can include standard input, command-line arguments, and a timeout, and the result includes program output and its exit code. mort_emit_c exposes the generated C; setting freestanding=True requests the kernel-mode output. mort_format delegates formatting to mortc fmt.

Reference tools read information from the compiler installation. mort_std can list modules or show a module's public functions, structure fields, signatures, and documentation comments. mort_docs searches the language specification and reference material, while mort_examples lists or reads compiler example programs.

Setup and configuration

The Mort compiler is required. The documented setup clones the Mort repository, installs mort-mcp and ziglang, and registers the command with an MCP client while setting MORT_HOME to the Mort checkout. The ziglang package is used for the C backend needed by mort_run.

If MORT_HOME is not set, the server looks for mortc on the executable path; the documented alternative installs the compiler directly from the Mort repository. Checking, running, and standard-library lookup work with that path-based arrangement. The documentation search and example tools require a Mort checkout, so they are not available through the minimal path-only setup.

Tools and capabilities

  • mort_check: type-checks source text or files and returns precise diagnostics.
  • mort_run: compiles and runs Mort with optional standard input, arguments, and timeout.
  • mort_emit_c: displays generated C, including freestanding output when requested.
  • mort_format: formats code with the official Mort formatter.
  • mort_std: lists standard modules or displays a module's public API.
  • mort_docs: searches the language specification and reference documentation.
  • mort_examples: lists or reads compiler examples.
  • mort_version: reports compiler and language versions and the compiler location.

Limitations and notes

A compiler installation is necessary for the server to operate. Without MORT_HOME, mortc must be available on the executable path. The checkout-dependent documentation and examples require more than that path-only installation. Results reflect the compiler, standard-library signatures, and documentation available in the configured installation, so changing compiler versions can change the reference information returned.

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 Mort MCP

mort-mcp is an MCP server that connects AI agents to the Mort compiler and its documentation. Its main tools type-check and run Mort code, format source, emit generated C, inspect standard-library APIs, search language references, read examples, and report compiler and language versions.

Install the Mort compiler, then install `mort-mcp` and `ziglang`; the documented setup also clones the Mort repository and registers `mort-mcp` with an MCP client using `MORT_HOME`. Alternatively, put `mortc` on your executable path for checking, running, and standard-library lookup.

No, MORT_HOME is not required when `mortc` is available on your executable path. That arrangement supports checking, running, and standard-library lookup, while `mort_docs` and `mort_examples` require a Mort checkout.

It shows registration through the `claude mcp add` command and describes mort-mcp as an MCP server, but it does not document Cursor-specific setup.

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 PreviewMort MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mort-mcp?style=directory)](https://allmcps.com/mcp/mort-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/mort-mcp"><img src="https://allmcps.com/api/badge/mort-mcp?style=directory" alt="Mort MCP on AllMCPs" /></a>