SL Open demo

Home › AI connection

Connect Pikca to AI (MCP)

Pikca includes a Model Context Protocol (MCP) server. AI assistants such as Claude and ChatGPT can use it to read invoice data and statistics and to prepare draft invoices and proformas.

1. Create a token

In Pikca open Settings → AI connection. Enter a token name (e.g. Claude) and choose permissions: read-only or read & write. The token is shown only once – copy it. Only a hash (SHA-256) is stored and you can revoke it any time.

2. Add the connector

Claude (claude.ai or desktop): Settings → Connectors → Add custom connector. Enter https://your-domain/pikca/mcp.php?token=TOKEN.

ChatGPT (web): in the sidebar open Plugins → + → Add custom MCP server. Enter a name (e.g. Pikca), put the HTTPS address https://your-domain/pikca/mcp.php?token=TOKEN in Connection, choose Authentication: No authentication (the token is in the URL), accept the security warning and click Create as a plugin. Then check that ChatGPT detects the tools.

Note: custom MCP servers are officially supported in ChatGPT mainly on Business, Enterprise and Edu plans (with the right permissions). On a personal Plus plan you may not see the option – that does not mean your setup is wrong.

Claude Code: claude mcp add --transport http pikca https://your-domain/pikca/mcp.php --header "Authorization: Bearer TOKEN"

The server must be reachable over HTTPS. Pikca also accepts an Authorization: Bearer header for clients that support it.

3. Talk to Pikca

Examples: “Which invoices are overdue?”, “What was my monthly net revenue this year?”, “Draft an invoice for Lipa Studio: 3 hours of consulting at €55”, “Convert proforma P26-003 into an invoice”.

Tools

ToolDescriptionAccess
list_invoicesList invoices or proformas (filters: year, status, search).read
get_invoiceDetails of one invoice or proforma.read
list_unpaid_invoicesUnpaid invoices with open amounts and overdue flag.read
get_statisticsRevenue by period, month, customer and service.read
list_customersList customers.read
list_servicesService catalogue.read
create_customerCreate a customer.write
create_invoiceCreate a draft invoice or proforma (optionally issue immediately).write
convert_proforma_to_invoiceProforma → draft invoice with the next number.write
copy_invoice_to_proformaInvoice → draft proforma.write
mark_invoice_paidMark an invoice paid or unpaid.write

Security

  • Invoices and proformas created by AI are drafts by default. You issue them in the app; direct issuing only happens with the explicit issue parameter.
  • A read-only token does not see the write tools.
  • Treat the token like a password. A token in the URL (?token=) can end up in server or proxy logs, so prefer a read-only token and rotate it regularly. If it leaks, revoke it and create a new one.
  • MCP is disabled in the demo.

Open demo