accounting
FreshBooks MCP Integration for LangChain
Connect FreshBooks to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect FreshBooks to LangChain
Bridge LangChain agents to local KosmoKrator integration tools through MCP or headless CLI calls.
Use the MCP gateway when the agent should discover tools, or wrap kosmo integrations:call for fixed chains. The gateway is local, scoped to this integration, and starts with
--write=deny so LangChain can inspect read-capable tools without receiving write access by default.
FreshBooks MCP Config for LangChain
Keep the gateway scoped to the integration and operation class needed by the chain.
{
"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 LangChain
LangChain 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. |