Wafeq logo

Wafeq

Connects AI assistants to all 251 Wafeq API endpoints through safety-labeled MCP tools over stdio or Streamable HTTP.

Install Wafeq

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
https://api.wafeq.com/v1

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Claude Code command
claude mcp add --transport http wafeq https://api.wafeq.com/v1

Run in your terminal, then run /mcp in Claude Code to sign in if the server asks.

Overview

The Wafeq MCP server connects AI assistants to Wafeq's Public API, exposing 251 OpenAPI-generated endpoints and two hand-written tools. It supports accounting operations across invoices, bills, banking, journals, payroll, projects, inventory, and reports, with safety categories and MCP annotations for read-only, write, state-changing, and destructive actions. Run it over stdio for local clients such as Claude Desktop or Cursor, or use Streamable HTTP for a hosted deployment. Reach for it when an agent needs to query or update a Wafeq organization's books while preserving request validation, retries, rate limiting, and credential isolation.

Use cases

  • Query profit-and-loss results for a whole reporting period
  • Find unpaid invoices and retrieve customer details
  • Create draft invoices and record payments
  • Download invoice PDFs or attach receipts
  • Reconcile bank statement lines with ledger transactions

Key features

  • 251 Wafeq API endpoints exposed as MCP tools
  • Safety categories and MCP read-only or destructive annotations
  • stdio and Streamable HTTP transports
  • Automatic retries, idempotency keys, and rate limiting
  • Multipart uploads and base64-encoded PDF responses
  • Startup organization verification and optional HTTP bearer authentication

Tools80

What Wafeq lets your agent do. Expand a tool for its parameters.

Self-reported~1.1k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 60d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commit2mo agoMost recent push to the default branch.
Tools exposed80Callable tools this server registers over MCP.

How Wafeq works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Wafeq

Wafeq is an MCP server that connects AI assistants to the Wafeq Public API through 251 generated endpoints and two hand-written tools. Its tools cover accounting data and actions including accounts, bills, invoices, banking, payments, journals, payroll, projects, inventory, and reports, with safety categories identifying operation risk.

Use the project's stdio setup for a local MCP client or run its Docker and docker-compose deployment for Streamable HTTP. You need a Wafeq organization with API access and either a private API key or OAuth2 access token.

Yes, Wafeq works with Cursor through the MCP transport. It also supports Claude Desktop and other MCP clients; local clients can use stdio, while hosted deployments can expose Streamable HTTP.

It automatically adds a UUID v4 Wafeq idempotency key to supported write requests and reuses that key across retries. You can also provide your own key when a deliberate safe re-run is required.

Yes, it supports the documented multipart and raw-binary file upload patterns and accepts base64 content with a filename. PDF responses from supported endpoints are encoded as base64 with content type and size information instead of being treated as text.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewWafeq AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/wafeq?style=directory)](https://allmcps.com/mcp/wafeq)
HTML Embed
<a href="https://allmcps.com/mcp/wafeq"><img src="https://allmcps.com/api/badge/wafeq?style=directory" alt="Wafeq on AllMCPs" /></a>