wave-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., "@wave-mcp show me all unpaid invoices for Acme Corp"
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.
wave-mcp
An MCP (Model Context Protocol) server that lets Claude, or any other MCP client, work in a Wave Accounting business: look up customers, invoices, products, taxes and accounts, and create or change them.
This is Propel Digital Marketing's extended fork of LunaParker/waveapps-mcp (MIT). It is shared as-is, as a starting point. It has not been packaged or tested for anyone else's setup, and it will not run until you make the edits listed in What you must change.
What this fork adds
Compared with the upstream project:
Wave's official public API. Most tools now use Wave's public GraphQL API with a Full Access Token from Wave's developer portal, instead of the browser session. Only customer contacts and recurring invoices still use the internal (signed-in session) API.
One business per server. The server is pinned to one Wave business (
WAVE_BUSINESS_ID) and refuses requests for any other.Tool policy. Only read tools are switched on by default. Write and destructive tools must be enabled on purpose in a policy file (see Tool policy).
Confirmation for risky writes. Approving, sending or marking an invoice sent, and recording, changing or deleting a payment, return a preview first and only run when the caller confirms that exact preview.
Write audit log. Every write attempt is logged to stderr with the tool, the target and the caller's ID.
Named HTTP callers. The HTTP transport can admit several callers, each with its own bearer token and ID, and keeps their sessions apart.
Hosted mode.
WAVE_MCP_HOSTED=1runs the server as a long-lived service. At startup it fetches the Wave token and an automation user's login from Infisical, signs in with a headless browser, and checks that the login can see the pinned business.Docker image (
Dockerfile) and an exampledocker-compose.example.yml.
Related MCP server: hermes-quickbooks
Tools
31 tools. read tools are on by default; the rest need the tool policy.
Tier | Tools |
read |
|
write |
|
destructive |
|
* Needs a confirmed preview before it runs.
The full list, with which API each tool uses, is in src/tools/tool-catalog.ts.
What you must change
Nothing below is filled in. Work through this list before the first run.
# | What | Where | Why |
1 | Your Wave business ID (a UUID) |
| Required in every mode. The server will not start without a valid UUID. Find it in the Wave URL after sign-in: |
2 | Wave public-API Full Access Token |
| Most tools call Wave's public API. Create the token in Wave's developer portal while signed in as the business owner. Without it, public-API tools fail. |
3 | A Wave sign-in for the internal-API tools | Run | Customer-contact and recurring-invoice tools use Wave's internal API, which needs a signed-in browser session. |
4 | Which write tools to allow | A JSON file named in | Only read tools work until you allow others. See Tool policy. |
5 | HTTP caller tokens (only for HTTP transport) |
| Generate your own long random tokens (for example |
6 | Infisical settings (only for hosted mode) |
| Hosted mode reads secrets from Infisical only. See Hosted mode. If you don't use Infisical, don't use hosted mode; or replace |
7 | Docker compose values (only for Docker) |
| Replace every |
8 | Repository links (only if you re-publish) |
| They point at this repo. Change them to yours. |
Quick start (local, one person, stdio)
Needs Node.js 20.18 or newer and a Wave account.
git clone https://github.com/propel-marketing/wave-mcp.git
cd wave-mcp
npm install
npm run build
npx playwright install chromium # browser used for Wave sign-in
node dist/server.js login # sign in to Wave in the window that opens (needed for #3)Then add it to your MCP client with your own values. Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"wave": {
"command": "node",
"args": ["/absolute/path/to/wave-mcp/dist/server.js"],
"env": {
"WAVE_BUSINESS_ID": "<your-business-uuid>",
"WAVE_PUBLIC_ACCESS_TOKEN": "<your-wave-full-access-token>",
"WAVE_MCP_TOOL_POLICY_FILE": "/absolute/path/to/tool-policy.json"
}
}
}
}Claude Code:
claude mcp add wave \
-e WAVE_BUSINESS_ID=<your-business-uuid> \
-e WAVE_PUBLIC_ACCESS_TOKEN=<your-wave-full-access-token> \
-- node /absolute/path/to/wave-mcp/dist/server.jsKeep the token out of any file you commit or share.
Wave sign-in commands
These come from upstream and are unchanged: login (sign in in a browser window), paste (paste session cookies by hand), save-password (store your Wave password and TOTP secret in the OS credential store for automatic re-sign-in), refresh, whoami and logout. Run them as node dist/server.js <command>. Wave sessions last at most 18 hours. Storing the password and TOTP secret lets the server sign itself back in, but it means one machine alone can sign in as you. Read upstream's README for the full trade-offs.
Tool policy
Without a policy file, only read tools work. To allow writes, create a JSON file and point WAVE_MCP_TOOL_POLICY_FILE at it:
{
"allowedTiers": ["read", "write"],
"tools": {
"wave_create_customer": { "allow": true, "tier": "write" },
"wave_create_invoice": { "allow": true, "tier": "write" },
"wave_send_invoice": { "allow": true, "tier": "write" }
}
}Rules:
A tool runs only if it is allowed and its tier is in
allowedTiers.tiermust match the tool's tier insrc/tools/tool-catalog.ts, and tool names must exist. Otherwise the server refuses to start.Add
"destructive"toallowedTiersonly if you really want deletes.
HTTP transport
Set WAVE_MCP_TRANSPORT=http. It listens on WAVE_MCP_BIND:WAVE_MCP_PORT (default 127.0.0.1:8765) at /mcp.
Use one of these to set who may call it:
Several named callers (recommended):
WAVE_MCP_HTTP_CONSUMERS='[{"consumerId":"alice","token":"<long-random-token-1>"},{"consumerId":"reporting-bot","token":"<long-random-token-2>"}]'IDs and tokens must all be different. Callers send
Authorization: Bearer <their token>, and their ID appears in the write audit log.One caller:
WAVE_MCP_HTTP_TOKEN(orWAVE_MCP_HTTP_TOKEN_FILE), plus optionalWAVE_MCP_HTTP_CONSUMER_ID.
A token is required whenever the bind address isn't loopback. Don't expose the port on the public internet. Use a private network or VPN, or the gateway/ folder (Google sign-in in front of the server; its setup is in upstream's README).
Run it as a hosted service (Docker)
Hosted mode is how Propel runs it. It suits a server shared by several callers, and requires Infisical.
Store four secrets in Infisical:
The Wave Full Access Token, at the project, environment and path you name in
WAVE_INFISICAL_PUBLIC_*. Its secret name goes inWAVE_INFISICAL_PUBLIC_KEY.A dedicated Wave automation user's login, at the location named in
WAVE_INFISICAL_LOGIN_*, under exactly these secret names:LOGIN_IDENTIFIER(email),LOGIN_PASSWORDandLOGIN_TOTP_SECRET. Secrets must be type "shared".The automation user must be a member of the business in
WAVE_BUSINESS_ID.
Create an Infisical machine identity with read access to those paths only, and get its access token for
INFISICAL_TOKEN.INFISICAL_URLmust be an HTTPS origin only, such ashttps://app.infisical.com.Create a secrets env file on the host (
chmod 600, not in git) withINFISICAL_TOKEN=...andWAVE_MCP_HTTP_CONSUMERS=[...].Copy
docker-compose.example.ymltodocker-compose.ymland replace every<PLACEHOLDER>.Build and start:
docker compose build docker compose up -d docker compose logs -f
At startup the server checks its configuration, reads the secrets, signs in once with the headless browser, and confirms the login can see the pinned business. Only then does it listen. If any step fails, it exits with a STARTUP_* error and a hint, and does not retry (restart: "no"). Check the hint before you restart: repeated failed sign-ins can make Wave ask for a CAPTCHA.
Hosted mode refuses WAVE_MCP_HTTP_TOKEN_FILE, WAVE_PASSWORD_FILE and WAVE_TOTP_SECRET_FILE, and must have no CLI command. A healthy server answers an unauthenticated request to /mcp with 401.
Environment variables
Variable | Used in | Meaning |
| all | Required. The one Wave business UUID this server works on. |
| local | Wave public-API Full Access Token. In hosted mode it comes from Infisical instead. |
| all | Path to the tool policy JSON. Unset means read tools only. |
| all |
|
| http | Listen address and port. Default |
| http | JSON list of |
| http | Single-caller alternative. |
| hosted |
|
| hosted | Infisical HTTPS origin and machine-identity access token. |
| hosted | Where the Wave Full Access Token is stored. |
| hosted | Where |
| local | Use these session cookies instead of the stored sign-in. |
| local | Automatic re-sign-in without an OS credential store. |
| all | Where the sign-in and browser profile are kept. Default |
| all | Use this Chromium-based browser instead of Playwright's. |
| all |
|
Development
npm testruns the test suite. It is fully mocked and never touches Wave.npm run test:livechecks the tools still match Wave's APIs without signing in.test:live:signed-inandtest:live:writesuse a real account (see the scripts inpackage.json).cd gateway && uv sync --locked && uv run pytesttests the optional gateway.This copy has had no tests run on it since it was taken from Propel's working repository.
Caveats
Wave's internal API is undocumented and can change without notice. Tools that use it (contacts, recurring invoices, sign-in) can break.
Everything acts on your real Wave books. Start with read-only, then allow write tools one at a time.
This repository is provided as-is, with no support commitment.
Licence
MIT, see LICENSE. The original work is © Luna Parker; Propel Digital Marketing's changes are under the same licence.
Available Tools
30 toolswave_approve_invoicePreview/confirm public Wave invoice approvalB
Two-step only: preview actual fully owned DRAFT/current state, then return its fingerprint+expiresAt with confirm:true after review. Fresh state/consumer/tool/business/input binding, single use before mutation, audit awaited. No provider atomic conditional guarantee.
Inputs: invoiceId (required), businessId, confirmation.
wave_archive_productArchive public Wave productBIdempotent
Archives a trusted product via productArchive, never deletes. Requires write policy and consumer identity; awaits audit and verifies returned archive state.
Inputs: productId (required), businessId.
wave_clone_invoiceClone public Wave invoice as draftB
Reads a fully owned source, then creates a NEW DRAFT using captured product-backed lines, explicit tax IDs and actual discount subtype mapping. Requires deliberately selected invoiceDate/dueDate; omit invoiceNumber to request provider fresh auto-number, or supply a new value. Never copies IDs/totals/payments/sent metadata, never uses unproven direct invoiceClone status semantics. No atomic/snapshot guarantee.
Inputs: dueDate (required), invoiceId (required), invoiceDate (required), businessId, +1 more.
wave_create_customerCreate public Wave customerC
Creates a customer only when server policy allows writes; awaits audit completion.
Inputs: name (required), fax, email, phone, +11 more.
wave_create_invoiceCreate public Wave draft invoiceA
Creates DRAFT only after customer/product/tax ownership preflight. Every line requires existing productId; omitted taxes use provider product defaults, explicit [] is distinct no-tax intent. Precision strings unchanged. Supported single FIXED/PERCENTAGE discount for next-invoice credit, not negative-price credit or stored balance/money movement. Denied by default and audit awaited; never approves/sends.
Inputs: customerId (required), memo, items, title, +24 more.
wave_create_productCreate public Wave productB
Creates a product with exact decimal string price. Sold/bought intent uses income/expense account IDs, never invented boolean mutation fields. Explicit null account clearing is passed as provider input, not a proven live flag guarantee. Denied by default; audit awaited.
Inputs: name (required), unitPrice (required), businessId, description, +3 more.
wave_delete_customerDelete public Wave customerBDestructive
Destructive deletion is denied by default; requires explicit server policy, trusted ownership and awaited audit. No retry.
Inputs: customerId (required), businessId.
wave_delete_invoiceDelete public Wave draft invoiceADestructive
Destructive policy denied by default. Reads actual ownership/current state, refuses every non-DRAFT before one invoiceDelete. No atomic conditional-delete guarantee; ambiguous effects are never retried, audit awaited.
Inputs: invoiceId (required), businessId.
wave_delete_paymentDeferred Wave payment deletionDDestructive
A79 FAIL-CLOSED DEFERRED in Phase1; typed error and ZERO provider calls. Unaccepted for full FR6 until gated Phase2/3 origin verification. No processor probe/provenance ledger.
Inputs: paymentId (required), businessId.
wave_get_businessGet pinned Wave businessBRead-only
Returns the configured business only; caller overrides cannot switch businesses.
Inputs: businessId.
wave_get_customerGet a public Wave customerBRead-only
Returns the complete public customer record only after trusted business ownership verification; no internal-only additional contacts are implied.
Inputs: customerId (required), businessId.
wave_get_invoiceGet public Wave invoice detailCRead-only
Reads actual full invoice state, line products/taxes/discounts/payments with precise decimal strings and all nested ownership validation. Nullable arrays/entries preserved, no manual-payment classification or mutation/confirmation execution implied.
Inputs: invoiceId (required), businessId.
wave_get_productGet public Wave productCRead-only
Gets a product only after trusted root, product and nested account/tax ownership validation; does not use the internal API.
Inputs: productId (required), businessId.
wave_get_recurring_invoiceGet one internal Wave recurring invoiceBRead-only
Read-only exact ID and actual business_id proof; returns complete state/customer/currency/precise total/terms/first-previous-next/count/product/taxes and schedule/delivery/payment settings plus every raw field. Required fields may be null but never silently fabricated from missing data. Auth and scope failures explicit; no writes or live proof implied.
Inputs: recurringInvoiceId (required), businessId.
wave_list_accountsList public accountsCRead-only
Walks all delivered offset pages. Active by default; explicitly request archived-only or all. Balances/rate history retained; no stable snapshot promised.
Inputs: page, pageSize, businessId, isArchived.
wave_list_businessesList pinned Wave business diagnosticCRead-only
Returns only the configured business. Never enumerates all businesses accessible to the token.
Inputs: businessId.
wave_list_customer_contactsList internal Wave customer contactsCRead-only
Requires internal authentication. Standard public lookup proves actual customer ownership only; contacts/full billing-shipping snapshot come exclusively from the captured internal query. No inferred public contact fields.
Inputs: customerId (required), businessId.
wave_list_customersList public Wave customersBRead-only
Lists full public customer records across offset pages. Email is exact, case-insensitive; name is a case-insensitive substring. Incomplete walks include continuation, not a complete-roster claim. No snapshot guarantee.
Inputs: name, page, email, pageSize, +1 more.
wave_list_invoicesList public Wave invoice summariesARead-only
Complete public summary pagination with schema-supported filters and exact decimal totals. InvoiceNumber filter is provider substring matching, not exact identity. Invoice and nested customer owners are verified from each returned summary. Use get for line taxes/payments/current confirmation detail. No snapshot guarantee.
Inputs: page, sort, status, currency, +10 more.
wave_list_productsList public Wave productsBRead-only
Lists complete public product records with precise price strings, sold/bought flags, default taxes and account data. Active by default; explicit true archives-only/null all. No snapshot guarantee.
Inputs: page, isSold, isBought, pageSize, +2 more.
wave_list_recurring_invoicesList internal Wave recurring invoicesBRead-only
Read-only pinned-business schedules. Every raw row owned/typed before exposure. Preserves all delivered raw fields plus precise summary; GET each record for products/taxes/schedule/delivery absent from list responses. page/pageSize legacy batch bound200/default25 is provisional, not verified provider maximum. allPages walks until EMPTY with explicit partial continuation; otherwise call nextPage until complete. Legacy meta.page echo and totalPages header-or-derived values NEVER terminate a walk. No deduplication/stable snapshot guarantee; no recurring writes.
Inputs: page, sort, state, allPages, +3 more.
wave_list_sales_taxesList public salesTaxesBRead-only
Walks all delivered offset pages. Active by default; explicitly request archived-only or all. Balances/rate history retained; no stable snapshot promised.
Inputs: page, pageSize, businessId, isArchived.
wave_mark_invoice_sentPreview/confirm public Wave invoice marked-sentA
Requires separately approved invoice. Captures exact sendMethod/sentAt and full current owned state; preview/explicit single-use confirm required. Does not send email or auto-approve, no ambiguous retry, audit awaited.
Inputs: invoiceId (required), sendMethod (required), sentAt, businessId, +1 more.
wave_record_paymentPreview/confirm manual Wave payment accounting recordB
Explicit invoicePaymentCreateManual ONLY: never charges/refunds/reverses processor funds. Requires owned approved invoice and owned active account, exact amount/currencies/exchange-rate snapshot, preview then single-use explicit confirmation. No inferred origin classifier. UPDATE/DELETE remain deferred/unaccepted for full FR6 under A79; no automatic mutation retry.
Inputs: amount (required), invoiceId (required), paymentDate (required), exchangeRate (required), +5 more.
wave_send_invoicePreview/confirm public Wave invoice sendingB
Requires separate explicit approval first and emailSendEnabled. Every recipient is explicit in to (no maximum inferred); ccMyself is pinned FALSE so preview never hides an unknown provider-self recipient. Include your own actual email in to if wanted. Never edits customer/auto-approves. Preview then confirm its original fingerprint+expiresAt; changed recipient/input/state invalidates, replay cannot send twice.
Inputs: to (required), invoiceId (required), message, subject, +4 more.
wave_set_customer_contactsPreview/confirm full internal contact replacementADestructive
Replaces WHOLE list: every existing contact is deleted with {id} ONLY, then new contacts (new IDs) inserted. [] removes all. Preview explicitly exposes all deleted records and exact address/shipping preservation patch; unchanged full snapshot and explicit single-use confirmation required. Public lookup is ownership only. No blind retry or provider CAS guarantee.
Inputs: contacts (required), customerId (required), businessId, confirmation.
wave_update_customerUpdate public Wave customerBIdempotent
Reads and verifies ownership, merges omitted address/shipping fields, preserves explicit null clears, then writes once and awaits audit.
Inputs: customerId (required), fax, name, email, +12 more.
wave_update_invoiceUpdate public Wave draft invoiceAIdempotent
Reads current ownership/state and refuses non-DRAFT before one patch, forces DRAFT and verifies response. Supplied items replace the ENTIRE list: send complete intended items, not a partial edit. Omitted items/taxes stay omitted. No atomic version precondition/provider concurrency guarantee; never auto-approves/sends/retries.
Inputs: invoiceId (required), memo, items, title, +25 more.
wave_update_paymentDeferred Wave payment updateC
A79 FAIL-CLOSED DEFERRED in Phase1; typed error and ZERO provider calls. Unaccepted for full FR6 until gated Phase2/3 origin verification. No caller assertion enables it.
Inputs: paymentId (required), businessId.
wave_update_productUpdate public Wave productBIdempotent
Reads trusted product ownership and all current references. Omitted tax defaults are explicitly preserved. Supplied account/tax references are validated before one public patch. Does not retry ambiguous outcomes.
Inputs: productId (required), name, unitPrice, businessId, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 30 tools
Most tools map to a distinct resource/action pair, and descriptions clarify subtle boundaries like send vs. mark-sent. However, get_business and list_businesses effectively return the same configured business, and update_payment/delete_payment are present but fail-closed, creating misleading choices.
All tools use a consistent wave_ prefix followed by snake_case verb_noun naming, such as wave_create_invoice, wave_list_customers, and wave_delete_customer. Conventions remain stable across the entire 30-tool set.
The server exposes 30 tools, which is heavy for the apparent scope, especially since two payment tools are deferred and nonfunctional. The accounting domain is broad, but several read-only resources and lifecycle variants inflate the surface beyond a well-scoped set.
Core customer, product, invoice, and payment-recording workflows are covered, but recurring invoices are read-only with no create/update/delete, payment update/delete are explicitly deferred, and account/tax surfaces are read-only. These are notable gaps for a full accounting lifecycle.
Maintenance
Related MCP Connectors
Discover, plan and run tools across your connected business systems through one OAuth MCP endpoint
One MCP endpoint for your company's tools, with per-person sign-in, policy and audit.
Invoicing, expenses, accounting analytics, with invoice and revenue views. OAuth 2.1, no API key.
Connect your First AI Employee workspace to review authorized business records, including contacts, tasks, calls, bookings, forms and reports. Prepare supported changes as an exact preview for approval before applying them. OAuth sign-in is required; available tools depend on account permissions, enabled products and access. Website: https://firstaiemployee.com/ . Setup: https://developer.firstaiemployee.com/mcp/
Related MCP Servers
- AlicenseAqualityFmaintenanceProvides complete MCP access to Wave Accounting, enabling AI assistants to manage invoices, payments, customers, and bookkeeping via natural language.3050 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to interact with QuickBooks Online accounting data through typed tools, including OAuth 2.0 authentication, tenant isolation, and approval-gated writes that require operator execution.MIT
- AlicenseAqualityCmaintenanceEnables MCP clients to work with Wave invoicing for a single business, including looking up customers and invoices, creating customers and draft invoices, and approving, sending, or recording payments behind a preview-then-confirm step.1715 npmMIT
- AlicenseBqualityBmaintenanceEnables agents to access and manage Wave accounting data, including the full public GraphQL API, live transactions, payments, reports, and context-safe pagination of real books.7371 npm1MIT