# Wafeq [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/ohneben/Wafeq-MCP  
**GitHub Stars:** 1  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/wafeq

## Description
Wafeq accounting API: all 251 endpoints as safety-categorized MCP tools, over stdio or HTTP.

## Tools
Capabilities this server exposes over MCP:

- **wafeq_account_ledger** — _hand-written_
- **wafeq_accounts_list** — GET /accounts/
- **wafeq_accounts_retrieve** — GET /accounts/{id}/
- **wafeq_amortizations_list** — GET /amortizations/
- **wafeq_amortizations_retrieve** — GET /amortizations/{id}/
- **wafeq_bank_accounts_ledger_transactions_list** — GET /bank-accounts/{bank_account_id}/ledger-transactions/
- **wafeq_bank_accounts_ledger_transactions_retrieve** — GET /bank-accounts/{bank_account_id}/ledger-transactions/{id}/
- **wafeq_bank_accounts_list** — GET /bank-accounts/
- **wafeq_bank_accounts_retrieve** — GET /bank-accounts/{id}/
- **wafeq_bank_accounts_statement_transactions_list** — GET /bank-accounts/{bank_account_id}/statement-transactions/
- **wafeq_bank_accounts_statement_transactions_retrieve** — GET /bank-accounts/{bank_account_id}/statement-transactions/{id}/
- **wafeq_beneficiaries_list** — GET /beneficiaries/
- **wafeq_beneficiaries_retrieve** — GET /beneficiaries/{id}/
- **wafeq_bills_line_items_list** — GET /bills/{bill_id}/line-items/
- **wafeq_bills_line_items_retrieve** — GET /bills/{bill_id}/line-items/{id}/
- **wafeq_bills_list** — GET /bills/
- **wafeq_bills_retrieve** — GET /bills/{id}/
- **wafeq_branches_list** — GET /branches/
- **wafeq_branches_retrieve** — GET /branches/{id}/
- **wafeq_contacts_list** — GET /contacts/
- **wafeq_contacts_retrieve** — GET /contacts/{id}/
- **wafeq_cost_centers_list** — GET /cost-centers/
- **wafeq_cost_centers_retrieve** — GET /cost-centers/{id}/
- **wafeq_credit_notes_line_items_list** — GET /credit-notes/{credit_note_id}/line-items/
- **wafeq_credit_notes_line_items_retrieve** — GET /credit-notes/{credit_note_id}/line-items/{id}/
- **wafeq_credit_notes_list** — GET /credit-notes/
- **wafeq_credit_notes_retrieve** — GET /credit-notes/{id}/
- **wafeq_custom_fields_list** — GET /custom-fields/
- **wafeq_custom_fields_retrieve** — GET /custom-fields/{id}/
- **wafeq_debit_notes_line_items_list** — GET /debit-notes/{debit_note_id}/line-items/
- **wafeq_debit_notes_line_items_retrieve** — GET /debit-notes/{debit_note_id}/line-items/{id}/
- **wafeq_debit_notes_list** — GET /debit-notes/
- **wafeq_debit_notes_retrieve** — GET /debit-notes/{id}/
- **wafeq_employees_list** — GET /employees/
- **wafeq_employees_retrieve** — GET /employees/{id}/
- **wafeq_expenses_list** — GET /expenses/
- **wafeq_expenses_retrieve** — GET /expenses/{id}/
- **wafeq_files_list** — GET /files/
- **wafeq_files_retrieve** — GET /files/{id}/
- **wafeq_invoices_line_items_list** — GET /invoices/{invoice_id}/line-items/
- **wafeq_invoices_line_items_retrieve** — GET /invoices/{invoice_id}/line-items/{id}/
- **wafeq_invoices_list** — GET /invoices/
- **wafeq_invoices_retrieve** — GET /invoices/{id}/
- **wafeq_item_units_of_measure_list** — GET /item-units-of-measure/
- **wafeq_item_units_of_measure_retrieve** — GET /item-units-of-measure/{id}/
- **wafeq_items_list** — GET /items/
- **wafeq_items_retrieve** — GET /items/{id}/
- **wafeq_journal_line_items_list** — GET /journal-line-items/
- **wafeq_journal_line_items_retrieve** — GET /journal-line-items/{id}/
- **wafeq_manual_journals_list** — GET /manual-journals/
- **wafeq_manual_journals_retrieve** — GET /manual-journals/{id}/
- **wafeq_organization_retrieve** — GET /organization/
- **wafeq_payment_requests_list** — GET /payment_requests/
- **wafeq_payment_requests_retrieve** — GET /payment_requests/{id}/
- **wafeq_payments_list** — GET /payments/
- **wafeq_payments_retrieve** — GET /payments/{id}/
- **wafeq_payslips_list** — GET /payslips/
- **wafeq_payslips_pay_items_list** — GET /payslips/{payslip_id}/pay-items/
- **wafeq_payslips_pay_items_retrieve** — GET /payslips/{payslip_id}/pay-items/{id}/
- **wafeq_payslips_retrieve** — GET /payslips/{id}/
- **wafeq_projects_list** — GET /projects/
- **wafeq_projects_retrieve** — GET /projects/{id}/
- **wafeq_purchase_orders_line_items_list** — GET /purchase-orders/{purchase_order_id}/line-items/
- **wafeq_purchase_orders_line_items_retrieve** — GET /purchase-orders/{purchase_order_id}/line-items/{id}/
- **wafeq_purchase_orders_list** — GET /purchase-orders/
- **wafeq_purchase_orders_retrieve** — GET /purchase-orders/{id}/
- **wafeq_quotes_line_items_list** — GET /quotes/{quote_id}/line-items/
- **wafeq_quotes_line_items_retrieve** — GET /quotes/{quote_id}/line-items/{id}/
- **wafeq_quotes_list** — GET /quotes/
- **wafeq_quotes_retrieve** — GET /quotes/{id}/
- **wafeq_reports_balance_sheet_list** — GET /reports/balance-sheet/
- **wafeq_reports_cash_flow_list** — GET /reports/cash-flow/
- **wafeq_reports_profit_and_loss_list** — GET /reports/profit-and-loss/
- **wafeq_reports_trial_balance_list** — GET /reports/trial-balance/
- **wafeq_revenue_recognitions_list** — GET /revenue-recognitions/
- **wafeq_revenue_recognitions_retrieve** — GET /revenue-recognitions/{id}/
- **wafeq_simplified_invoices_line_items_list** — GET /simplified-invoices/{invoice_id}/line-items/
- **wafeq_simplified_invoices_line_items_retrieve** — GET /simplified-invoices/{invoice_id}/line-items/{id}/
- **wafeq_simplified_invoices_list** — GET /simplified-invoices/
- **wafeq_simplified_invoices_retrieve** — GET /simplified-invoices/{id}/

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "wafeq": {
    "url": "https://api.wafeq.com/v1"
  }
}
```

## Documentation

## What the Wafeq MCP server does

The Wafeq MCP server exposes Wafeq's Public API as MCP tools for AI assistants. It includes all 251 API endpoints generated from the OpenAPI specification, along with two hand-written tools. The available surface covers accounting resources such as accounts, bills, invoices, credit and debit notes, contacts, bank accounts, payments, journals, payroll, projects, inventory, and reports.

Tools are labeled with one of nine safety categories. Read-only operations are separated from writes, state changes, and irreversible or destructive actions. MCP annotations such as `readOnlyHint` and `destructiveHint` give compatible hosts additional information for trust and confirmation decisions.

## How it works

An MCP client communicates with the Wafeq MCP server, which sends authenticated HTTPS requests to Wafeq for the selected organization. At startup, the server loads the bundled OpenAPI document, resolves references, builds the tool schemas, removes server-assigned read-only fields from request bodies, and checks the organization associated with the credentials.

Credentials remain in the server environment rather than being passed through the model. The server also prevents the passthrough tool from replacing the authorization header or redirecting requests to another host.

Request handling includes retries with jittered exponential backoff for transient `429` and `5xx` responses, honoring `Retry-After`. Supported write operations receive automatically generated Wafeq idempotency keys that remain stable across retries. Client-side rate limiting helps avoid bursts that could trigger a rate response.

Report-specific validation is built into the server. It uses the appropriate date fields for each report and checks that profit-and-loss and cash-flow ranges cover whole months or years before making the API request. PDF responses are returned as base64-encoded data with content type and size information, while supported file uploads accept base64 content and a filename.

## Setup and configuration

A Wafeq organization with API access is required. Authentication can use a private Wafeq API key or an OAuth2 access token.

For local execution, use the stdio transport with an MCP client such as Claude Desktop or Cursor. For a hosted deployment, use Streamable HTTP. Docker and docker-compose are supported, including a health check and automatic restart; the documented compose setup binds the service to localhost. HTTP deployments can optionally require a bearer token.

The server verifies the credential's organization at startup and publishes the result through `/health`, allowing operators to check which organization is connected. A newer Wafeq API specification can be incorporated by replacing the specification file and rebuilding.

## Tools and capabilities

The Wafeq MCP server provides tools for listing and retrieving resources, alongside tools for creating, updating, deleting, filing, uploading, and other API operations included in Wafeq's specification. The supplied examples include account ledgers, accounts, amortizations, bank-account transactions, beneficiaries, bills and line items, branches, contacts, cost centers, credit notes, and custom fields.

The hand-written account-ledger tool supplements the generated endpoint tools. The implementation also handles multipart and raw-binary file uploads, binary PDF responses, transaction-date recovery for journal line items, automatic idempotency, retries, throttling, and safety metadata.

## Limitations and notes

The server's coverage follows the Wafeq OpenAPI specification, so behavior depends on the endpoints and permissions available to the connected Wafeq organization. Wafeq silently ignores misspelled query parameters, making correct report parameter names important. Some operations that look like ordinary POST requests can change state or be irreversible, including filing an invoice with a tax authority; review the safety category before allowing an agent to call them.

HTTP bearer-token protection is optional and should be considered when the service is reachable beyond localhost.

_Full upstream README: https://allmcps.com/mcp/wafeq/readme_

