Tethlo MCP server for Invoice Ninja (unofficial demo)

v0.1.0
io.github.tethlo/mcp-for-invoice-ninja Checked 2 days ago Published 8 days ago

Unofficial demo. Invoice Ninja for AI agents: clients, invoices, payments, receivables.

Values you need

VariableWhat it is
INVOICENINJA_API_TOKENrequired secret Invoice Ninja API token (Settings > Account Management > API Tokens).
INVOICENINJA_BASE_URLoptional Optional: a self-hosted instance, e.g. https://invoices.example.com. Default: https://invoicing.co

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add mcp-for-invoice-ninja -e 'INVOICENINJA_API_TOKEN=<INVOICENINJA_API_TOKEN>' -- npx -y --package=@tethlo/mcp-for-invoice-ninja@0.1.0 tethlo-mcp-for-invoice-ninja
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-for-invoice-ninja": {
      "args": [
        "-y",
        "--package=@tethlo/mcp-for-invoice-ninja@0.1.0",
        "tethlo-mcp-for-invoice-ninja"
      ],
      "command": "npx",
      "env": {
        "INVOICENINJA_API_TOKEN": "<INVOICENINJA_API_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-for-invoice-ninja": {
      "args": [
        "-y",
        "--package=@tethlo/mcp-for-invoice-ninja@0.1.0",
        "tethlo-mcp-for-invoice-ninja"
      ],
      "command": "npx",
      "env": {
        "INVOICENINJA_API_TOKEN": "<INVOICENINJA_API_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "INVOICENINJA_API_TOKEN",
      "id": "invoiceninja-api-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mcp-for-invoice-ninja": {
      "args": [
        "-y",
        "--package=@tethlo/mcp-for-invoice-ninja@0.1.0",
        "tethlo-mcp-for-invoice-ninja"
      ],
      "command": "npx",
      "env": {
        "INVOICENINJA_API_TOKEN": "${input:invoiceninja-api-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-for-invoice-ninja]
command = "npx"
args = ["-y", "--package=@tethlo/mcp-for-invoice-ninja@0.1.0", "tethlo-mcp-for-invoice-ninja"]
env = { "INVOICENINJA_API_TOKEN" = "<INVOICENINJA_API_TOKEN>" }

For AI agents

  1. Ask the user for: INVOICENINJA_API_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: find_clients, create_client, list_invoices, get_invoice, create_invoice, send_invoice, record_payment, get_receivables_summary.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json