accounting
FreshBooks MCP Integration for Claude Agent SDK
Connect FreshBooks to Claude Agent SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect FreshBooks to Claude Agent SDK
Give Claude Agent SDK workflows access to KosmoKrator integrations through a local MCP server.
Add a KosmoKrator stdio MCP server to the Claude Agent SDK options. The gateway is local, scoped to this integration, and starts with
--write=deny so Claude Agent SDK can inspect read-capable tools without receiving write access by default.
FreshBooks MCP Config for Claude Agent SDK
Use a narrow integration list so the agent does not load unrelated tools.
{
"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
Expose only FreshBooks instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
FreshBooks Tools Visible to Claude Agent SDK
Claude Agent SDK sees stable MCP tool names generated from the FreshBooks integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
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. |