Skip to content

Black Fridayup to −40%

Black FridayEnds in

Your first year, 40% cheaper

Open your account and send your first Verifactu invoice today.

The discount applies automatically when you choose your plan.

or
Continue with Google
Verifactu

in every invoice.

Find out more
Integrations · Connecting to AI assistants

Connect ChatGPT and Claude to your invoicing via MCP, without sharing your password

Fube opens your invoicing data to the AI assistant you already use — ChatGPT, Claude Desktop or the VS Code extension — through the MCP protocol. The connection is authorised with OAuth 2.1 and PKCE: your assistant looks up your invoices and customers or creates documents for you, and never knows your password.

  • Explicit authorisation with OAuth 2.1 and PKCE
  • Temporary tokens that expire: your password never travels
  • Delete the customer to close the door to new connections
SettingsOAuth customersAuthorise access
B
Claude Desktop wants to access your Fube accountThird-party application · Acme SLPKCE · OAuth 2.1
This application will be able to
View customers, invoices, products, expenses and delivery notesRead
Read your company details and the knowledge baseRead
Create customers and invoices on your behalfWrite
It receives a temporary token that expires on its own. Your password never goes anywhere and you can revoke access whenever you like.
The assistant can't get in until you confirm.

Your AI knows nothing about your business, or you give it too much

General-purpose assistants are brilliant at answering questions about the world, but they don't know how much you invoiced last month or who owes you money. To tell them, the usual approach is to paste scraps of data into the chat, export spreadsheets by hand or share credentials that grant permanent access and never expire.

Fube resolves that tension with a secure bridge. The MCP standard lets an external assistant call specific Fube tools, and OAuth determines how long it has access and lets you cut it off whenever you like. The assistant works with temporary tokens that expire on their own; your password goes nowhere. It's the difference between lending a key that never expires and issuing a temporary pass that you sign and stop renewing whenever you choose.

Claude DesktopConnected to Fube
Pull up this quarter's outstanding invoices
You have 2 outstanding invoices this quarter:
F260014Acme SL€1,815.00Outstanding
F260009Beltrán & Hijos SL€968.00Outstanding
OAuth 2.1 · temporary token
Your real data in FubeSource
Outstanding invoices2
Total amount€2,783.00
Your password is never sent

Connect your assistant in four steps

You only do it once per tool. It all comes down to copying and pasting, plus an authorisation that you sign.

  1. 1

    Create an OAuth customer in Fube

    In Settings › OAuth customers, give it a name and enter the redirect URLs. Fube generates its Customer ID. There's no secret to store: the connection is protected with PKCE.

    Create OAuth customer
  2. 2

    Set up the tool

    Paste the Customer ID and the MCP server URL into ChatGPT, Claude Desktop or VS Code. The screen includes step-by-step instructions for each one.

    ChatGPTClaude DesktopVS Code
    Paste these two values into the tool
    fube_cli_a3f9c2e7https://www.fube.es/sse
  3. 3

    Authorise from Fube

    The tool redirects you to Fube so you can approve access. You're in control: the assistant doesn't get in until you confirm. Authorisation uses PKCE, from the OAuth 2.1 standard.

    Claude Desktop wants to access your account
    · View customers, invoices and expenses· Create customers and invoices
    Protected with PKCE · OAuth 2.1
    CancelAuthorise access
  4. 4

    Start asking

    Your AI can look up customers, invoices, products, expenses and delivery notes, read your company details and create new invoices or customers — all from the conversation, with your real data.

    Create an invoice for Acme SL
    Draft invoiceDraft
    CustomerAcme SL · B-12345678
    Consultancy€1,200.00
    IVA 21%€252.00
    Total€1,452.00

No longer want that connection? Delete the OAuth customer and the tool is locked out on its next request: it can't renew its access or re-authorise.

A pass that you sign and you decide to revoke

Authorisation is explicit, tokens expire on their own and your password never leaves Fube.

OAuth 2.1

with PKCE: explicit authorisation without exposing your password to the assistant

MCP

the standard that connects ChatGPT, Claude Desktop and VS Code to your tools

S256

the PKCE method Fube requires: the authorisation code is useless without your verifier

When OAuth is the recommended route

MMartaServices micro-business · B2B

She works with AI assistants all day to draft proposals and emails. Connecting Claude or ChatGPT to Fube saves her constantly jumping between tabs: she asks ‘which customers have overdue invoices?’ in the same chat where she's drafting the reminder, and creates the invoice for the project she's just closed without opening the app. Because each team member authorises their own access with OAuth and no passwords are shared around, she keeps things in order even as the team grows.

Ask and create from the chatEveryone has their own access
{ }Your own in-house integrationA backend, a bespoke ERP

To automate in-house integrations rather than connect an AI assistant, Fube offers the other route: API keys, with a fixed token. OAuth is the recommended option when what's connecting is an AI assistant or a third-party application.

Frequently asked questions

What you ask us most about connecting an external AI to Fube.

Your question isn't here? A human will answer you, usually in under 4 hours

The tools Fube exposes over MCP cover looking up customers, invoices, products, expenses and delivery notes, retrieving your company details and the knowledge base, and creating customers and invoices. In other words, your AI can both read your figures and generate documents for you. It doesn't replace Fube for everything, but it covers the most common day-to-day tasks.

No. That's precisely the point of OAuth. The tool never sees your password: it receives a temporary access token that you explicitly authorise from Fube. Unlike API keys, which are a fixed token, OAuth tokens expire and renew automatically via a refresh token, without asking for your permission again each time.

Delete the OAuth customer from the OAuth customers screen and the tool using it is disconnected on its next request: Fube checks on every request that the customer still exists, and the tool can no longer renew its access or re-authorise with it. If you suspect someone is using it without your permission, delete it and create a new one.

The connection is built on OAuth 2.1 with PKCE, a standard designed to authorise applications without exposing credentials: explicit authorisation on your part and tokens that expire on their own. You decide which tool gets in, and deleting the customer closes the door to new connections. Even so, only connect assistants you trust: they act with your permissions, within those you've granted the customer.

Yes. When you create the customer, you can specify up to twenty IP addresses or CIDR ranges. Fube checks them on authorisation, on access renewal and on every request. Without a list, the customer works from anywhere.

Not directly. MCP and OAuth are a way of connecting external tools to your account; Fube still guarantees Verifactu compliance when issuing invoices, whoever creates them. An invoice generated through your AI assistant goes through the same compliant flow as one created manually in the app: signature, chaining and QR code.

To connect ChatGPT, Claude Desktop or VS Code, no: Fube's OAuth customers screen includes step-by-step instructions for each tool, and it all comes down to copying and pasting the Customer ID and the server URL. The MCP protocol works behind the scenes; all you do is authorise.

Link ChatGPT or Claude to your real data

Create your first OAuth customer, connect the assistant you trust and stop copying figures by hand.

No need to share your passwordTokens that expire on their own · delete the customer whenever you likeIncluded in the Elite plan

MCP and OAuth are one of the ways to connect Fube to your tools.Back to Integrations