mcpbeat Sign in

Margin MCP Server

by trymargin Your server? Claim it
answering

Margin is answering right now. Last checked 2 min ago. It exposes 16 tools. Last commit 1 Dec 2026.

Tests a model or prompt change on your own evals and says if it holds, before your agent ships it.

Uptime history 6 days of history
6 days agonow
100.0%
Uptime 24h
182 of 182 checks
16
Tools
read from the server
370 ms
Response time
average over 24h
0
Stars
last commit 1 Dec 2026

What changed 21

Every tool that appeared, vanished or quietly changed what it asks for. Recorded since 27 November 2026. No other catalogue keeps this.

30 Nov 2 tool descriptions were rewritten margin_check_experiments, margin_report_outcome
28 Nov 5 tool descriptions were rewritten6 times that day margin_change_record, margin_check_experiments, margin_fit_check and 2 more
28 Nov 4 tools changed the parameters they ask for5 times that day margin_change_record, margin_check_experiments, margin_fit_check and 1 more
27 Nov 5 tools appeared margin_change_record, margin_pin_drift_check, margin_report_outcome and 2 more
27 Nov 2 tools changed the parameters they ask for margin_check_experiments, margin_replay_dataset
27 Nov a tool description was rewritten margin_replay_dataset
and 2 more, back to 27 November 2026

Connect this server

Endpoint below is the one we actually reach during checks — not the one copied from a README. Last verified 2 min ago.

run in your terminal
claude mcp add margin --transport http 'https://trymargin.io/api/mcp?tools=core'
Settings → Connectors → Add custom connector, then paste this address
https://trymargin.io/api/mcp?tools=core
~/.codex/config.toml
[mcp_servers.margin]
url = "https://trymargin.io/api/mcp?tools=core"
.cursor/mcp.json
{
  "mcpServers": {
    "margin": {
      "url": "https://trymargin.io/api/mcp?tools=core"
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "margin": {
      "type": "http",
      "url": "https://trymargin.io/api/mcp?tools=core"
    }
  }
}

This endpoint answered with an authorization challenge. The server is running, but you need an API key from its owner to call it.

This server publishes 1 more address. The block above uses the one we reach during checks; the full list is under Endpoints below, and the author may intend a particular one for your client.

Available tools 16

Read directly from the server with tools/list, grouped by what they act on. If a tool disappears, we record the date.

margin
margin_change_record
One verdict as a change record you can attach to your customer's change notice: what changed, the decision, the cases and the gap with its 95% bound, each segment's reading, the cases that got worse, cost per case, a review of the case set itself (`case_review`: size against the gate floor, cases that could not show the change, duplicates, segment coverage, the grader), what the record does not establish, and the outcome your team reported. Markdown. Free.
margin_check_experiments
Did this change help or hurt, and is it proven? Compares two experiments your team ALREADY ran and scored (Braintrust export or experiment id; or LangSmith, with source langsmith or an ls:<experiment id or name>; or two Inspect .json logs or MLflow results tables, with source inspect or mlflow): the model in use vs a cheaper model, an old prompt vs a new one, or the same setup last week vs today (to catch a provider changing a model under you). For LangSmith it is also the check on a change LangSmith proposed and graded itself: a baseline experiment against an Engine fix, or a base model against its SmithTune fine-tune. Pairs the cases, then applies Margin's gate: promoted only when the second holds the pass rate at the 97% bar and costs less; otherwise the reason (cases lost, too few cases to tell, a case missing or unscored on one side, or no cost logged). A LangSmith run with no score for the feedback key, or one that errored, is unanswered, never a fail. `quality_proven` answers the quality question apart from cost. Pass `candidates` when several models were tried on these cases (Loop often tries several): the best of several looks better than it is. Runs no model and spends nothing, but it does WRITE: the verdict is saved to the project's history (verdict_id; what margin_track_record counts), except on a read-only connection, which saves nothing. May read the project's stored Braintrust or LangSmith connection. Needs the project's key.
margin_delegate_key
Hand a narrower agent key to another agent: a boss agent to a department agent, a department agent to one agent. Pass a spend limit (taken out of YOUR key's limit), an optional label, an optional list of agent files it may test (inside your own scope), whether it may hand out keys in turn, and how many hours it lives (default 24, never past your own key's expiry). Returns the new key ONCE. Only a key a person allowed to delegate can do this. Revoking a key revokes every key it handed out.
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.g. 'never offer a coupon') and up to 20 real outputs (`samples`). Margin drafts pass/fail checks, code checks first, and shows which samples each one fails. Drafts only: a named person on your team accepts each in the console before it grades anything. Free, except an optional AI pass that uses the project's daily console allowance. Needs the project's key.
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). Pull requests open from the console only, because that click is your approval. Needs the project's ingest key.
margin_fit_check
Before spending anything: can YOUR eval set prove a model switch? Pass the export's text (a promptfoo results file, a Braintrust or LangSmith dataset export, or JSONL of {input or messages, expected, check}). Returns how many cases Margin can grade (exact label, contains, regex or a JSON field; LLM-rubric cases are counted but not graded), how many the 97% switch bar needs, and how many cases a new model may lose and still be promoted. Also returns a check-up: lead says what, if anything, blocks a verdict, and each line (run accounting, size, saturation, cases that never fail, duplicates, judge agreement, segments, flakiness) is blocker, observation or not_measured with its count and n. Free and instant. Needs the project's key.
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. A job is labelled 'code and traffic', 'traffic only' or 'code only', never dropped. No per-job outcomes: outcomes are recorded per workflow. Also carries VALUE PER OUTCOME where the person set one (in their own unit, and dollars only at a stated rate); every other job is cost per outcome. Needs the project's key.
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. Needs an agent key.
margin_optimize
WHAT TO TEST NEXT for YOUR project: every candidate change Margin can name, ranked, each labelled by its basis: measured (a face-off ran and gave a verdict), detected, prior, or untested. A listed move is a candidate, not a verdict; the verdict comes from the face-off. A 'pr' move is a setting a face-off can test; a 'structural' one needs a person. Reads only: queueing a face-off spends the project's measurement allowance, so it happens in the console (queue_in) or through margin_test_move with an agent key, never through this tool. Needs the project's ingest key.
margin_pin_drift_check
Watch one setup for quality drift (a provider changing a model under its name, your retrieval or tools moving): pin your eval cases (`dataset`, the export's text) and a `model`, at a `cadence` of daily or weekly. Each run replays the cases and compares them with the last complete run by Margin's paired gate. It alerts only on a proven drop, never on noise; too little evidence is reported as that. The first run is the baseline and runs now. A run spends at most `cap_usd` (max 10) of your AGENT key's limit and a month's runs at most `monthly_cap_usd`; a revoked or expired key refuses the run. The cases are stored until `cadence` off. `endpoint` is a note in words, never a credential. At most 300 cases.
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. Returns the verdict: promoted only when the candidate holds the pass rate at the bar AND costs less per case; otherwise the reason. Cases go only to zero-retention hosts and are not stored. The answer leads with a headline: the saving a year at `monthly_calls` (proven only when promoted), the cases the candidate lost and how many cases would settle a hold, or what an upgrade costs per extra case it gets right. Give a case a `segment` (or metadata.segment / metadata.category) and each segment is also judged on its own: a change that ties overall but is proven worse in one segment comes back do_not_ship, naming it. By default it stops early, and spends less, once the answer is already do_not_ship (checked from 40 cases on, corrected for every look; `stopped_early` says so); it never stops early for ship. `early_stop` false runs every case. A replay that cannot reach a verdict is refused before the full run is paid for (decision `refused_before_spend`, the reason in `why`, the checks in `preflight`): fewer cases than `cases_needed` (`anyway` true runs it as a check that can only find a loss), one of the first two cases getting no answer, or an estimate over `cap_usd`. In the run, a 402 stops it at once, a case lost to a 429, a 5xx or a timeout is tried once more, and an answer cut off by the output limit is tried once at double the limit. `repeats` (1-5) runs each case that many times per side: a case passes only if every run passed (pass^k), and `reliability` reports pass@1, pass^k, the cases that flipped and an estimate of the repeats needed to see a 1-point gap; spend scales with it. A case `weight` (or metadata.weight: its traffic share or count) adds `weighted`: the same cases weighted by traffic, including the share of traffic on cases that got worse; the decision stays on the unweighted paired test. `measure_noise` also runs your current model twice to show how far your suite moves on its own. `candidate_system` tests a prompt change instead of (or with) a model change; each prompt tried counts as its own candidate. A case may carry `tools` (and `tool_choice`), sent with each call, and `check: tool-call` passes when the first tool call is the `expected` tool. `candidate_tools` tests a tool change: the candidate gets that list, the baseline keeps the case's. Spends up to `cap_usd` (max 10) of your AGENT key's limit, and gives back what it did not use. At most 300 cases per call. A call stops at 4 minutes and returns `continue_job`: call again with the same arguments and that token to resume, paying only for the cases not yet run, until the verdict is in.
margin_report_outcome
After a change Margin gave a verdict on has shipped (or did not ship): record what happened. `verdict_id` is the one the replay or check returned; `outcome` is held, regressed or not_shipped; `note` says how you know (an incident, a metric, a rerun). This is what Margin's track record for your project is made of. Reporting regressed on a verdict that said ship opens a fee credit under review, which Margin decides (margin_guarantee_claims). It OVERWRITES the verdict's recorded outcome, so any key for the project can change it. Free.
margin_test_model
Ask Margin to face off ONE model you name (an OpenRouter slug such as openai/gpt-4.1-mini, or a release from this week) against YOUR project's latest measured run, on your own evals, in Margin's sandbox. Optionally name one `agent` to swap only its calls. Refused, with the reason, when the catalogue does not list the model, it has a retirement date, no host the project may use serves it, or it is the model already in use. The promotion gate decides: a cheaper model is promoted only when the pass rate holds at the bar; a pricier one is reported as an upgrade with what it costs. Read the verdict with margin_faceoff_status. Spends within your key's limit and the project's measuring budget; asking twice does not pay twice. Needs an AGENT key on /api/mcp/agent.
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). Margin re-runs your own evals with the move applied, in its sandbox, on your latest measured run, and its promotion gate decides: promoted only when the pass rate holds at the bar AND it is cheaper, otherwise refused with the reason (too few cases, quality slipped, the baseline does not stand in for production). Returns the queued run id or a named refusal; read the verdict with margin_faceoff_status. Spends within the project's measuring budget, capped per run, and asking twice does not pay twice. It never changes your code: the pull request opens from the console, which is your approval. Needs an AGENT key (mak_, created in the console with a spend limit) on /api/mcp/agent; the ingest key is refused.
margin_track_record
Margin's verdicts for your project and how they turned out: how many said ship, do not ship or not enough evidence, and of the ship verdicts your team reported on, how many held. Unreported ones are pending, never counted as held. Free.
margin_verdict_receipt
One verdict as a receipt someone outside your team can check: an in-toto Statement in a DSSE envelope (`receipt`), signed by Margin with Ed25519 when `signed` is true, with the decoded `statement` beside it. It carries the decision, the bar, the paired counts and gap, candidates tried, cost per case, segments, and what it does not show. A record signed by Margin, not a certification. When `signed` is false the receipt is unsigned and `note` says why. Verify with `margin-referee verify` and the key at /.well-known/margin-receipt-key. Free.

Nothing serious here today

Today is the operative word: we check Margin every 15 minutes and re-read its code on every release. Watch it and you find out the day that stops being true.

Three servers free · no card

Endpoints

URLTransportStateLatencyChecked
https://trymargin.io/api/mcp?tools=core streamable-http answering 246 ms 3 min ago
https://trymargin.io/api/mcp/agent?tools=core streamable-http needs key 298 ms 2 min ago

Alternatives to Margin

same job, measured the same way
Kitsune MCP
by kaiser-data

One MCP server, every form: hot-reload your own MCP server, test any server in seconds, caged.

2 711 installs/wk local only
isitdone
by raimondasl

Make a coding agent prove it: run the repo's real tests, typecheck and lint before it says done.

713 installs/wk local only
extension.dev MCP
by extensiondev

Build, run, debug, test and ship Chrome, Firefox, Edge and Safari extensions from your AI agent.

655 installs/wk 9 tools answering
LHUB agent kit
by lhub

Hire and sell AI-agent services on the LHUB marketplace with your own key; LHUB-DEV test credit.

522 installs/wk local only
BotArmor: LLM red teaming for chatbots
by sidorenkav-collab

LLM red teaming and prompt injection testing for chatbots and AI agents: A-F grade, prompt fixes.

511 installs/wk answering
llmshift
by dechuks-hub

Find retiring LLM calls in code and test the replacement model on real traffic before switching.

325 installs/wk local only
Stillwater
by rockystonelabs-stillwater

Live Mac state for coding agents: check memory and disk before test runs or model loads. Read-only.

310 installs/wk local only
Model Finder
by indigloo

Find the cheapest AI model that passes your tests: audit repo models, build evals, routing, sizing

192 installs/wk local only

Margin — questions

Answers built from our own checks of this server.

What can Margin do?
It exposes 16 tools, read directly from the server on our last check. Among them: margin_change_record, margin_check_experiments, margin_delegate_key, margin_draft_checks, margin_faceoff_status, margin_fit_check and 10 more. The full list with descriptions is on this page — we take it from the server itself via tools/list, not from a README. How MCP servers expose tools in the first place →
Is Margin working right now?
We send a real MCP handshake every 15 minutes. Over the last 24 hours 182 of 182 checks got a reply (100.0%), average response time 370 ms. The bar chart above shows every period we have measured.
How do I connect Margin?
Copy the ready config from this page. We generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each in the form that client actually reads. It is a remote server, so there is nothing to install — the client connects to the address. You will need your own key: it refuses anonymous clients.
Does Margin need an API key?
Yes. Every time we knock, Margin answers with an authorization challenge instead of its tool list — that is how we know it is running and gated rather than broken. Bring your own credentials and it will talk.
How fast is Margin?
It answers our handshake in 370 ms on average, which is faster than 34% of all working MCP servers we measure. The comparison comes from our own checks across the whole registry, every 15 minutes.
Is Margin open source?
The code is open source: it is published under the MIT licence, written in Python and 0 stars on GitHub. The licence covers the code in the repository, not the hosted service at trymargin.io, which runs on its operator's own terms.