data
Freeagent MCP, CLI, and Lua Integration for AI Agents
Freeagent integration docs for AI agents: MCP gateway setup, Freeagent CLI commands, Lua API reference, credentials, and function schemas.Freeagent for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Agent Surfaces
Machine-Readable Metadata
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
freeagent.freeagent_list_invoices | Read read | 7 | List invoices from FreeAgent. Returns a paginated list of invoices with their details. Supports filtering by status (Draft, Sent, Cancelled, Late Paid, Paid), date range, contact, and project. |
freeagent.freeagent_get_invoice | Read read | 1 | Get the full details of a specific invoice from FreeAgent, including line items, totals, contact information, and status. |
freeagent.freeagent_create_invoice | Write write | 8 | Create a new invoice in FreeAgent. Requires a contact and at least one line item. Supports setting due date, currency, invoice items with quantities and prices, and comments. |
freeagent.freeagent_list_contacts | Read read | 6 | List contacts from FreeAgent. Returns a paginated list of contacts including customers, suppliers, and employees. Supports filtering and sorting. |
freeagent.freeagent_get_contact | Read read | 1 | Get the full details of a specific contact from FreeAgent, including name, email, company, billing address, and contact type. |
freeagent.freeagent_create_contact | Write write | 13 | Create a new contact in FreeAgent. Contacts can be customers, suppliers, or employees. Provide at least a name (first_name/last_name for individuals or organisation_name for companies). |
freeagent.freeagent_list_projects | Read read | 4 | List projects from FreeAgent. Returns project names, status, budget, associated contacts, and time tracking information. |
freeagent.freeagent_list_expenses | Read read | 6 | List expenses from FreeAgent. Returns expense claims with amounts, categories, dates, and associated projects or contacts. |
freeagent.freeagent_get_current_user | Read read | 0 | Get the currently authenticated FreeAgent user profile. Returns user details like name, email, role, and company information. Useful for verifying the connection and understanding which account is active. |