ambrook-mcp-guardrail
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ambrook-mcp-guardrailValidate this transaction against ledger invariants before approving."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ambrook-mcp-guardrail
A deterministic pre-flight ledger validator proof-of-concept. An AI agent's proposed financial write is treated as untrusted input and validated against ledger invariants before it reaches a commit boundary.
Inspired by Ambrook's publicly described combination of hybrid AI + rule-based systems, MCP-based tooling, and a multidimensional general ledger (enterprise / project / location / funding dimensions).
This is an independent proof-of-concept inspired by those publicly documented design principles. It is NOT Ambrook's internal implementation.
The invariant
INVALID TRANSACTION → ZERO LEDGER MUTATION. The commit branch is the only path that mutates the ledger.
Related MCP server: Guardian MCP
How validation works
ledger-rules.ts is a pure, deterministic validator. All errors are collected; if any invariant fails, the entire write is rejected with structured errors ({ code, message }) — no partial writes.
Rule | What it checks |
L1 Double-entry balance | Total debits must equal total credits. |
L2 Required structure | Transaction ID, ≥1 debit, ≥1 credit, valid positive amounts, currency. |
L3 Multidimensional data | Declared enterprise/project/location/funding dimensions must carry structurally valid identifiers — no silent omission. |
L4 No partial validation | One failing invariant rejects the whole write; every rejection returns structured errors. |
Proof — the actual run
Five simulated agent tool calls (agent-test-suite.ts), all asserted programmatically. No results are hand-written; everything below is generated from execution into results.json.
# | Tool call | Result | Errors reported | Ledger size |
1 |
| ACCEPT | — | 0 → 1 |
2 |
| ACCEPT | — | 1 → 2 |
3 |
| REJECT |
| 2 → 2 |
4 |
| REJECT |
| 2 → 2 |
5 |
| REJECT |
| 2 → 2 |
8/8 assertions pass, including: every invalid write changes ledger size by zero, and the final ledger contains only the two valid transactions.
Deterministic: three consecutive runs produced byte-identical output and an identical
results.json.
Run it
npm install
npm run build
npm testnpm test compiles, runs the suite, asserts all invariants, and regenerates results.json — exiting non-zero on any failure.
Structure
ledger-types.ts domain types (Transaction, ToolCall, ValidationError, …)
ledger-rules.ts deterministic rules L1–L4
mock-mcp-server.ts mock MCP boundary: write_transaction + in-memory ledger
agent-test-suite.ts 5 simulated agent writes + 8 assertions → results.jsonLimitations
Mock MCP boundary, in-memory ledger, synthetic transactions — no Ambrook infrastructure was touched.
No production performance claim, and no claim about how Ambrook actually implements validation.
Zero runtime dependencies: standard Node.js only, no network, no LLM calls, no API keys.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenancePer-transaction crypto trade validator for AI agents, validates trades with PROCEED/CAUTION/BLOCK verdicts, scans tokens for anomalies, detects rug pulls, and searches across DEXes. Powered by WaveGuard physics engine with deterministic PDE-based analysis.51MIT
- Alicense-qualityCmaintenanceSecurity layer for AI agents that evaluates transaction intents and returns verdicts (ALLOW/WARN/DENY) using deterministic rules, on-chain checks, and simulation.8MIT
- Alicense-qualityBmaintenanceDeterministic pre-execution audit for trading agents. PASS/WAIT/FAIL, reproducible verdict_hash.443MIT
- FlicenseAqualityBmaintenanceExposes a ledger system (invoice queue, duplicate control, VAT register, contractor history, decision journal) as MCP tools for AI agents, enabling accurate invoice processing with deterministic validation.7
Related MCP Connectors
Deterministic signed verification of numeric & financial claims for AI agents & spreadsheets.
Deterministic pre-execution audit for trading agents. PASS/WAIT/FAIL, reproducible verdict_hash.
AI-agent verifier: verdict committed before the outcome graded against it; /review, /ledger.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Sagar-024/ambrook-mcp-guardrail'
If you have feedback or need assistance with the MCP directory API, please join our Discord server