MetorialDocs

Set up FreshBooks in Metorial for Claude, ChatGPT and Cursor

Share FreshBooks with your team in Claude, ChatGPT and Cursor through Metorial: OAuth sign-in, 23 tools (13 read-only).

To give your team FreshBooks in Claude, ChatGPT, Cursor and other AI clients, an admin shares the FreshBooks integration in a Metorial portal, and each person signs in to FreshBooks with their own account. Agents can discover authorized accounts and businesses, manage clients and draft invoices, record payments and expenses, and manage estimates, credit notes, taxes, billable items, projects and time entries. The integration has 23 tools, 13 read-only and 10 destructive, plus 11 triggers.

What you'll learn

  • How an admin shares FreshBooks in a portal and how each person connects
  • The 40 OAuth scopes FreshBooks can request, and what each one allows
  • How to keep the 13 read-only tools and reject the other 10

Before you start

Sign-in method

MethodTypeWhat a person provides
OAuthOAuthSigns in to FreshBooks

OAuth

People sign in to FreshBooks and approve the scopes you allow. The integration can request:

ScopeNameWhat it allows
user:profile:readProfile ReadRead your profile information
user:clients:readClients ReadRead client records
user:clients:writeClients WriteCreate and update client records
user:invoices:readInvoices ReadRead invoices
user:invoices:writeInvoices WriteCreate and update invoices
user:payments:readPayments ReadRead payments
user:payments:writePayments WriteCreate and update payments
user:estimates:readEstimates ReadRead estimates
user:estimates:writeEstimates WriteCreate and update estimates
user:expenses:readExpenses ReadRead expenses
user:expenses:writeExpenses WriteCreate and update expenses
user:time_entries:readTime Entries ReadRead time entries
user:time_entries:writeTime Entries WriteCreate and update time entries
user:projects:readProjects ReadRead projects
user:projects:writeProjects WriteCreate and update projects
user:taxes:readTaxes ReadRead tax configurations
user:taxes:writeTaxes WriteCreate and update tax configurations
user:billable_items:readBillable Items ReadRead billable items and services
user:billable_items:writeBillable Items WriteCreate and update billable items and services
user:bills:readBills ReadRead bills
user:bills:writeBills WriteCreate and update bills
user:bill_vendors:readBill Vendors ReadRead bill vendors
user:bill_vendors:writeBill Vendors WriteCreate and update bill vendors
user:bill_payments:readBill Payments ReadRead bill payments
user:bill_payments:writeBill Payments WriteCreate and update bill payments
user:credit_notes:readCredit Notes ReadRead credit notes
user:credit_notes:writeCredit Notes WriteCreate and update credit notes
user:reports:readReports ReadRead financial reports
user:teams:readTeams ReadRead team members
user:teams:writeTeams WriteManage team members
user:business:readBusiness ReadRead business information
user:journal_entries:readJournal Entries ReadRead journal entries
user:journal_entries:writeJournal Entries WriteCreate and update journal entries
user:other_income:readOther Income ReadRead other income records
user:other_income:writeOther Income WriteCreate and update other income records
user:notifications:readNotifications ReadRead notifications
user:online_payments:readOnline Payments ReadRead online payment settings
user:online_payments:writeOnline Payments WriteManage online payment settings
user:retainers:readRetainers ReadRead retainers
user:retainers:writeRetainers WriteCreate and update retainers

Setup settings

Setup also asks for:

  • accountId: FreshBooks account ID. Found in the /me endpoint response under business_memberships. Required for accounting API calls (invoices, clients, expenses, payments, etc.).
  • businessId (optional): FreshBooks business ID. Found in the /me endpoint response under business_memberships. Required for projects and time tracking API calls. If not provided, will default to the business associated with the accountId.

Use your own FreshBooks OAuth app

With your own OAuth app, people see your company's name on the FreshBooks consent screen, and the client ID and secret belong to you.

Start the credentials in Metorial

In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose FreshBooks and copy the Redirect URI.

Register the app with FreshBooks

Create an OAuth app or client in FreshBooks and add the redirect URI from Metorial as its redirect or callback URL. The vendor documents this in OAuth documentation.

Finish in Metorial

Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the FreshBooks integration.

Admin: share FreshBooks in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose FreshBooks. For how members connect, choose Each person connects, so everyone signs in to FreshBooks as themselves.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from FreshBooks.

Choose who gets it

Add the access groups that should see FreshBooks. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user FreshBooks integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search freshbooks

Employee: connect FreshBooks

In the portal

Open FreshBooks in the catalog

Sign in to your portal and open FreshBooks. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. A FreshBooks sign-in tab opens. Sign in and approve the permissions listed.

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search freshbooks
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your FreshBooks connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list freshbooks
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 13 read-only tools, such as get_client and list_items, and lose the 10 destructive tools, such as manage_items or manage_taxes.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list freshbooks
metorial tools <integration-id>
metorial call <integration-id> list_items -d '{}'

metorial tools lists the 23 tools, minus any you rejected. list_items takes no input. It lists billable items in FreshBooks.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (13)

  • get_invoice: Retrieve detailed information about a specific invoice by its ID. Needs invoiceId.
  • list_invoices: Search and list invoices in FreshBooks.
  • get_client: Retrieve detailed information about a specific client by their ID. Needs clientId.
  • list_payments: Search and list payments in FreshBooks.
  • list_clients: Search and list clients in FreshBooks.
  • list_expenses: Search and list expenses in FreshBooks.
  • list_time_entries: Search and list time entries in FreshBooks.
  • list_projects: List all projects in FreshBooks.
  • list_items: List billable items in FreshBooks.
  • list_taxes: List all configured tax rates in FreshBooks.
  • get_resource: Read one payment, expense, estimate, project, time entry, tax, or billable item by its exact ID in the selected authorized account/business.
  • get_identity: Discover your FreshBooks identity and authorized business/account memberships.
  • list_resources: List estimates, credit notes, or expense categories in the selected accounting account with exact IDs and provider pagination.

Destructive tools (10)

  • manage_time_entries: Create, update, or delete time entries in FreshBooks. Needs action.
  • manage_projects: Create, update, or delete projects in FreshBooks. Needs action.
  • manage_clients: Create, update, or delete client records in FreshBooks. Needs action.
  • manage_estimates: Create, update, delete, or send estimates in FreshBooks. Needs action.
  • manage_expenses: Create, update, or delete expenses in FreshBooks. Needs action.
  • manage_payments: Record, update, or delete payments against invoices in FreshBooks. Needs action.
  • manage_invoices: Create, update, or delete invoices in FreshBooks. Needs action.
  • manage_credit_notes: Create, update, or delete credit notes in FreshBooks. Needs action.
  • manage_items: Create, update, or delete billable items in FreshBooks. Needs action.
  • manage_taxes: Create, update, or delete tax configurations in FreshBooks. Needs action.

Triggers

FreshBooks has 11 triggers, which fire on events in FreshBooks:

  • payment_events: Triggered when payments are created, updated, or deleted in FreshBooks.
  • bill_events: Triggered when bills are created, updated, or deleted in FreshBooks.
  • client_events: Triggered when clients are created, updated, or deleted in FreshBooks.
  • invoice_events: Triggered when invoices are created, updated, deleted, or sent by email in FreshBooks.
  • credit_note_events: Triggered when credit notes are created, updated, or deleted in FreshBooks.
  • item_events: Triggered when billable items are created, updated, or deleted in FreshBooks.
  • tax_events: Triggered when tax configurations are created, updated, or deleted in FreshBooks.
  • time_entry_events: Triggered when time entries are created, updated, or deleted in FreshBooks.
  • estimate_events: Triggered when estimates are created, updated, deleted, or sent by email in FreshBooks.
  • expense_events: Triggered when expenses are created, updated, or deleted in FreshBooks.
  • project_events: Triggered when projects are created, updated, or deleted in FreshBooks.

Next steps