Payables MCP
Click 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., "@Payables MCP Check incoming bills for duplicates and recommend approvals for the weekly payment run."
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.
Payables MCP
A small MCP server for accounts payable. I built it to work out what an AP agent should look like if you give a model tools instead of a UI: what it should be allowed to do on its own, what needs a person, and where the line between the two sits.
Everything runs against a mock ERP in data.json, so you can clone it and click through it in
a couple of minutes. There are no API keys.
Running it
uv venv && uv sync
uv run mcp dev server.py # opens the MCP inspector
uv run pytest # 5 testsAP_PROFILE=analyst or AP_PROFILE=processor in front of the run command gives you a
smaller server. More on that below.
Related MCP server: ledger-mcp
What you get
Tools

Eleven tools. The first five read and write bills and vendors, the same shape as any ERP
connector. The interesting ones are in the middle: check_duplicates, match_invoice and
recommend_approval are where the AP judgment lives. They call plain functions in
ap_logic.py and hand back a dict with the reasons, so a person can see why a bill got held.
request_payment_release is the one to notice. It queues approved bills for a payment run and
that is all it does. There is no tool that releases the run or sends money. That part stays in
the ERP, done by a person, on purpose.
Prompts

One prompt for now, the weekly payment run. It tells the assistant which resource to read and which tools to run in what order. It carries no data itself.
Resources

Things the assistant reads often and should not need a tool call for: all bills, one bill by id, bills due in the next N days, and the tolerance policy.
Profiles
Not every deployment should get every tool. AP_PROFILE decides what gets registered when the
server starts:
profile | can |
| read bills and vendors, run the checks, see the audit log |
| all of the above, plus create bills and record bank changes |
| all of the above, plus queue payment runs |
An analyst server does not refuse create_bill. It never lists it, so the model cannot try.
The files
file | |
| the tools, resources, prompt, and the profile setup at the bottom |
| matching, duplicate check, screening. No MCP in here, so it tests on its own |
| the mock ERP. Swap this for a real backend and the server stays the same |
| 3 vendors, 3 purchase orders, 5 bills |
| the logic on its own, one bill through the whole flow, and a check on tool names |
The five bills are set up so each one shows something: B-1001 is clean, B-1002 is a duplicate of it that came in through a different channel, B-1003 bills more than was received, B-1004 is from a vendor that changed bank details by email last week and has a memo asking for a payment change, and B-1005 has no purchase order.
Available Tools
11 toolscheck_duplicatesB
Check a bill against the vendor's earlier bills. A match sets the bill to exception.
Inputs: bill_id (required).
create_billA
Create a bill. Bills over 25,000 ask the user to confirm first.
Inputs: qty (required), due_date (required), vendor_id (required), unit_price (required), +3 more.
get_billB
Fetch one bill by id, with its total and status.
Inputs: bill_id (required).
get_pending_releasesB
List payment runs waiting to be released.
Inputs: no named parameters. Returns: result
get_vendorC
Fetch one vendor by id.
Inputs: vendor_id (required).
match_invoiceA
Match a bill against its PO and goods receipt. Returns matched, exception or no_po.
Inputs: bill_id (required).
read_audit_logB
Show the most recent audit entries.
Inputs: n. Returns: result
recommend_approvalA
Recommend approve or hold for a bill, with the reasons. Does not approve anything.
Inputs: bill_id (required).
request_payment_releaseA
Queue approved bills for a payment run. Someone releases the run in the ERP.
Inputs: bill_ids (required), run_date (required).
search_billsB
List bills, optionally filtered by status and vendor.
Inputs: status, vendor_id. Returns: result
update_vendor_bankB
Record a change to a vendor's bank details. The vendor is frozen until someone confirms it in the ERP.
Inputs: vendor_id (required), new_account (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Most tools have clearly distinct roles (create/get/search bills, match against PO, check duplicates, recommend approval, release payments). The only potential confusion is between check_duplicates and match_invoice, both bill-validation steps, but their descriptions ('earlier bills' vs 'PO and goods receipt') clearly separate them.
All tools follow a consistent snake_case verb_noun pattern (get_bill, search_bills, create_bill, match_invoice, request_payment_release). No mixing of conventions or vague verbs; the pattern is predictable throughout.
11 tools is well-scoped for a payables/AP workflow. Each tool maps to a distinct step (bill CRUD, validation, approval recommendation, payment release, audit) and earns its place without redundancy.
Core bill lifecycle (create, get, search, validate, recommend, release) and audit are covered, but there is no update_bill/void, no vendor search or create (only get_vendor by id), and no explicit approve action. These are workable gaps for a controlled approval workflow but leave some dead ends.
Maintenance
Related MCP Connectors
Accounts-payable exception environment with a pass/fail verifier and proof packet: AI agents work AP
Pink Agentic AI Payments: AI agents pay within spending rules (budgets, caps, approval). Sandbox.
Map how a company works, and run B2B order to cash with AI agents that ask before they act.
Payment infrastructure for AI agents: spending rules, approval flows, single-use virtual cards.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables natural-language-driven purchase-to-pay workflows against mock procurement and payment APIs, including invoice matching, exception handling, human approvals, and idempotent payment scheduling with a tamper-evident audit log.MIT
- AlicenseAqualityCmaintenanceEnables LLM agents to query and reconcile an accounts-payable ledger through safe read-only SQL, deterministic invoice-to-payment matching, and exception explanations for underpayments, duplicates, currency mismatches, and overdue invoices. Ships with a synthetic ledger, golden-set evals, and a month-end review workflow so quality can be measured in CI.4MIT
- AlicenseAqualityBmaintenanceIt enables an LLM agent to list and inspect invoices, run three-way matches against purchase orders and goods receipts, and route exceptions under server-enforced policy.5MIT
- FlicenseBqualityBmaintenanceEnables AI agents to act as accounts-payable clerks in procedurally generated simulated companies by exposing tools to read inboxes, look up vendors and purchase orders, contact counterparties, request approvals, pay or reject invoices, and receive scored verifier results while keeping the answer key server-side.20-