KosmoKrator

accounting

FreshBooks MCP Integration for Claude Code

Connect FreshBooks to Claude Code through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

8 functions 7 read 1 write Bearer token auth

Connect FreshBooks to Claude Code

Connect local KosmoKrator integrations to Claude Code through one scoped MCP gateway entry.

Add KosmoKrator as a stdio MCP server in the Claude Code project config and select the integrations that should be visible. The gateway is local, scoped to this integration, and starts with --write=deny so Claude Code can inspect read-capable tools without receiving write access by default.

FreshBooks MCP Config for Claude Code

Claude Code can launch the local kosmo binary directly from the project MCP config.

{
  "mcpServers": {
    "kosmokrator-freshbooks": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=freshbooks",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=freshbooks --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only FreshBooks instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

FreshBooks Tools Visible to Claude Code

Claude Code sees stable MCP tool names generated from the FreshBooks integration catalog.

MCP toolSource functionTypeDescription
integration__freshbooks__freshbooks_list_invoices freshbooks.freshbooks_list_invoices Read List invoices from FreshBooks. Returns invoice details including status, amounts, client info, and dates. Supports filtering by status, client, date range, and more.
integration__freshbooks__freshbooks_get_invoice freshbooks.freshbooks_get_invoice Read Get details of a specific FreshBooks invoice by ID. Returns full invoice data including line items, amounts, client details, status, and payment info.
integration__freshbooks__freshbooks_create_invoice freshbooks.freshbooks_create_invoice Write Create a new invoice in FreshBooks. Requires at minimum a client ID and line items. Supports setting due date, notes, discount, and other invoice fields.
integration__freshbooks__freshbooks_list_clients freshbooks.freshbooks_list_clients Read List clients from FreshBooks. Returns client details including name, email, company, and balance. Supports filtering and pagination.
integration__freshbooks__freshbooks_get_client freshbooks.freshbooks_get_client Read Get details of a specific FreshBooks client by ID. Returns full client profile including contact info, company details, and outstanding balance.
integration__freshbooks__freshbooks_list_projects freshbooks.freshbooks_list_projects Read List projects from FreshBooks. Returns project details including title, description, billing method, budget, and active status. Supports filtering and pagination.
integration__freshbooks__freshbooks_list_payments freshbooks.freshbooks_list_payments Read List payments from FreshBooks. Returns payment details including amount, date, client, invoice, and payment method. Supports filtering and pagination.
integration__freshbooks__freshbooks_get_current_user freshbooks.freshbooks_get_current_user Read Get the profile of the currently authenticated FreshBooks user. Returns user details including name, email, and linked business/member information. Useful for verifying connection and identity.

Related FreshBooks Pages