RevRule MCP Server
OfficialClick on "Deploy 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., "@RevRule MCP Server dry-run a $50k revenue event on graph gr_123 and show what each rule pays out"
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.
RevRule by Payload — MCP Server
An MCP server (stdio transport, Node.js standard library only, zero dependencies) that exposes RevRule, Payload's revenue-entitlement engine, to AI agents.
RevRule turns revenue sharing into declarative entitlement rules on the Payload rail: define who gets paid what, and every payout carries evidence linked back to the original entitlement ledger entry and its on-chain settlement. This server is a read + dry-run surface: there are deliberately no write/submit tools in v1. Every call goes to the live Payload rail (https://payload-rail.fly.dev) authenticated with your own rail API key (a free self-serve key from the console is enough to evaluate).
Tools
Tool | Upstream route | What it does |
|
| Fetch one of your RevRule revenue entitlement graphs by id: its participants, rules, and ledger wiring. Read-only. |
|
| List payout evidence recorded for a graph: verified payouts linked back to the original entitlement ledger entries (transaction hash, log index, block data, authorizing signature). Read-only. |
|
| Dry-run a revenue event against a graph's rules and see what the rules would produce, with zero side effects: nothing is recorded, no payout is prepared or submitted. The tool wraps the supplied event as |
Related MCP server: io.github.loopg/pramana-mcp
Install
Verified MCPB release
Install the revrule v1.1.0 MCPB bundle in an MCPB-compatible client, or run from source below. The published bundle declares the supported MCP tools. This direct release is the verified installation path while third-party directory listings are revalidated.
From source
git clone https://github.com/Payloadhq/revrule-mcp
cd revrule-mcp
node mcp/index.jsOr run it straight from GitHub with npx:
npx -y github:Payloadhq/revrule-mcpMCP client configuration (stdio):
{
"mcpServers": {
"revrule": {
"command": "node",
"args": ["/path/to/revrule-mcp/mcp/index.js"],
"env": {
"PAYLOAD_RAIL_API_KEY": "your-rail-api-key"
}
}
}
}Configuration
Variable | Required | Default | Purpose |
| Required for tool calls | — | Your own Payload rail API key. A free self-serve key from the console works for evaluation; the paid license covers production use. Sent to the rail only as a Bearer |
| Optional |
| Payload rail base URL. |
Fail-closed: with no API key configured, the server still starts and lists its tools, and every tool call returns a clear API key not configured error. The key never leaves your machine except as the Authorization header to the rail.
Free evaluation and the paid license
Free. You can evaluate RevRule end to end without paying:
The RevRule sandbox runs the actual engine in your browser: define a graph, fire events, and inspect the entitlement ledger.
The RevRule console issues a free self-serve Payload rail API key. With that key, this server's reads (
revrule_get_graph,revrule_list_payout_evidence) and the zero-side-effect dry run (revrule_simulate_event) work against your own graphs. A paid entitlement is not required to evaluate.
Paid. The RevRule license is $99 one-time. It is the production product: run your real revenue graphs on the rail with the entitlement ledger and payout evidence as your system of record, instead of evaluating in the sandbox.
RevRule computes who is owed what and records the evidence. It does not execute payments and it never holds funds; your own systems and payment partners move the money.
License
MIT — see LICENSE.
RevRule is a product of Payload, separate from Veyline (Payload's authorization layer) and from callx402 by Payload, the MCP client layer for x402-priced actions.
Available Tools
3 toolsrevrule_get_graphA
Fetch one of your RevRule revenue entitlement graphs by id: its participants, rules, and ledger wiring. Read-only. (Rail route: GET /v1/graphs/{graph_id}.)
Inputs: graph_id (required).
revrule_list_payout_evidenceA
List payout evidence recorded for a graph: verified payouts linked back to the original entitlement ledger entries (transaction hash, log index, block data, authorizing signature). Read-only. (Rail route: GET /v1/graphs/{graph_id}/payout-evidence.)
Inputs: graph_id (required).
revrule_simulate_eventA
Dry-run a revenue event against a graph's rules and see what the rules would produce, with ZERO side effects: nothing is recorded, no payout is prepared or submitted. The event payload is wrapped in {event} for the existing rail REST API. (Rail route: POST /v1/graphs/{graph_id}/simulate.)
Inputs: event (required), graph_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool targets a distinct operation: reading a graph, listing its payout evidence, and dry-running an event against its rules. There is no overlap in purpose, and the read-only vs. simulation distinction is stated explicitly (zero side effects on simulate).
All three tools follow the same predictable pattern: revrule_ prefix plus verb_noun in snake_case (get_graph, list_payout_evidence, simulate_event). Prefix-plus-verb ordering is consistent across the entire set.
Three tools is thin even for a scoped read/simulate surface, and the lack of any listing tool means an agent cannot discover graph IDs from this server. The tools that exist are well-chosen, but the set is borderline minimal.
Core read and dry-run flows are covered, but there is a notable gap: no way to list or discover graphs (and thus obtain the graph_id every tool requires), and no graph/rule authoring or actual payout submission. An agent can read and simulate but hits a dead end at discovery and lifecycle mutation.
Maintenance
Related MCP Connectors
Paid evidence tools for PDFs, public webpages, OpenAPI contracts, and Base chain data for AI agents.
Read-only finance and operations controls for AI agents with evidence and safe next actions.
Keyless, read-only checks of Intentrax AI-agent execution proofs. Never executes, signs, or writes.
Live data for AI agents. Search the catalog, read the price, call the tool; keys stay server-side.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to safely inspect Stripe billing data such as subscriptions, invoices, failed payments, and churn, with read-only access, per-tool permissions, and a tamper-evident audit log.MIT
- AlicenseAqualityBmaintenanceLets an assistant read recorded production AI agent runs — steps, model and tool calls with arguments, and outcomes — along with the findings of comparison runs that checked a prompt or model change against those recordings, and verify a signed evidence bundle offline with no account or network. It is strictly read-only: no tool starts a replay or comparison, so nothing can spend money or act without a person deciding.5Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to search a product catalog, check inventory, and list or retrieve customer orders through scope-limited, read-only tools over a simulated VTEX-style API, with per-token access controls that restrict customers to their own orders.29 npmMIT
- AlicenseAqualityCmaintenanceEnables AI agents to reconcile ledger, PSP, and bank data, triage chargebacks, draft evidence packs, and check refund policy against contract terms while keeping all actions read-only or human-confirmed.13MIT