Skip to content

How to connect Claude or ChatGPT to your books with MCP

One URL, a consent screen, and your AI assistant can read the ledger, post entries and build workflows. What actually happens when an agent connects to Cosbase over the Model Context Protocol.

The Model Context Protocol, or MCP, is the standard that lets an AI assistant call tools on a server you control. Claude and ChatGPT both speak it. So do coding agents and most agent frameworks. Cosbase is an MCP server, which means connecting your assistant to your books takes one address and one approval.

The two-minute version

  1. In Claude, open Settings, then Connectors, and add a custom connector with your Cosbase address followed by /mcp. In ChatGPT, do the same under Connectors with authentication left on OAuth.
  2. The assistant sends you to Cosbase, where you sign in with a code emailed to you.
  3. You pick which company the assistant may work on, and what it may do: read the books, also post, or also build workflows. You can never grant more than you hold yourself, and never the controller role.
  4. Approve. The assistant now sees your tools.

No API keys to copy. The connection is listed under Settings in Cosbase, and you can disconnect it any time.

What the assistant sees

Twenty-eight tools, the same for every company. Eleven kernel tools cover guides, the schema, read-only SQL, the journal, periods, exports, decision memory, tasks, access control, settings and documents. Seventeen business tools cover contacts, items, invoices, estimates, credits, bills, payments, deposits, transfers, recurring templates, transactions, the bank feed, accounts, reports, the month-end close, records and workflow definitions. Each has a precise input schema and a required role.

What differs between companies is data, not tools. The records tool works on whatever the company tracks: projects and grants for one, machines and rentals for another, once a workflow declares them. A fixed tool list keeps the assistant's context small and its behaviour predictable.

Every tool call carries a prompt: your request, in your words. It goes into the audit log and is shown to whoever approves the result. When you later ask "why was this posted?", the answer is the sentence you typed.

What happens on a typical request

Say you tell Claude: "Invoice Acme for forty hours in January at our usual rate."

The assistant calls schema to see the chart of accounts and what the company tracks, checks memory for Acme's terms and rate (it may have been told before), and calls invoice to create it. The business layer writes the invoice and posts one journal entry: accounts receivable debited, revenue credited, tax payable if any. The kernel validates the entry against its rules and posts it, or stages it in your inbox if it crosses a threshold.

You get back a reply with the invoice number, the entry number and the company it ran against. The ledger has a balanced, hashed entry with the invoice as its source.

Several companies, one connection

If you run more than one company, you approve the connection once for the organization. The assistant gets a company tool to list and switch. Every result names the active company, so there is never ambiguity about which books it just touched, and two assistants connected by the same person never interfere with each other.

Headless agents and scripts

An assistant with a browser can go through the consent screen. A cron job cannot. For those, a signed-in person creates an API key under Settings. It is the same grant an approved connection gets, with the same role cap, revocable in the same list, usable as a bearer token against the same address.

Security, briefly

Connections use OAuth 2.1 with PKCE and dynamic registration, the profile the MCP specification requires. Tokens are hashed at rest and shown once. A connection is re-checked against the approving person's access on every call: remove someone from the company and their assistants stop at once. Agents never decide approvals, whatever their role.

Try it

If you have a Cosbase company, paste your address into your assistant and approve it. If you do not yet, request a demo and we will set one up with your chart of accounts.

  • mcp
  • claude
  • chatgpt
  • ai agents
  • integration