NetSuite MCP
This page describes a beta feature that may change.
NetSuite MCP connects Glean to NetSuite's MCP server, giving users live access to NetSuite tools. Unlike the NetSuite search integration, which indexes records into Glean search, NetSuite MCP provides real-time access at request time using each user's own NetSuite credentials and role.
Use NetSuite MCP when:
- You want live NetSuite tool access from Glean. MCP-backed actions let users invoke NetSuite tools directly from Glean instead of relying only on indexed content.
- You want per-user authorization. Each user authorizes with their own NetSuite credentials and role, so access reflects individual permissions.
- You want users to access current NetSuite data in real time through Glean.
- You want to reuse NetSuite tools inside Glean Assistant and Agents as MCP-backed actions, with centralized admin control over which tools are available.
Need searchable NetSuite records in Glean? Set up NetSuite search integration too. We strongly recommend enabling both integrations.
How it works
NetSuite MCP uses the NetSuite AI Connector Service with a streamable HTTP transport. When a user runs a NetSuite tool from Glean, the request goes directly to NetSuite's MCP server and returns live data. Results reflect the current state of your NetSuite environment and are scoped to the permissions of the user's assigned NetSuite role.
Requirements
NetSuite requirements
- An active NetSuite account with the following features enabled:
- Server SuiteScript
- OAuth 2.0
- REST Web Services
- Access to the SuiteApp Marketplace to install the MCP Standard Tools SuiteApp.
- A NetSuite administrator to complete the setup steps below.
Glean requirements
- Access to the Glean admin console with permission to configure MCP connections.
Setup and configuration
A NetSuite administrator completes steps 1 through 5 in NetSuite. A Glean administrator completes steps 6 and 7 in Glean.
Step 1: Enable required NetSuite features
- In NetSuite, go to Setup > Company > Enable Features.
- On the SuiteCloud tab, confirm the following features are enabled:
- Server SuiteScript
- OAuth 2.0
- REST Web Services
See Required Features and Permissions in the NetSuite documentation.
Step 2: Install the MCP Standard Tools SuiteApp
- Go to Customization > SuiteCloud Development > SuiteApp Marketplace (or search for SuiteApp Marketplace in the global search).
- Search for MCP Standard Tools.
- Install the SuiteApp and wait for the installation to complete.
See Installing the MCP Standard Tools SuiteApp in the NetSuite documentation.
Step 3: Create or update a non-admin role for MCP
Create a new role or add the required MCP permissions to an existing non-admin role. Oracle requires that the role is not the Administrator role or any role with full permissions to access NetSuite features.
- Go to Setup > Users/Roles > Manage Roles.
- Create a new role or edit an existing non-admin role.
- Under Permissions > Setup, add the following permissions:
- MCP Server Connection (required for MCP access)
- Log in using OAuth 2.0 Access Tokens (required for user authorization)
- REST Web Services (required only if MCP tools will create or update records)
- Save the role.
- If you created a new role, assign it to the NetSuite users who will authorize the connection. Skip this step if you added MCP permissions to a role those users already have.
See Required Features and Permissions and Assign Users to OAuth 2.0 Roles in the NetSuite documentation.
Use a non-admin role for MCP. Admin roles have broader access than most users need for tool-based workflows. A dedicated non-admin role lets you control exactly which permissions MCP users have.
The role configured here is the role used by the admin who authorizes the MCP connection during setup. If this role has only the minimum MCP permissions and no access to the NetSuite data or actions that the admin needs, the admin will be able to connect but will not be able to use the NetSuite MCP server meaningfully. Grant this role access to the NetSuite records and actions that the admin is expected to use through MCP.
Step 4: Create the OAuth 2.0 integration record
- Go to Setup > Integration > Manage Integrations > New.
- Configure the integration with the following settings:
- Name: a descriptive name (for example,
Glean MCP Integration) - Authorization Code Grant: enabled
- Public Client: enabled
- Scope: select NetSuite AI Connector Service OAuth 2.0
- Callback URL: paste the redirect URI from the Glean admin console (you will find this in the MCP connection setup screen in Glean). The redirect URI must start with
https://. - Token-based Authentication: leave disabled
- Client Credentials Grant: leave disabled
- Do not enable other scopes (RESTlets, REST Web Services, SuiteAnalytics Connect) on this record
- Name: a descriptive name (for example,
- Save the integration.
- Copy the Client ID and Client Secret immediately. These credentials are only displayed once upon saving.
See Create Integration Records for Applications to Use OAuth 2.0 in the NetSuite documentation.
The Callback URL must exactly match the redirect URI shown in Glean — including scheme, host, path, and trailing slash. Even a trailing-slash mismatch causes an Invalid login attempt error when users try to authorize.
Step 5: Confirm the integration record is enabled
- Go to Setup > Integration > Manage Integrations.
- Open the integration record you just created.
- If the record was auto-created and shows a pending state, enable it manually.
See Connect to the NetSuite AI Connector Service in the NetSuite documentation.
Step 6: Complete the connection in Glean
- In the Glean admin console, go to the MCP connection setup for NetSuite.
- Enter the following:
- Before initiating, verify that the redirect URI saved on the NetSuite integration record matches the callback URL shown in Glean exactly.
- Initiate the connection.
Step 7: Enable MCP actions for users
After the connection is established, publish and enable NetSuite MCP tools as actions for the users or groups that need access in the Glean admin console. NetSuite MCP actions are NetSuite tools exposed through the MCP server and made available in Glean for approved users or groups.
To enable access:
- Under Enable actions, click Edit settings.
- In the Enable actions screen, make the synced NetSuite tools visible for all or some teammates.
- In the Chat section, review the synced NetSuite tools.
- For each tool, use the Access field to add the departments or teammates who should be able to use it. For example, you can add an individual teammate by name, a department such as Product, or choose All teammates.
- If multiple tools should use the same access setting, click Copy to all tools.
- Click Save.
After actions are enabled, each user is prompted to authenticate the first time they use a NetSuite MCP tool.
Any NetSuite role that users authorize with must include the same settings as in Step 3. These are MCP Server Connection, Log in using OAuth 2.0 Access Tokens, and REST Web Services if the role needs to create or update records through the SuiteApp tools.
Verify the connection
After setup, confirm that NetSuite MCP is working:
- As an end user with the MCP role assigned, connect to NetSuite MCP from Glean.
- Run a NetSuite tool from Glean and confirm that results reflect the user's NetSuite permissions.
Quick checklist
- Enable Server SuiteScript, OAuth 2.0, and REST Web Services in NetSuite
- Install the MCP Standard Tools SuiteApp
- On a non-admin role (new or existing), grant MCP Server Connection and Log in using OAuth 2.0 Access Tokens permissions
- If you created a new role, assign it to the MCP users
- Create an OAuth 2.0 integration record with Authorization Code Grant, Public Client, and the AI Connector Service scope only
- Confirm the integration record is enabled
- Verify the redirect URI on NetSuite matches the callback URL in Glean exactly
- Enter account ID, client ID, and client secret in Glean and initiate connection
- Enable MCP actions for users