garu-mcp
An MCP server for the Garu payment platform. Create charges, manage customers, and discover products directly from any MCP client.
README
@garuhq/mcp
An MCP server for the Garu payment platform. Create charges, manage customers, and discover products — directly from any MCP client like Claude Desktop, Cursor, or Claude Code.
Features
- PIX Charges — Create instant PIX charges with auto-generated QR codes for Brazilian real-time payments.
- Boleto Charges — Generate boleto bancário payment slips.
- Charge Management — List, retrieve, and refund charges (full or partial).
- Products — List your seller's products and look them up by UUID — the same UUID accepted by the charge tools.
- Customers — Create, list, get, update, and remove customers linked to your seller account.
Setup
Create a Garu account and get your API key at garu.com.br.
Usage
Claude Code
claude mcp add garu -e GARU_API_KEY=sk_live_xxx -- npx -y --package=@garuhq/mcp@latest garu-mcp
Cursor
Open the command palette and choose "Cursor Settings" > "MCP" > "Add new global MCP server".
{
"mcpServers": {
"garu": {
"command": "npx",
"args": ["-y", "--package=@garuhq/mcp@latest", "garu-mcp"],
"env": {
"GARU_API_KEY": "sk_live_xxx"
}
}
}
}
Windsurf
Add to .windsurf/mcp.json:
{
"mcpServers": {
"garu": {
"command": "npx",
"args": ["-y", "--package=@garuhq/mcp@latest", "garu-mcp"],
"env": {
"GARU_API_KEY": "sk_live_xxx"
}
}
}
}
VS Code
Add to .vscode/mcp.json:
{
"mcpServers": {
"garu": {
"command": "npx",
"args": ["-y", "--package=@garuhq/mcp@latest", "garu-mcp"],
"env": {
"GARU_API_KEY": "sk_live_xxx"
}
}
}
}
Claude Desktop
Open Claude Desktop settings > "Developer" tab > "Edit Config".
{
"mcpServers": {
"garu": {
"command": "npx",
"args": ["-y", "--package=@garuhq/mcp@latest", "garu-mcp"],
"env": {
"GARU_API_KEY": "sk_live_xxx"
}
}
}
}
Codex
codex mcp add garu --env GARU_API_KEY=sk_live_xxx -- npx -y --package=@garuhq/mcp@latest garu-mcp
Tools
Products (5 tools)
| Tool | Description |
|---|---|
list_products |
List your seller's products with pagination and search |
get_product |
Get a single product by UUID — the identifier accepted by the charge tools |
get_product_portal_config |
Read per-product portal customization (B2B2C). Returns null if unset — product falls back to seller-level config |
set_product_portal_config |
Upsert with merge: only fields provided are written. Pass null on a field to inherit from seller |
clear_product_portal_config |
Remove the per-product config; product falls back to seller-level config |
Portal-config tools accept
productIdas either the product UUID (preferred — same id returned bylist_products) or the legacy numeric id. UUID support added in Garu v0.10.0.Use
list_productsto discover the UUID you'll pass tocreate_pix_chargeorcreate_boleto_charge.Per-product portal config is the B2B2C primitive: SaaS that models professionals/coaches/instructors as Products under one Seller can give each one custom branding (
businessName,primaryColor,logoUrl) and policies on the customer payment page +/minha-areaportal — all without fragmenting the seller's accounting.
Charges (5 tools)
| Tool | Description |
|---|---|
create_pix_charge |
Create a PIX charge with QR code |
create_boleto_charge |
Create a boleto bancário charge |
list_charges |
List charges with pagination and filters |
get_charge |
Get charge details by ID (includes status) |
refund_charge |
Refund a charge (full or partial) |
Customers (6 tools)
| Tool | Description |
|---|---|
create_customer |
Create a customer linked to your seller account |
list_customers |
List customers with search and pagination |
get_customer |
Get customer details by ID |
update_customer |
Update customer information |
delete_customer |
Remove customer from your seller account |
set_customer_billing_email_override |
Override the billing-email used for that customer |
Scheduled charges (13 tools)
Bill an existing customer on a future date — one-time or recurring with card tokenization.
| Tool | Description |
|---|---|
create_scheduled_charge |
Schedule a future charge. type='recurring' enables silent-charge of saved card on cycle 2+. Optional maxRecoveryDays (1–365) caps how long past dueDate the recovery sweep keeps auto-billing a missed charge (default 14) |
list_scheduled_charges |
Paginated list with filters by status, type, due-date range, customer |
get_scheduled_charge |
Detail bundle: charge + event timeline + linked transactions |
mark_paid_scheduled_charge |
Mark a cycle paid (off-Garu reconciliation) |
charge_now_scheduled_charge |
Force-bill the current cycle now instead of waiting for the due date (same dispatch as the daily cron). Idempotent — reports already_sent rather than re-charging |
postpone_scheduled_charge |
Move next due date forward |
pause_scheduled_charge / resume_scheduled_charge |
Suspend / re-enable a series |
cancel_recurrence_scheduled_charge |
Hard-stop future cycles (recurring only) |
cancel_at_period_end_scheduled_charge |
Stripe-style soft-cancel; reversible |
change_scheduled_charge_payment_method |
Swap the saved card |
clear_scheduled_charge_payment_method |
Remove saved card; future cycles email-with-link |
list_scheduled_charge_attempts |
Per-attempt billing log (v0.8.2). Each row carries the canonical failureCode for declines — use this to debug recurring billing failures without joining Transactions |
Resources
garu://docs/quickstart— Getting started guidegaru://docs/openapi— Link to the OpenAPI spec
Environment Variables
GARU_API_KEY— Your Garu API key (required). Get yours at garu.com.br.
Local Development
- Clone and build:
git clone https://github.com/Garu-Pagamentos/garu-mcp.git
npm install
npm run build
- To use the local build, replace the
npxcommand with the path to your local build:
Claude Code:
claude mcp add garu -e GARU_API_KEY=sk_live_xxx -- node /absolute/path/to/garu-mcp/dist/index.js
Cursor / VS Code / Windsurf / Claude Desktop:
{
"mcpServers": {
"garu": {
"command": "node",
"args": ["/absolute/path/to/garu-mcp/dist/index.js"],
"env": {
"GARU_API_KEY": "sk_live_xxx"
}
}
}
}
- Run tests:
npm test
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。