Skip to content
MCP server

marchward.ai

Runtime policy layer that gates what AI agents can do with tools, credentials and spend

Runs locally

marchward.ai is a freemium MCP server for agent sandbox. It runs locally on your machine and is started by your AI client.

Pricing
Freemium
Platforms
CLI, API, Self-hosted
Runs
Locally
Access
Needs a secret key or token
Version
0.2.4
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a 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

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

Or share it with your project

Add to .mcp.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 Code setup guide

Add to claude_desktop_config.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.

Claude Desktop setup guide

Add to ~/.cursor/mcp.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.

Cursor setup guide

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.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>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "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

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.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.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.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.

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "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.

    Junie

    Add to ~/.junie/mcp/mcp.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.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.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.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • MARCHWARD_API_URLMarchward API base URLRequired
  • MARCHWARD_API_KEYYour Marchward API key (mw_...)Required

About marchward.ai

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.

What it does

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

Pricing

Freemium

Open-source self-host; free hosted tier with 500 decisions/mo, no card

marchward.ai 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.

How AIPoweredBot checks servers