accounting
Invoice Ninja MCP Integration for OpenAI Agents SDK
Connect Invoice Ninja to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Invoice Ninja to OpenAI Agents SDK
Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.
Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with
--write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.
Invoice Ninja MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"mcpServers": {
"kosmokrator-invoiceninja": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=invoiceninja",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=invoiceninja --write=deny Why Use KosmoKrator Here
Expose only Invoice Ninja 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.
Invoice Ninja Tools Visible to OpenAI Agents
OpenAI Agents sees stable MCP tool names generated from the Invoice Ninja integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__invoiceninja__invoiceninja_list_invoices | invoiceninja.invoiceninja_list_invoices | Read | List invoices from Invoice Ninja. Supports filtering by client, status, and date range with pagination. |
integration__invoiceninja__invoiceninja_get_invoice | invoiceninja.invoiceninja_get_invoice | Read | Get a single invoice from Invoice Ninja by ID. Returns full invoice details including line items, client info, and payment status. |
integration__invoiceninja__invoiceninja_create_invoice | invoiceninja.invoiceninja_create_invoice | Write | Create a new invoice in Invoice Ninja. Requires a client_id and at least one line item. Supports custom due dates, partial deposits, and notes. |
integration__invoiceninja__invoiceninja_list_clients | invoiceninja.invoiceninja_list_clients | Read | List clients from Invoice Ninja. Supports filtering by name, email, and ID number with pagination. |
integration__invoiceninja__invoiceninja_create_client | invoiceninja.invoiceninja_create_client | Write | Create a new client in Invoice Ninja. Provide name and at least one contact with an email address. |
integration__invoiceninja__invoiceninja_list_products | invoiceninja.invoiceninja_list_products | Read | List products from Invoice Ninja. Supports filtering by product key, custom value, and text search with pagination. |
integration__invoiceninja__invoiceninja_list_payments | invoiceninja.invoiceninja_list_payments | Read | List payments from Invoice Ninja. Supports filtering by client, invoice, status, and date range with pagination. |
integration__invoiceninja__invoiceninja_get_current_user | invoiceninja.invoiceninja_get_current_user | Read | Get the profile of the currently authenticated Invoice Ninja user. Useful for verifying connection details and account information. |