# marchward.ai

> marchward.ai is a freemium MCP server for agent sandbox. Runtime policy layer that gates what AI agents can do with tools, credentials and spend. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** CLI, API, Self-hosted, Linux, macOS, Windows
- **Repository:** https://github.com/marchward/marchward
- **MCP Registry name:** ai.marchward/mcp-server
- **Categories:** [agent sandbox](https://ai-powered.com/categories/agent-sandbox)
- **Listing updated:** 2026-11-27

## About

Marchward sits between an agent and the tools it calls. Before any tool call runs, it checks a policy and returns allow, escalate for human approval, or block, and every decision is appended to a hash-chained audit log that can be verified offline. The agent only holds a Marchward key, while the real service credential is injected at execution time from a local store or the managed vault.

The open packages in the repository form a self-hostable governor that works without an account. The local proxy wraps any MCP server as a child process and applies policy to every tools/call request, so destructive operations such as deletes can be routed to approval. Risk is judged by the resolved action rather than the tool's name.

The hosted plane adds shared state for teams: a managed credential vault, approval workflows with notifications, retained audit records, and cross-agent enforcement of spend limits. It suits teams running agents in production who want autonomy without unattended irreversible actions or runaway inference costs.

## Features

- **Tool call policy:** Each call is allowed, blocked or paused for approval according to rules matching tool name patterns.
- **Credential mediation:** Agents hold one Marchward key while the real service credentials are injected at execution.
- **Approval gates:** Destructive or irreversible actions pause for a human decision before they run.
- **Hash-chained audit log:** Each decision is appended to a log that can be verified offline for tampering.
- **Inference spend cap:** A rolling-window ceiling on agent spend limits how much a runaway loop can cost.
- **Local MCP proxy:** Wraps any stdio MCP server and evaluates its tool calls without an account or network call.

## Good for

- Stop an autonomous agent from deleting production data without sign-off
- Keep API keys for GitHub, Stripe or databases away from the agent process
- Cap the inference budget of agents running long loops
- Produce a verifiable record of what agents decided and why
- Add approval steps to agents built with LangGraph, LangChain or raw SDKs

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp-server --env MARCHWARD_API_URL='<MARCHWARD_API_URL>' --env MARCHWARD_API_KEY='<MARCHWARD_API_KEY>' -- npx -y @marchward/mcp-server
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@marchward/mcp-server"
      ],
      "env": {
        "MARCHWARD_API_URL": "<MARCHWARD_API_URL>",
        "MARCHWARD_API_KEY": "<MARCHWARD_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@marchward/mcp-server"
      ],
      "env": {
        "MARCHWARD_API_URL": "<MARCHWARD_API_URL>",
        "MARCHWARD_API_KEY": "<MARCHWARD_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@marchward/mcp-server"
      ],
      "env": {
        "MARCHWARD_API_URL": "<MARCHWARD_API_URL>",
        "MARCHWARD_API_KEY": "<MARCHWARD_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@marchward/mcp-server"
      ],
      "env": {
        "MARCHWARD_API_URL": "<MARCHWARD_API_URL>",
        "MARCHWARD_API_KEY": "<MARCHWARD_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp-server --env MARCHWARD_API_URL='<MARCHWARD_API_URL>' --env MARCHWARD_API_KEY='<MARCHWARD_API_KEY>' -- npx -y @marchward/mcp-server
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "@marchward/mcp-server"]
env = { MARCHWARD_API_URL = "<MARCHWARD_API_URL>", MARCHWARD_API_KEY = "<MARCHWARD_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@marchward/mcp-server"
      ],
      "env": {
        "MARCHWARD_API_URL": "<MARCHWARD_API_URL>",
        "MARCHWARD_API_KEY": "<MARCHWARD_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e MARCHWARD_API_URL='<MARCHWARD_API_URL>' -e MARCHWARD_API_KEY='<MARCHWARD_API_KEY>' mcp-server npx -- -y @marchward/mcp-server

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@marchward/mcp-server"
      ],
      "env": {
        "MARCHWARD_API_URL": "<MARCHWARD_API_URL>",
        "MARCHWARD_API_KEY": "<MARCHWARD_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@marchward/mcp-server"
      ],
      "env": {
        "MARCHWARD_API_URL": "<MARCHWARD_API_URL>",
        "MARCHWARD_API_KEY": "<MARCHWARD_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@marchward/mcp-server"
      ],
      "env": {
        "MARCHWARD_API_URL": "<MARCHWARD_API_URL>",
        "MARCHWARD_API_KEY": "<MARCHWARD_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@marchward/mcp-server"
      ],
      "env": {
        "MARCHWARD_API_URL": "<MARCHWARD_API_URL>",
        "MARCHWARD_API_KEY": "<MARCHWARD_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@marchward/mcp-server"
      ],
      "env": {
        "MARCHWARD_API_URL": "<MARCHWARD_API_URL>",
        "MARCHWARD_API_KEY": "<MARCHWARD_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@marchward/mcp-server"
      ],
      "env": {
        "MARCHWARD_API_URL": "<MARCHWARD_API_URL>",
        "MARCHWARD_API_KEY": "<MARCHWARD_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@marchward/mcp-server"
      ],
      "env": {
        "MARCHWARD_API_URL": "<MARCHWARD_API_URL>",
        "MARCHWARD_API_KEY": "<MARCHWARD_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@marchward/mcp-server"
      ],
      "env": {
        "MARCHWARD_API_URL": "<MARCHWARD_API_URL>",
        "MARCHWARD_API_KEY": "<MARCHWARD_API_KEY>"
      }
    }
  }
}
```

## FAQ

### Does marchward.ai need an account to start?

No. The proxy can run in local mode with a policy file and your own credentials, with no account and no network call.

### What license is marchward.ai under?

The code is licensed under Apache-2.0. The name Marchward is covered by a separate trademark policy.

### Which agent frameworks does marchward.ai work with?

It is described as framework-agnostic, working with LangGraph, LangChain, raw SDKs, any MCP server, or a single HTTP call.

### What does the hosted free tier include?

The free hosted tier allows 500 decisions per month with no card required.

### How do I add marchward.ai to Claude Code?

Run this command in your terminal: claude mcp add mcp-server --env MARCHWARD_API_URL='<MARCHWARD_API_URL>' --env MARCHWARD_API_KEY='<MARCHWARD_API_KEY>' -- npx -y @marchward/mcp-server

### What are the best alternatives to marchward.ai?

The closest alternatives to marchward.ai are Agent Runtime Guard, Aegis MCP, Aegis — AI Agent Governance, Tripwire and MCP Gateway.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Agent Runtime Guard](https://ai-powered.com/mcp/agent-runtime-guard): Agent Runtime Guard is an open-source MCP server for security.
- [Aegis MCP](https://ai-powered.com/mcp/aegis-mcp): Aegis MCP is an open-source MCP server for agent sandbox.
- [Aegis — AI Agent Governance](https://ai-powered.com/mcp/aegis-ai-agent-governance): Aegis — AI Agent Governance is an open-source MCP server for agent sandbox.
- [Tripwire](https://ai-powered.com/mcp/tripwire): Tripwire is an open-source MCP server for agent sandbox.
- [MCP Gateway](https://ai-powered.com/mcp/mcp-gateway-5): MCP Gateway is an MCP server for agent identity.
- [MCP Agentcore](https://ai-powered.com/mcp/mcp-agentcore): MCP Agentcore is an MCP server for compliance and regulation.
- [quelvio.com](https://ai-powered.com/mcp/quelvio-com): quelvio.com is a freemium MCP server for agent tooling.
- [vivioo.io](https://ai-powered.com/mcp/vivioo-io): vivioo.io is an open-source MCP server for agent tooling.

---
Source: https://ai-powered.com/mcp/marchward-ai
