once MCP Server
Run a side effect exactly once under retries, redelivery, and concurrent workers.
once scores 63 (Good), licensed Apache-2.0 and written in Python. It installs as a local process. It does not declare tools yet. Filed under Databases. GitHub shows 0 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
63 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: apache-2.0.
License, quality and maintenance
Quality: Grade C
60/100 for listing completeness. Lost points: no listed tools, short summary, no docs link.
How quality is graded
Where the 63 comes from
22 + 20 + 0 + 10 + 4 + 7 = 63. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "aurumflux20-once-kernel": { "command": "uvx", "args": [ "once-kernel" ] } }}
Environment variables
This server does not declare environment variables.
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
once
Run any side effect exactly once โ even when 1,000 callers demand it at the same instant.

โก once โ STORM DEMO
1,000 concurrent attempts to charge order #777 ($49.00)
ACTUAL EXECUTIONS : 1 โ the whole point
served same answer : 1,000 / 1,000
elapsed : 0.1s
๐ฐ double-spend prevented this run: $48,951.00
That's not a mock โ it's a live attack you can run right now:
pip install once-kernel
python -m once.demo
The problem
Networks retry. Users double-click. Queues redeliver. AI agents re-fire tools at machine speed. Any of these turns one payment into two, one email into three, one server into two hundred.
Most teams hand-roll an idempotency table โ and most of those are quietly broken under concurrent load: two identical requests both pass the "already done?" check, then both execute. The bugs are subtle, the failures are money.
once is that table done right, once, for everyone โ a tiny idempotency kernel with the four defenses hand-rolled versions miss:
- Atomic leader election โ concurrent duplicates can't all pass the check; exactly one executes, the rest coalesce onto its result.
- Payload fingerprinting (RFC 8785) โ same key with a different body is a hard
IdempotencyConflict, never someone else's cached answer. - Fence tokens + generations โ a crashed worker's lease can be taken over, and when the "dead" worker wakes up late, it is locked out of corrupting the record.
- Honest failure states โ a failed attempt frees the key for retry; an unknown outcome never silently re-runs.
Use it
from once import Once
o = Once()
def charge():
return gateway.charge(order_id="ord_1", amount_cents=4900)
# Retries, double submits, webhook redelivery, agent fan-out โ runs ONCE
result = o.run("pay:ord_1", {"order": "ord_1", "amount_cents": 4900}, charge)
One box, several processes, no database server โ SQLite, nothing to install:
from once import Once
from once.sqlite import SqliteStore
o = Once(SqliteStore("/var/lib/myapp/once.db")) # schema auto-created
Survives restarts and works across processes (WAL mode). The default MemoryStore does neither โ it is per-process, so the moment you run a second worker each one keeps its own private idea of what already ran, and the guard silently stops guarding.
Several machines โ share state through the Postgres you already run:
from once import Once
from once.pg import PostgresStore
o = Once(PostgresStore("postgresql://user:pass@host/db")) # table auto-created
Async (FastAPI, agents) โ sync side effects go to a worker thread, waiters park on the event loop (no thread-pool starvation under duplicate storms; there's a test that proves it):
from once import AsyncOnce
ao = AsyncOnce()
result = await ao.run("pay:ord_1", payload, charge)
What you can rely on
| If this happens | You get |
|---|---|
| Same key + same payload, again | The stored result โ no second execution |
| Same key + different payload | IdempotencyConflict โ never a silent wrong answer |
| 1,000 concurrent first requests | One executor; everyone else coalesces (wait=True) or is told to wait |
| Executing worker dies | Lease expires โ another caller takes over |
| "Dead" worker wakes up late | Fenced out โ cannot complete, cannot fail, cannot corrupt |
| Long job outliving its lease | heartbeat() keeps it protected |
| Your function raises | Key freed โ a later retry may execute |
The honest model (put this on a poster): exactly-once execution + at-least-once result delivery. True network exactly-once is physically impossible โ libraries claiming it are lying to you. We execute once and re-deliver the answer as many times as asked.
Tested like money depends on it
Because it does. Every claim above is enforced by the chaos suite โ barrier-forced thread storms, dead-lease reclaim stampedes, zombie-writer fencing, frozen-clock timeout attacks, event-loop-starvation detection โ run against both the in-memory store and real PostgreSQL on every commit (CI fails loudly if the Postgres bench is skipped). Silence in CI never means "untested."
And we run it on our own production mailer โ a double-approved send replays instead of double-emailing a real prospect. Dogfood first.
Not this
- Not a payment provider โ it guards your calls to one
- Not a workflow engine (no sagas, no multi-key transactions โ by decision)
- Not magic "exactly-once everywhere" โ see the honest model above
Docs
- Examples: FastAPI webhook ยท Celery task โ and the three decisions that actually take judgement (key, payload, store)
- 5-minute integration guide
- Full API reference
- State machine โ legal & illegal transitions
- What we store: result size + PII policy
- Architecture decisions
Sibling project โ EffectFence (Rust)
EffectFence (cargo add effectfence) is the Rust half of the same idea: a causal fence for tool side effects, with content-addressed certificates and an MCP proxy mode โ effectfence wrap -- <any mcp server> fences another server's tool calls with zero code change (proven against once-mcp).
Use once when the side effect is Python and you want a durable store; use EffectFence when the fence lives in Rust or in front of an MCP server.
Commercial support
Free and Apache-2.0, and staying that way. If you want help applying it to a codebase that already moves money โ side-effecting paths inventoried, storm-tested, fenced, with a CI test that keeps them fenced โ email hello@aurumflux.co. Details: the Fence Audit.
License
Apache-2.0
Frequently asked questions
What is once MCP Server?
Run a side effect exactly once under retries, redelivery, and concurrent workers.
How do I install once MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. once MCP Server runs locally from the PyPI package once-kernel with the command uvx once-kernel.
Is once MCP Server free and open source?
Yes. once MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does once MCP Server support remote (HTTP) connections?
No remote endpoint is listed for once MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is once MCP Server's trust score calculated?
once MCP Server scores 63 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yetโBe the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.