Skip to content

Loger MCP (Claude Code) ​

Loger exposes a remote MCP server at POST /mcp so Claude Code can read and record the finances of a user's current household. Access uses OAuth (Laravel Passport): no server access or manual tokens are needed.

Connect (any Loger user) ​

bash
claude mcp add --transport http loger https://<domain>/mcp

Claude Code opens the browser. Log into Loger, review what Claude Code asks for and press Authorize. To disconnect, go to Settings → Security → Connected apps.

ScopeLets the app
mcp:readRead the household finances (default)
mcp:writeCreate and edit transactions, schedule recurring payments, import bank statements and planner items, and mark payments as paid

Tokens last 30 days and refresh for up to 90.

Tools ​

ToolScopeAnswers
get_month_briefread«¿Cómo voy este mes?»
get_spending_by_categoryread«¿Cuánto llevo en supermercado?»
list_transactionsread«¿Cuándo pagué Claro?»
get_upcoming_paymentsread«¿Qué pagos vienen esta semana?»
list_accounts_and_categoriesreadTurns names into ids
create_transactionwrite«Registra RD$2,400 de Claro en Teléfono»
update_transactionwrite«Pon el pago de Qik como transferencia a la tarjeta», «Aprueba el borrador de Jumbo como Groceries» (only the fields sent change; split transactions and deleting are not supported)
create_planned_transactionwrite«Programa la terapia de la niña, RD$12,000 cada 4 semanas desde el 1 de diciembre» (DAILY, WEEK_DAY, WEEK or MONTHLY every 1–52 units; returns the next dates and moves forward when the real payment is recorded)
mark_payment_paidwrite«Marca el alquiler como pagado»
add_planner_itemswrite«Importa este calendario del colegio»
import_bank_statementwrite«Importa este estado de cuenta del BHD a Personal» (rows land as drafts in the Bandeja; duplicates are skipped)

How it works ​

  • /.well-known/oauth-protected-resource/mcp and /.well-known/oauth-authorization-server describe the server (RFC 9728 / RFC 8414).
  • Claude Code registers itself at POST /oauth/register (dynamic client registration, throttled) and runs the authorization-code flow with PKCE on /oauth/authorize.
  • Mobile keeps its Sanctum tokens; they are not accepted on /mcp.

Deploy (once) ​

Generate a key pair and set it in Coolify's environment for every service (loger, task, queue):

bash
openssl genrsa -out oauth-private.key 4096
openssl rsa -in oauth-private.key -pubout -out oauth-public.key
PASSPORT_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----"
PASSPORT_PUBLIC_KEY="-----BEGIN PUBLIC KEY-----\n...\n-----END PUBLIC KEY-----"

Migrations run on deploy (AUTORUN_ENABLED) and create the oauth_* tables.