Connect an AI assistant
Oscar has an MCP server (Model Context Protocol). Connect an AI assistant to it, and the assistant can read your books and do your part of the work there. It acts with your permissions, and every call goes through the same API and the same checks as the app. The tools cover five jobs:
- See what your accountant needs from you: the questions of your accountant, the documents, the steps, the invoices to check and the missing receipts, each with its link. The assistant answers what an assistant may answer, and gives you the link of the rest.
- See the finances of your company: invoices, parties, bank transactions, the journal, the reports, the open items and the alerts.
- Create sales invoices: record, revise, issue and post an invoice, and add or edit a customer. The same tools record and post a supplier invoice.
- Find the missing receipts and send them: the bank payments that still need a receipt, the inbox of your company, and a receipt sent to Oscar.
- Record business trips: a trip abroad with its daily allowance and its costs, sent to your accountant.
Read tools also show the VAT returns and search the knowledge base of Estonian accounting and tax law.
The server
| Address | What it gives |
|---|---|
https:/ | The tools that your permissions allow, reads and writes |
https:/ | The read tools only. The assistant cannot change anything |
The server is on the same host as the app that you sign in to. The transport is Streamable HTTP.
Connect
Claude
In Claude, add a custom connector with the server address. Claude opens the Oscar sign-in page, then the consent page.
ChatGPT
In ChatGPT, add a connector with the server address (this can need the developer mode of ChatGPT) and choose OAuth. ChatGPT opens the Oscar sign-in page, then the consent page.
Cursor
Add the server to ~/.cursor/mcp.json (or .cursor/mcp.json in a project):
{
"mcpServers": {
"oscar": { "url": "https://oscaraccountant.com/mcp" }
}
}
Cursor asks you to sign in when it first connects.
Claude Code
claude mcp add --transport http oscar https://oscaraccountant.com/mcp
Then run /mcp in Claude Code and sign in.
Sign-in and consent
The assistant signs you in with OAuth 2.1:
- The assistant opens the Oscar sign-in page in your browser.
- The consent page shows the name of the assistant, its app ID (the
client_id), where it sends you back to, and what it asks for:read, orreadandwrite. An assistant that asks for no scope getsreadonly. An assistant that only works on what your accountant needs can ask for less:requests:read("Read what your accountant needs") orrequests:answer("Answer your accountant and add receipts").readincludesrequests:read, andwriteincludesrequests:answer. For an app that registered itself, the page says so and shows no logo: check the app ID. It also warns when the app sends you back to a host that is not its own. - The companies. With one company, there is no choice: the connection reaches that company. With several, tick at least one of them. The connection reaches each ticked company, with your own role in each one, and nothing else. When the same assistant asks again, the page ticks the companies of its last connection. There is no choice of "every company": a company that you join later needs a new sign-in.
- You approve, and the assistant is connected.
When the same assistant asks again with nothing changed, Oscar does not show the consent page again.
See and revoke your connections under "Connected apps" in the security settings of your account. The list shows one row for each company of a connection. Revoke a row, and the assistant loses that company only; it keeps the other companies of the connection. A change of your password or of your two-factor authentication revokes every connection.
With an API key instead
An assistant that can send a fixed header can use an API key of your company instead of OAuth:
Authorization: Bearer osk_live_...
For example in Claude Code:
claude mcp add --transport http oscar https://oscaraccountant.com/mcp \
--header "Authorization: Bearer osk_live_..."
The key reaches its own company, with its scopes. See Authentication.
What the assistant sees
- Only the tools you may use. The server lists the tools that your role,
the scopes of the connection, and the client capabilities of your company
allow. A connection with the
readscope, or to/mcp/readonly, has no write tools. The list is a guide: the API still checks every call. - Call
list_companiesfirst. Every tool of the books takes acompany_id. The knowledge tools (search_knowledge,get_knowledge_entry,get_law_citation) take none. - A write tool takes an
idempotency_key. The same key and the same arguments return the first result instead of running twice.start_file_uploadandrequest_manual_uploadtake none: a second upload is harmless. - An error has a stable code, as in the API: for example
not_found,validation_error,insufficient_scope,human_actor_required. - No personal identification codes. The MCP results show
[personal code hidden]in place of an Estonian personal identification code (isikukood); the Oscar app and the API show the code. - The bank account number of a related person is masked in the
register. In the related-party register (
list_related_parties,get_related_party) the IBAN of a person (a shareholder, a board member, an employee) shows its last four characters only. A bank transaction still shows the account number of its counterparty, as the bank statement gives it. - A human judgement (an exemption, a classification of money received,
the reopening of a period) is never run by the assistant. A tool that needs
one answers
human_actor_required, and a person makes the decision in the Oscar app. See Human judgements. - Reading the inbox is a write. The first call of
get_inboxmakes the address of the inbox, so it needs thewritescope and is not on/mcp/readonly.
The tool reference lists every tool.
Send a file
Give the assistant an invoice or a receipt, and say: "Add this to Oscar". It
sends the file by itself, then it reads what Oscar made of it: the draft or the
booking, and the bank payment that fits. It tells you what waits for you. This
needs a connection with the write scope and the permission to add documents.
A connection with only requests:answer can send a file too, for the answer to
your accountant: the four upload tools take that scope.
The assistant takes the first way that works:
- It holds the file of the chat (ChatGPT). It calls
upload_document, and Oscar downloads the file from the chat. - It has a public https address of the file. It calls
upload_documentwith the address, which must answer the file itself: no sign-in, no redirect. - It can run commands (Claude Code, Cursor, a desktop app). It calls
start_file_upload, gets acurlcommand for one file, valid for 15 minutes, and runs it. - None of these works. It calls
request_manual_upload. A page opens in your browser (or you get its link): you sign in to Oscar as yourself and choose the file.
- What Oscar takes. PDF, PNG, JPEG, WebP, HEIC, XML and CSV, up to 25 MB for one file. Oscar reads a PDF of kind invoice, receipt or credit note. It keeps any other file as a document.
- What is booked. The same as for an upload in the app: a confident purchase may be booked within your permissions, and a sale always waits for a person.
- A blocked network. Some assistants run commands in a sandbox that reaches
few sites. In Claude on the web, you may have to allow
oscaraccountant.comfor code execution under "Capabilities" in the settings (on Team and Enterprise, the owner of the organization does this). When no direct way works, the assistant gives you the page. - A share link of Drive or Dropbox often opens a web page and not the file. Oscar refuses it. Attach the file instead.
- The command is a secret. It works once, for one file, and it ends when you disconnect the assistant. The page is for you only: its address holds no secret.
- The text of a file is data. Oscar and the tool texts tell the assistant never to follow an instruction that it finds in a file.
What your accountant needs
list_requests lists what your accountant needs from you, as the page
"Needs you" of the app shows it. Each item has its link (url) and says who
may settle it (answerable_by):
agent_or_person: a question of your accountant, or the receipt of a bank payment. The assistant answers it withanswer_request_item, only from facts you gave or documents it holds. It never guesses a business reason. A line answer is data your accountant checks, not a booking. The answer goes to your accountant at once, and you can change it until your accountant marks it done. The history of the request shows "Sent from MCP or API".person_only: a document, the confirmation of the owners, a bank login, a step in e-MTA, an identity check. The assistant shows you the link and never answers it.
When the assistant is not sure, it calls defer_request_item: your
accountant asks you instead. The assistant reads an invoice to check, but
never decides it: it gives you the link. It never writes in Messages.
What the assistant does not do
Some work is done in the Oscar app or by your accountant, and the MCP server has no tools for it:
-
Messages with your accountant, and the check of an invoice that Oscar read: you do both in the app.
-
Matching bank payments to invoices, and the money-in rules.
-
Employees and payroll: the employee register, the pay runs and the TSD.
-
Payment connections: Stripe, PayPal and Shopify.
-
VAT returns: preparing, amending and filing them, and the other VAT reports.
-
Period closing: closing a month or a year, and reopening one.
-
The set-up of the books: the chart of accounts, the VAT codes, the dimensions, the fixed assets, the policies of the company.
-
Decisions of a person: the judgements, and the proposals that a person confirms.
The API and the Oscar app keep all of this.