MetorialDocs

Set up Freeagent in Metorial for Claude, ChatGPT and Cursor

Share Freeagent with your team in Claude, ChatGPT and Cursor through Metorial: OAuth sign-in, 40 tools (21 read-only).

To give your team Freeagent in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Freeagent integration in a Metorial portal, and each person signs in to Freeagent with their own account. Agents can manage FreeAgent contacts, invoices, estimates, supplier bills, expenses, projects, tasks, and timeslips. The integration has 40 tools, 21 read-only, 14 write and 5 destructive, plus 6 triggers.

What you'll learn

  • How an admin shares Freeagent in a portal and how each person connects
  • How to keep the 21 read-only tools and reject the other 19

Before you start

Sign-in method

MethodTypeWhat a person provides
OAuthOAuthSigns in to Freeagent

OAuth

People sign in to Freeagent and approve the permissions it lists.

Setup settings

Setup also asks for:

  • environment (optional): Use "sandbox" for testing with the FreeAgent sandbox API, or "production" for live data. One of "production", "sandbox".

Use your own Freeagent OAuth app

With your own OAuth app, people see your company's name on the Freeagent 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 Freeagent and copy the Redirect URI.

Register the app with Freeagent

Create an OAuth app or client in Freeagent 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 Freeagent integration.

Admin: share Freeagent 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 Freeagent. For how members connect, choose Each person connects, so everyone signs in to Freeagent as themselves.

Limit the tools

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

Choose who gets it

Add the access groups that should see Freeagent. 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 Freeagent integration. Once it exists, check which groups have it:

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

Employee: connect Freeagent

In the portal

Open Freeagent in the catalog

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

Authenticate

Under Quick setup, select Authenticate. A Freeagent 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 freeagent
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your Freeagent 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 freeagent
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 21 read-only tools, such as list_bills and list_tasks, and lose the 14 write tools, such as create_bill or create_task, and the 5 destructive tools, such as delete_contact or delete_expense.

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 freeagent
metorial tools <integration-id>
metorial call <integration-id> get_company -d '{}'

metorial tools lists the 40 tools, minus any you rejected. get_company takes no input. It retrieves company information from FreeAgent including name, type, currency, start dates, and tax settings.

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

Tools

Read-only tools (21)

  • list_users: Retrieve users from the FreeAgent account.
  • list_bank_accounts: Retrieve bank accounts from FreeAgent.
  • get_trial_balance: Retrieve the Trial Balance summary from FreeAgent, listing all categories with their balances for a given date range.
  • list_bills: Retrieve supplier bills from FreeAgent.
  • list_expenses: Retrieve expenses from FreeAgent with optional filtering by date range, project, or view type (recent, recurring).
  • list_credit_notes: Retrieve credit notes from FreeAgent with optional filtering by status, contact, or project.
  • list_bank_transactions: Retrieve bank transactions for a specific bank account in FreeAgent. Needs bankAccountId.
  • get_company: Retrieve company information from FreeAgent including name, type, currency, start dates, and tax settings.
  • list_invoices: Retrieve invoices from FreeAgent with filtering by status, contact, project, and date.
  • list_tasks: Retrieve tasks from FreeAgent.
  • get_contact: Retrieve a single contact by ID, including all details such as address, billing preferences, and project counts. Needs contactId.
  • list_contacts: Retrieve a list of contacts (customers, suppliers, etc.) from FreeAgent.
  • list_timeslips: Retrieve time tracking entries (timeslips) from FreeAgent.
  • list_estimates: Retrieve estimates from FreeAgent.
  • get_balance_sheet: Retrieve the Balance Sheet report from FreeAgent.
  • get_profit_and_loss: Retrieve the Profit & Loss summary report from FreeAgent for a given date range.
  • list_categories: Retrieve the chart of accounts (categories) from FreeAgent.
  • get_invoice: Retrieve a single invoice by ID with full details including line items, status, and payment information. Needs invoiceId.
  • list_projects: Retrieve projects from FreeAgent with optional filtering by status or contact.
  • download_invoice_pdf: Download the PDF for a FreeAgent invoice.
  • get_current_user: Retrieve the FreeAgent user who authorized this connection, including their profile URL, email, role, and permission level.

Write tools (14)

  • create_timeslip: Log a time entry (timeslip) in FreeAgent against a task and user. Needs taskId, userId, projectId, datedOn and hours.
  • update_invoice: Update an existing invoice in FreeAgent. Needs invoiceId.
  • create_contact: Create a new contact in FreeAgent.
  • create_expense: Record a new business expense in FreeAgent. Needs userId, category, datedOn and grossValue.
  • create_bill: Create a new supplier bill in FreeAgent. Needs contactId, reference, datedOn, dueOn and billItems.
  • update_project: Update an existing project in FreeAgent. Needs projectId.
  • update_timeslip: Update an existing time entry in FreeAgent. Needs timeslipId.
  • create_task: Create a new task within a FreeAgent project. Needs projectId and name.
  • update_contact: Update an existing contact's details in FreeAgent. Needs contactId.
  • create_estimate: Create a new estimate (quote) in FreeAgent for a contact. Needs contactId and datedOn.
  • create_invoice: Create a new draft invoice in FreeAgent. Needs contactId and datedOn.
  • update_expense: Update an existing expense in FreeAgent. Needs expenseId.
  • email_invoice: Send an invoice to a recipient via email. Needs invoiceId and to.
  • create_project: Create a new project in FreeAgent linked to a contact. Needs contactId and name.

Destructive tools (5)

  • delete_expense: Permanently delete an expense from FreeAgent. Needs expenseId.
  • delete_invoice: Permanently delete an invoice from FreeAgent. Needs invoiceId.
  • delete_contact: Permanently delete a contact from FreeAgent. Needs contactId.
  • delete_project: Permanently delete a project from FreeAgent. Needs projectId.
  • delete_timeslip: Permanently delete a timeslip (time entry) from FreeAgent. Needs timeslipId.

Triggers

Freeagent has 6 triggers, which fire on events in Freeagent:

  • expense_changes: Polls for new or updated expenses in FreeAgent.
  • invoice_changes: Polls for new or updated invoices in FreeAgent.
  • inbound_webhook
  • contact_changes: Polls for new or updated contacts in FreeAgent.
  • bill_changes: Polls for new or updated supplier bills in FreeAgent.
  • project_changes: Polls for new or updated projects in FreeAgent.

Next steps