Can Xero MCP scopes restrict what an AI agent may read and change?
Yes, but only as far as the scopes you request. Scope-based tool access is built into Xero's hosted Remote MCP Server, which Xero documents as included at no extra charge for a Commercial App on the Core plan or above. The agent can call only the tools for which your app has approved scopes, so a reviewer should treat the app's scope list as the primary control. Write tools (names starting with create_, update_, authorise_ or void_) change the organisation's records, and they are only as restricted as the scopes that permit them. A read-only scope set does not remove a write tool from the server's catalogue, so confirm in the tools table which scope each tool needs before approving the app.
The reviewer still has to decide and configure several things. Request only the scopes for the tools the agent needs, and record which tools those are, since the FAQ says each tool's required scope is listed in the tools table. Check that authorise_invoice and void_invoice are excluded unless a named workflow requires them, because both change the state of a financial record. Confirm with Xero how an app's approved scopes are reviewed and changed over time, and who in your organisation may create or alter the app. Also confirm that each tool call runs against one organisation, so a user who authorises several organisations still passes the standard consent step for each.
If your team uses the open-source local server instead, the scope list is set by the optional XERO_SCOPES environment variable, which takes a space-separated list. That means a developer can widen the scopes on their own machine, so the reviewer needs a policy on who may set it and which scope sets are approved. The README lists separate required scope sets for custom connections created before and from Apr 29, 2026, so confirm which set applies to your connection. Check the XeroAPI/xero-mcp-server README before treating any scope list as final.
Xero MCP security controls by plan and server
This table compares the security controls for scopes, PKCE, organization access, write tools and tool allowlisting across the hosted Remote MCP Server, Starter plan demo use and the local open-source server. Each cell states a status: built in, configured by you, not documented as supplied, or not available. The main takeaway is that Xero's sources do not describe an admin allowlist of tools, so confirm that control with Xero before approving access.
| Control | Hosted Remote MCP (Core plan or above, Commercial App) | Starter plan demo use | Local XeroAPI/xero-mcp-server |
|---|---|---|---|
| Scope-based tool gating | Built in: the agent can call only tools whose scopes the app has approved | Not documented as supplied for demo use, confirm with Xero | Configured by you: the XERO_SCOPES variable sets the scopes the server requests |
| PKCE without client secret | Built in: Xero recommends PKCE, so no client secret is needed | Not documented as supplied, confirm with Xero | Not documented as supplied, confirm in the README before use |
| Per-organization tool calls | Built in: each call runs against one organization, with consent per organization | Not documented as supplied, confirm with Xero | Not documented as supplied, confirm in the README |
| Write-tool identification | Documented: tools starting with create_, update_, authorise_ or void_ write to the organization | Same tool names documented, confirm which tools the demo organization exposes | Not documented as supplied, check the tool list for your version |
| Custom scope override | Not available: scopes come from the app's approved scope set | Not available | Configured by you: a space-separated scope list replaces the default scopes |
| Custom Connections eligibility | Not available: Custom Connections apps are not eligible for Remote MCP | Not available for Custom Connections apps | Configured by you: separate required scope sets apply to connections created before and from Apr 29, 2026 |
| Admin-level tool allowlisting | Not documented as supplied, confirm with Xero whether admins can allowlist tools | Not documented as supplied, confirm with Xero | Not documented as supplied, limit access by withholding scopes |
How the scope check decides which tools an agent can call
The scope set approved on the Xero app is the control that decides which tools an agent can call. The chain runs in three steps. The app requests scopes at OAuth consent, the user approves that request for each organisation they authorise, and every tool call then runs against a single organisation. Xero's documentation says the agent can only call tools for which the app has approved scopes. Take list_contacts as an example (illustrative of the mapping, not a configuration): it requires accounting.contacts.read, so an app that never requested that scope cannot use the tool, whatever the prompt asks for.
Because the scope set is the enforcement point, the reviewer's first decision is what to request. The Remote MCP FAQ advises requesting only the scopes for the tools the agent needs, and each tool's required scope is listed in the tools table in Xero's documentation. Confirm that list against the tools your team plans to use, and check whether any app is already requesting broader access than that. Write tools deserve particular attention. The documentation identifies tools starting with create_, update_, authorise_ or void_ as writing to the organisation, and void_invoice and authorise_invoice change the state of a financial record. A read-only scope set removes the ability to call those tools at all, which is a stronger control than relying on users to avoid them.
Local deployments need a separate check. The XeroAPI/xero-mcp-server README says its scopes can be overridden with the optional XERO_SCOPES environment variable, which takes a space-separated list. The README also lists separate required scope sets for custom connections created before and from Apr 29, 2026, so the scope set in use depends on when the connection was created. Ask the engineering team which connection type and creation date apply, which value of XERO_SCOPES is set in each environment, and whether anyone can widen it on a developer machine. Confirm the current required sets in the README before approving any local setup.
How scopes gate tool calls to one organisation
The flow starts with an agent client connecting to the Remote MCP URL, where OAuth 2.0 with PKCE asks the user for consent to the scopes the app has been approved for. Those approved scopes filter which tools the agent can see, and each tool call is then checked against its required scope and the one organisation selected for that call. Write tools (create_, update_, authorise_ and void_) are the points to review, because they change the organisation's records. Confirm in your own app settings which scopes are requested, since a user who authorises several organisations still goes through consent for each.
Scope and organisation checks applied to each Xero MCP tool call.
Which Xero MCP tools change the organisation
The Xero MCP server exposes tools that only read accounting data and tools that write to an organisation. Scopes approved on the app decide which of those tools an agent can call, so the scope list is the first control to review. The cards below group the tools by risk and name the settings that decide what an agent can actually change.
Write prefixes to review first
Tools whose names start with create_, update_, authorise_ or void_ write to the organisation. Each one needs its own review because it changes records that staff and auditors rely on. Take the full list from the tools table in Xero's Remote MCP documentation, then mark each write tool as allowed or blocked for this rollout. Do not assume a read-only label applies to a tool that is not named that way.
Remote MCP docsFinancial state changes: void and authorise
void_invoice and authorise_invoice change the state of a financial record. Voiding cancels an invoice, and authorising moves it into a state that carries accounting consequences. Ask the Xero admin whether either tool should be reachable at all, and if so, which app and user approve that access. Confirm the expected controls with your Xero admin and your finance team before any pilot.
Read-only tools such as list_contacts
Read tools carry lower risk, but they still expose customer and supplier data to the connected AI client. For example, list_contacts requires the accounting.contacts.read scope, so an app without that scope cannot call the tool. Read access still needs a data handling decision, including what the client stores and who can see its output. Confirm where those results go before you approve read tools.
Scope selection as the main lever
The agent can only call tools for which your app has approved scopes, so scope selection is the primary control. Request only the scopes for the tools you want the agent to call, rather than a broad set that covers future needs. Each tool's required scope is listed in the tools table, so map the planned use case to specific scopes before the app is configured. Review the scope list again whenever the agent's job changes.
Remote MCP FAQPer-organisation consent for multi-organisation users
A user can authorise several Xero organisations for the same app, and each tool call runs against a single organisation. Each organisation still goes through the standard consent step, which means a user can approve access to a second organisation without that organisation's admin being involved in the plan. Ask who may consent on behalf of each organisation and confirm that the rollout covers only the organisations in scope.
XERO_SCOPES override on the local server
The open-source local server lets an operator replace its default scopes with the optional XERO_SCOPES environment variable, which takes a space-separated list. A broader list than the agent needs gives it write tools and data access the rollout never intended. Review the variable in every deployment, check it against the scopes each tool requires, and confirm the README's required scope set for your custom connection's creation date.
Local server READMEHow restriction changes by deployment and team size
A team using the hosted Developer Remote MCP Server at runs on a Commercial App on the Core plan or above, which Xero's documentation says includes Remote MCP access at no extra charge. Authentication goes through OAuth 2.0 with PKCE, so no client secret sits in a prompt or configuration file. The main restriction lever is the set of scopes your app requests, because the agent can only call tools whose scopes your app has approved.
- Request only the scopes you need: a tool such as
list_contactsneedsaccounting.contacts.read, so an app without write scopes cannot callcreate_orupdate_tools. - Leave out write scopes for read-only use: tools starting with
create_,update_,authorise_orvoid_write to the organisation, so omitting their scopes is the most direct control. - Consent per organisation: each tool call runs against a single organisation, and each organisation a user authorises still goes through the standard consent step.
- Confirm app eligibility: Custom Connections apps are not eligible for the Remote MCP Server, so the app type must be a Commercial App.
Before approval, confirm with Xero which plan your app sits on, which scopes the tools in the Remote MCP documentation currently require, and whether your admins can revoke consent centrally.
The open-source XeroAPI/xero-mcp-server runs on the user's machine as a bridge between MCP and the Xero API. It requires Node.js v18 or higher and a Xero developer account with API credentials, so the organization, not Xero's hosted service, controls where the process runs. Its scopes can be narrowed with the optional XERO_SCOPES environment variable, which takes a space-separated list. The README lists separate required scope sets for custom connections created before and from Apr 29, 2026, so the set you use depends on when your connection was created.
- Set an explicit scope list: define
XERO_SCOPESin the environment the server launches from, so the server cannot use broader scopes than you intend. - Match the tools to the scopes: a scope list that omits write scopes leaves the write tools unusable, but confirm this in the repository's tool list for the version you run.
- Control the environment: credentials and the variable live on each developer's machine unless you manage them centrally, so decide who holds the API credentials.
- Pin the version: review the README and release notes before upgrading, since scope requirements are documented per connection date.
Confirm with your platform team which connection type your app uses, which scope set the README requires for it, and how credentials are stored on endpoints.
Xero's documentation says Starter plan apps can try the Remote MCP Server with a demo organisation. This is the lowest-risk way to evaluate tool behaviour, because the agent works on sample data rather than a live ledger. It is still worth treating the trial as a test of controls, since the same scope and consent steps apply and the results will inform the production configuration.
- Test the consent flow: confirm which scopes appear on the consent screen and whether the user can see the organisation being authorised.
- Test write tools deliberately: run
create_,update_andvoid_tools against the demo organisation to see what a write looks like in the audit trail. - Do not copy live data into the demo: keep the trial on sample data so that no production records reach a tool that is still being evaluated.
- Record what you learn: note which scopes each tool actually needed, so the production scope set can be written down before rollout.
Confirm with Xero whether the demo organisation has the same tool and scope behaviour as a live organisation, and whether a trial app can be moved to a Core plan later without rebuilding the connection.
A single shared service account that many staff members or agents use changes the question from what one person can do to what the account can do for everyone. Each tool call runs against one organisation, and the agent acts with the permissions granted at consent, so a shared login can reach every tool its scopes allow. The restriction levers are the same, but the consequences of a broad scope set are multiplied across the team, and attribution in the logs is harder to trace back to a person.
- Narrow the scope set to the shared use case: grant only the read scopes the group needs and keep write scopes to a separate, reviewed connection.
- Separate read and write connections: a read-only app for broad use and a tightly controlled app for approved write tasks limits the blast radius.
- Plan for attribution: if many people share one login, confirm what Xero's logs record about which person or agent triggered a write.
- Document ownership: name an owner who approves scope changes and revokes consent when someone leaves the team.
Confirm with Xero how the shared connection is consented and audited, and whether your own identity provider can enforce who may use it before any request reaches Xero.
Gaps to close before approving write access
The Xero MCP server can change financial records, and several controls that a reviewer would normally expect are not documented in the sources reviewed for this page. The cards below list the gaps to close with Xero and in your own tenant before any agent receives write scopes, and they explain why each one matters.
No documented per-tool admin allowlist
The sources reviewed for this page describe how each tool maps to an approved scope, but they do not describe an admin-side allowlist that lets a Xero organization approve or block individual MCP tools for staff. Ask Xero whether an administrator can restrict which tools a connected client may call, and whether that control applies to the hosted server, the local open-source server, or both. Until that is confirmed, treat the app's approved scopes as the only enforced boundary.
Remote MCP FAQScope granularity against write needs
Each tool requires a specific scope, and the documentation says to request only the scopes for the tools the agent needs. Tools starting with create_, update_, authorise_ or void_ write to the organization, and authorise_invoice and void_invoice change the state of a financial record. Map every write tool to a business task, confirm its scope in the tools table, and decide whether read-only access covers the use case before adding any write scope to the app.
Remote MCP overviewUser consent carries the user's own rights
Authorization runs through a user consent step, so the agent acts with the permissions of the person who approved it. A user who can authorize invoices in Xero can let an agent do the same, even if that person's role was never meant for automated changes. Review which Xero users will connect the app, confirm they hold only the roles they need, and remember that a user who authorizes several organizations still goes through consent for each one.
No client secret does not stop misuse
PKCE means there is no client secret to leak into a prompt, configuration file or AI development tool, which removes one common exposure path. It does not limit what a valid session can do. If someone obtains a live session, or a user is persuaded to approve a prompt-injected request, the agent can call any tool its scopes allow. Pair PKCE with narrow scopes, short review cycles for connected users, and a process for revoking access.
Agent action logging in Xero
Before approving writes, confirm which agent actions Xero records, how those records identify the app and the user, and how long they are kept. The setup page for this topic covers audit logging in more detail. Without clear attribution, an unexpected void or authorization may be hard to trace back to an agent session, so test a write in a demo organization and check what appears in the Xero audit trail.
Order of work to restrict Xero MCP write access
This sequence lets an organization give an agent only the Xero tools a named workflow needs, so write access is added deliberately and checked before any agent reaches live accounting data. Each step ends with a record that a reviewer can inspect.
Inventory the tools the agent needs
The workflow owner lists the specific tasks the agent must perform, such as reading contacts or drafting invoices, and maps each task to a Xero MCP tool. Tools are read from the tools table in Xero's Remote MCP documentation, where each tool's required scope is shown. Mark every tool whose name starts with create_, update_, authorise_ or void_, because those write to the organisation. The output is a short tool list signed off by the business owner and the security reviewer.
Request only the matching scopes in the app
The app owner in the Xero developer portal selects only the scopes that map to the approved tool list, and leaves out any scope for tools the agent does not need. Because the agent can only call tools whose scopes the app has approved, the scope selection is the first hard limit on what it can do. Record the scope list next to the tool list so each scope has a named business reason. The output is an app configuration that matches the inventory with no extra scopes.
Test read-only consent on a demo organisation
Before any live data is involved, the team connects the agent to a demo organisation and completes the consent step with a test user. The tester confirms that read tools return data and that write tools fail with a permission error when no write scope is present. Any tool that works without its expected scope is a finding to resolve before going further. The output is a short test log showing each tool call and its result.
Add write scopes only for named workflows
If a workflow needs to create or change records, the team adds write scopes one workflow at a time, each tied to a named process and an owner who accepts the risk. Invoice authorisation and voiding change the state of a financial record, so these tools warrant a separate, explicit approval rather than inclusion in a general bundle. The output is a written change request for each added scope, approved before the app configuration is updated.
Confirm which users may consent
The identity owner confirms which Xero users are allowed to complete the OAuth consent step for the app, and removes access for anyone who does not need it. Each user can authorise several organisations for the same app, and each organisation still goes through the standard consent step, so the list of consenting users and organisations should be recorded. Confirm with Xero's Remote MCP documentation and FAQ that the access model matches your policy. The output is a named list of consenting users and organisations.
Verify tool calls stay in scope
The tester runs the agent against a test organisation through the approved workflows and checks that every tool call falls within the granted scopes and targets the single organisation expected. Each call is run against one organisation, so the tester should confirm that the organisation identifier in each result matches the intended test organisation. Any call outside scope or against an unexpected organisation stops the rollout. The output is a signed verification record listing each workflow tested and its result.
Set a retest date after scope or user changes
The owner sets a retest trigger for the app whenever scopes are added or removed, a user is added to consent, or a new organisation is connected. The security reviewer repeats the tool inventory check and the demo organisation test each time, and confirms the scope list still matches the approved workflows. Because Xero's documentation may change its tool list over time, the reviewer also checks the current tools table before each retest. The output is a dated change log tied to the original approval.
Evidence a security reviewer asks for
This table lists the records a reviewer can request from Xero and the XeroAPI README setup to confirm what the agent may call, for which organisation, and under which sign-in method. Read each row as a question to answer with a document or screenshot from the app and admin settings. The main takeaway is that tool access is decided by approved scopes, so the scope list and tool mapping matter more than the agent's own configuration.
| Evidence item | Where it comes from in Xero | What it proves |
|---|---|---|
| Requested scope list per app | The scopes selected on the Commercial App in the Xero developer portal, and any XERO_SCOPES override in the local server setup | The maximum set of tools the agent can call. Each tool needs its matching scope. |
| Tools table mapping tools to scopes | The Remote MCP documentation tools table, for example list_contacts requiring accounting.contacts.read | Which read and write tools are reachable once the approved scopes are in place |
| Write tools inventory | Tool names beginning with create_, update_, authorise_ or void_ in the Remote MCP tools table | Which calls change organisation records, including invoice authorisation and voiding |
| PKCE configuration with no client secret | The app's OAuth 2.0 setup with PKCE, as described in the Remote MCP documentation and FAQ | No client secret exists to leak into a prompt, configuration file or AI development tool |
| Consent records per organisation | The Xero consent step each time a user authorises an organisation for the app | Which organisations the user approved, since each tool call runs against one organisation |
| Authorised users of the app | The users who completed the standard consent flow for the app in your Xero org settings | Who can connect an agent, so access can be matched to an approved user list |
| Custom Connections exclusion | The Remote MCP FAQ eligibility statement | That a Custom Connections app cannot reach the hosted server, so the access path is known |
Questions buyers ask before approving Xero MCP write tools
Is the Xero hosted MCP server included on Core plans?
Yes. Per Xero's Remote MCP documentation, Remote MCP access is included at no extra charge for a Commercial App on the Core plan or above. Starter plan apps can try it with a demo organization, and Custom Connections apps are not eligible to access the server. Before approval, check which plan your app sits on in the Xero developer portal and confirm with Xero that these terms still apply on the date of your review. The cost driver is the plan and app type you already hold, so the question for procurement is whether any Xero usage or plan change would affect a rollout that grows beyond a pilot.
Can an agent use the Xero MCP server in read-only mode?
Yes, in practice, by requesting only read scopes. The agent can only call tools for which your app has approved scopes. For example, list_contacts requires accounting.contacts.read. Tools starting with create_, update_, authorise_ or void_ write to the organization, and void_invoice and authorise_invoice change the state of a financial record. A read-only scope set should therefore leave those tools unusable, but verify this in a demo organization by attempting each write tool. Use the tools table in Xero's documentation to map each tool to its scope, and ask Xero to confirm that mapping for the build you plan to use.
How does one user work with multiple Xero organizations?
Each tool call runs against a single organization, while a user can authorize several organizations for the same app. Each organization still goes through the standard consent step, so the user approves each one. The review effort rises with the number of organizations a user holds, whether any of them are production ledgers, and whether your agent prompts or client settings make the target organization clear. Before enabling write tools, test that the agent reads and writes only the intended tenant. Confirm with Xero how organization selection behaves in each client you plan to allow, because that behavior sits in the client as well as in the server.
Is the local open-source Xero MCP server safer than the hosted server?
The sources do not show that the local server is safer. They describe different trade-offs. The XeroAPI/xero-mcp-server project is a bridge between MCP and the Xero API that requires Node.js v18 or higher and a Xero developer account with API credentials. Its scopes can be overridden with the XERO_SCOPES environment variable, a space-separated list, and its README lists separate scope sets for custom connections created before and from Apr 29, 2026. The hosted server uses OAuth 2.0 with PKCE, so no client secret is stored in a prompt or configuration file. With the local server, your team owns credential storage, patching and scope configuration. Choose after confirming where credentials would live.
What does a Xero MCP access restriction review cost?
DeployOpen does not publish a price list. A quote follows from a written scope, and most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. The main cost drivers are the number of workflows the agent must support, the number of Xero scopes requested, the number of consent users and organizations, whether you use the hosted or local server, and whether write tools must be retested after fixes. Ongoing retesting or upgrades are available as retainers. Xero's Remote MCP access carries no extra charge on Core plans, per its documentation, so ask any quote to separate DeployOpen's fixed fees from Xero plan costs and from your own staff time.
Can our own team restrict Xero MCP access internally?
Yes, the core controls are documented and an internal team can apply them. The steps are to request only the scopes needed for approved tools, confirm each tool's scope in the tools table, test write tools in a demo organization, and review consent for each user and organization. The team needs someone who can change the Xero app's scopes, someone who can test agent behavior, and a way to review the logs your AI client keeps. Where a second opinion helps, DeployOpen tests the setup, including tool and file permissions, data exposure, credential handling, and SSO and admin settings, and delivers a findings report with fixes and a retest.
Which Xero MCP write tools should we block first?
Start by blocking the tools whose names begin with create_, update_, authorise_ or void_, because the Remote MCP documentation says these write to the organization. The highest-impact tools are void_invoice and authorise_invoice, which change the state of a financial record. Because each tool requires a specific scope, the simplest control is to leave out the write scopes from the app's approved set, then confirm the agent cannot call those tools in a test organization. Ask Xero to confirm the current tools table before you finalize the scope list, since the tool set and scope names may change over time.
Primary sources to check each Xero MCP security claim
Before approving the Xero MCP server, check each security claim against the source that makes it. Start with the Xero Developer Remote MCP overview and confirm that the hosted server at the documented endpoint is the one your teams will connect to, that the tool list matches what your reviewers expect, and that the scope required by each tool (for example, the accounting.contacts.read scope for list_contacts) is stated next to it. Treat the write tools named with the create_, update_, authorise_ and void_ prefixes as the first items to review.
The Xero Developer FAQ on Remote MCP is the source for access rules and consent. Verify the plan and app eligibility it states, the OAuth 2.0 with PKCE sign-in flow, the fact that Custom Connections apps are not eligible, and the statement that each tool call runs against a single organisation. Confirm with Xero whether the FAQ's guidance on requesting only the scopes an agent needs is reflected in the consent screen your users will see, and record the date you checked, because hosted documentation changes.
The XeroAPI/xero-mcp-server README matters only if your organization runs the local open-source server. Check how the optional XERO_SCOPES environment variable overrides the default scopes, whether the README's separate scope sets for custom connections created before and after the date it states apply to your app, and which Node.js version it requires. Pin the repository version you review, and treat any scope override in a local configuration file as a change that needs its own approval.
How DeployOpen tests an agent's Xero access before rollout
DeployOpen reviews how an AI agent reaches Xero before anyone relies on it, starting from the scopes and tools the agent can call. The work covers the hosted Remote MCP Server or the local open-source server, the OAuth consent step, write tools and the controls around them. Engagements are fixed-scope, with the scope agreed in writing before work starts.
How we scope
- We list every Xero tool the agent would call and match each one to its required scope.
- We identify write tools, including create, update, authorise and void actions, and flag which ones the business needs.
- We confirm which server, app type and organisations are in scope, agreed in writing before work starts.
How we build
- We configure the app to request only the scopes for approved tools, with PKCE as the sign-in method.
- We test whether the agent can reach tools or organisations outside the approved set, including prompt injection attempts.
- We check credential handling so no client secret or API key ends up in prompts, config files or developer tools.
How we hand over
- We deliver a findings report with scope mapping, write-tool risks, reproduction steps and recommended fixes.
- We document the approved scope set, the organisation access model and the restriction steps for administrators.
- We retest after fixes and record the results so your security reviewers can verify each change.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers when Xero scopes or tools change.
- We can re-review the setup when new tools, scopes or organisations are added to the agent's access.
- Any follow-up scope is quoted from the written scope of work, so changes stay visible to your team.

