Skip to main content
Glama
Invoice Ninja MCP Server

Invoice Ninja MCP Server

by TETRA-2023

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HOSTNoHTTP transport bind host.127.0.0.1
PORTNoHTTP transport bind port.8787
MCP_BEARER_TOKENNoBearer auth token for HTTP transport; required unless HOST is a loopback address.
INVOICE_NINJA_URLYesInstance base URL, without /api/v1 (an internal http:// address is fine).
INVOICE_NINJA_TOKENYesCompany API token from Invoice Ninja.
INVOICE_NINJA_SECRETNoOptional X-Api-Secret value.
INVOICE_NINJA_SAFE_MODENoWith writes enabled, leave out sending, settling, cancelling, deleting, and payment tools.false
INVOICE_NINJA_TIMEOUT_MSNoPer-request timeout in milliseconds.30000
INVOICE_NINJA_ALLOW_WRITESNoEnable mutating tools. Writes are off by default.false
INVOICE_NINJA_MAX_PER_PAGENoCap on rows per list call.100
INVOICE_NINJA_DISABLED_TOOLSNoComma-separated tool names that should never be registered.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Tools for an Invoice Ninja (v5) instance. Read tools (in_list_*, in_get_*, in_ping, in_outstanding_summary) are always available. Write tools (in_create_*, in_update_*, in_invoice_action) exist only when the operator enabled writes; in safe mode the tools that email, mark sent or paid, cancel, delete or record payments are left out, so documents stay drafts. in_ping names the company the token belongs to. Invoice/quote creation needs a client_id and at least one line item. When updating a client, always resend the full contacts array.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
in_pingA

Verify the Invoice Ninja URL, token and reachability. Returns ok + a sample row count.

in_list_clientsC

List clients with optional search.

in_get_clientA

Fetch a single client by id, including its contacts and (optionally) related records.

in_list_invoicesB

List invoices. Use flags to narrow: client_id, client_status (draft|sent|paid|unpaid|overdue), overdue, payable, upcoming, number.

in_get_invoiceA

Fetch a full invoice by id, including line items and the client relationship.

in_list_quotesC

List quotes with optional search.

in_get_quoteA

Fetch a full quote by id, including line items and the client relationship.

in_list_paymentsC

List payments with optional search/client filter.

in_list_productsC

List products / catalogue items.

in_list_expensesA

List expenses. filter is a free-text search across number, amount, notes and vendor/category/client names: compare number exactly yourself. Each row carries state (active/archived/deleted) and documents_count; status=all mixes the three states.

in_get_expenseA

Fetch a single expense by id: every field, its record state (active/archived/deleted) and its attached documents.

in_list_vendorsB

List vendors (expense counterparties) with optional search.

in_list_expense_categoriesC

List expense categories.

in_outstanding_summaryB

Aggregate open receivables: totals for outstanding balance and overdue balance, plus the top debtors. Computed from payable/overdue invoice listings.

in_list_tasksB

List time-tracking tasks. Filter by client_id, project_id, or client_status (invoiced|uninvoiced). Each row includes decoded tracked time and whether it is currently running.

in_get_taskB

Fetch a single task with full decoded time entries, total tracked time, and running state.

in_list_projectsC

List projects (groupings for tasks). Filter by client_id.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.1/5.0

Scored across 17 tools

Disambiguation4/5

Each tool pairs a distinct resource with a clear list/get action, so list_expenses vs get_expense etc. are easy to separate. The only mild overlap is in_outstanding_summary versus in_list_invoices with payable/overdue flags, since the summary is derived from those listings, but the descriptions make the boundary clear.

Naming Consistency5/5

Every tool follows the same in_<verb>_<noun> snake_case pattern (in_list_*, in_get_*, in_ping, in_outstanding_summary) with a uniform server prefix. No camelCase or verb-style mixing anywhere in the set.

Tool Count4/5

17 tools is slightly above the ideal 3-15 band, but the server spans many distinct resources (expenses, invoices, quotes, clients, vendors, tasks, projects, products, payments), so each tool earns its place. A few list-only entries could arguably be consolidated, but nothing feels redundant.

Completeness2/5

The surface is entirely read-only: there is no create, update, archive, or delete for any resource, and no way to record payments or mutate invoices/tasks/expenses in an invoice-management domain. It is also asymmetric—get exists for invoices, quotes, tasks, clients and expenses but not for vendors, products, payments, or projects—leaving agents with dead ends when they need details on those records.

Maintenance

ActivityNo data
ResponsivenessOutdated data