marchward.ai
Runtime policy layer that gates what AI agents can do with tools, credentials and spend
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-serverAdd --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>"
}
}
}
}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.
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.
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.
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-serverOr 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>" }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.
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.
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.
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.
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.
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.
Using several servers? Build one config file with the MCP config generator.
Configuration
MARCHWARD_API_URLMarchward API base URLRequiredMARCHWARD_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.