← Registry

AI & Machine Learning

trymargin.io

Margin analyzes a project's LLM model-calling steps and costs, ranks optimization moves like cheaper models or output caps, and runs measured model face-offs with post-merge monitoring.

2 endpoints10 known toolsFirst detected November 26, 2026Last detected November 26, 2026

ENDPOINT 1

https://trymargin.io/api/mcp?tools=core

No auth detected

MCP server metadata

Name
margin
Version
0.1.0
Capabilities
tools
Server instructions

Margin is a cross-provider AI-Ops economic control layer. READ tools expose the honest, real (non-simulated) economics: portfolio + per-project spend, cost-per-outcome, the Money Map, and ranked 'fix this first' savings. The gated ACT tools close the loop (approve -> apply -> revert): apply adopts a recommendation's proven cheaper route and re-measures, auto-reverting if measured parity drops below the floor. ACT is enabled only with the operator's sign-off.

Known tools 10

margin_jobs

Where YOUR project's money goes, per job: each model-calling step over the last 30 days with its calls, cost, live model and whether any eval has exercised it, plus how concentrated the spend is in the top 5/10/20 jobs.

Potential side effects
margin_optimize

Every move Margin can name for YOUR project, ranked, each labelled by its basis: measured (a face-off ran), detected, prior, or untested.

Inferred read-only
margin_faceoff_status

YOUR project's latest measured run, every face-off queued against it with its status and verdict, and the post-merge watch on each change you registered (holding, slipped, or still waiting for graded outcomes).

Potential side effects
margin_test_move

Ask Margin to TEST one move on YOUR project: a cheaper model, an output cap or a host pin, exactly as a move listed by margin_optimize (pass its level, target and lever).

Inferred read-only
margin_test_model

Ask Margin to face off ONE model you name (an OpenRouter slug such as openai/gpt-4.

Inferred read-only
margin_delegate_key

Hand a narrower agent key to another agent: a boss agent to a department agent, a department agent to one agent.

Inferred read-only
margin_my_keys

YOUR agent key: its spend limit, how much is reserved, which agents it covers, and the keys it has handed out to other agents.

Inferred read-only
margin_fit_check

Before spending anything: can YOUR eval set prove a model switch?

Potential side effects
margin_replay_dataset

Replay YOUR eval dataset against a candidate model, with no repo run: each case goes to `baseline` and `candidate` with the same messages (and the same structured-output schema, when the case has one), is graded by the case's own check, and the two are compared case by case by Margin's parity gate.

Potential side effects
margin_draft_checks

When the fit check says your cases cannot be graded (free-text answers, common for support, ops and finance agents): pass what the agent is for (`task`, with its rules written out, e.

Inferred read-only

CONNECT WITH APPROVAL

Client installation

Review this server and its permissions before adding it. Secret placeholders must be set locally.

Codex

~/.codex/config.toml

[mcp_servers.margin]
url = "https://trymargin.io/api/mcp?tools=core"
enabled = true
Claude Code

.mcp.json

{
  "mcpServers": {
    "margin": {
      "type": "http",
      "url": "https://trymargin.io/api/mcp?tools=core"
    }
  }
}
Claude Desktop

Settings → Connectors → Add custom connector

Name: margin
Remote MCP URL: https://trymargin.io/api/mcp?tools=core

Add this remote URL as a custom connector in Claude Desktop. Availability depends on the user plan and workspace policy.

Cursor

.cursor/mcp.json

{
  "mcpServers": {
    "margin": {
      "url": "https://trymargin.io/api/mcp?tools=core"
    }
  }
}
Visual Studio Code

.vscode/mcp.json

Add to Visual Studio Code
{
  "servers": {
    "margin": {
      "type": "http",
      "url": "https://trymargin.io/api/mcp?tools=core"
    }
  }
}
Generic MCP

Client-specific MCP configuration

{
  "name": "margin",
  "transport": "streamable-http",
  "url": "https://trymargin.io/api/mcp?tools=core"
}
MCP Inspector

Run the official MCP Inspector locally and enter the indexed Streamable HTTP endpoint.

ENDPOINT 2

https://trymargin.io/api/mcp/agent?tools=core

Auth required

Known tools 0

No tool metadata was available in the registry cache.

CONNECT WITH APPROVAL

Client installation

Review this server and its permissions before adding it. Secret placeholders must be set locally.

Codex

~/.codex/config.toml

[mcp_servers.trymargin-io]
url = "https://trymargin.io/api/mcp/agent?tools=core"
enabled = true
bearer_token_env_var = "MCP_BEARER_TOKEN"

Authentication is required. Replace the placeholder locally and never commit a secret.

Claude Code

.mcp.json

{
  "mcpServers": {
    "trymargin-io": {
      "type": "http",
      "url": "https://trymargin.io/api/mcp/agent?tools=core",
      "headers": {
        "Authorization": "Bearer YOUR_BEARER_TOKEN"
      }
    }
  }
}

Authentication is required. Replace the placeholder locally and never commit a secret.

Claude Desktop

Settings → Connectors → Add custom connector

Name: trymargin-io
Remote MCP URL: https://trymargin.io/api/mcp/agent?tools=core

Add the URL as a custom connector, then complete its supported authorization flow. Claude Desktop remote connectors are configured in the UI.

Cursor

.cursor/mcp.json

{
  "mcpServers": {
    "trymargin-io": {
      "url": "https://trymargin.io/api/mcp/agent?tools=core",
      "headers": {
        "Authorization": "Bearer YOUR_BEARER_TOKEN"
      }
    }
  }
}

Authentication is required. Replace the placeholder locally and never commit a secret.

Visual Studio Code

.vscode/mcp.json

{
  "servers": {
    "trymargin-io": {
      "type": "http",
      "url": "https://trymargin.io/api/mcp/agent?tools=core",
      "headers": {
        "Authorization": "Bearer ${input:mcp-token}"
      }
    }
  },
  "inputs": [
    {
      "type": "promptString",
      "id": "mcp-token",
      "description": "trymargin-io bearer token",
      "password": true
    }
  ]
}

Authentication is required. Replace the placeholder locally and never commit a secret.

Generic MCP

Client-specific MCP configuration

{
  "name": "trymargin-io",
  "transport": "streamable-http",
  "url": "https://trymargin.io/api/mcp/agent?tools=core",
  "headers": {
    "Authorization": "Bearer YOUR_BEARER_TOKEN"
  }
}

Authentication is required. Replace the placeholder locally and never commit a secret.

MCP Inspector

Run the official MCP Inspector locally and enter the indexed Streamable HTTP endpoint.

TRUST AND VERIFICATION EVIDENCE

Loading Trust v2 evidence…

Checking the associated registrable domain. The BuiltWith key remains server-side.

Indexed

Evidence is source-attributed and does not guarantee that a third-party server is safe. Risk labels are conservative metadata heuristics.