MetorialDocs

Set up NetSuite in Metorial for Claude, ChatGPT and Cursor

Share NetSuite with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or Token-Based authentication sign-in, 10 tools (5 read-only).

To give your team NetSuite in Claude, ChatGPT, Cursor and other AI clients, an admin shares the NetSuite integration in a Metorial portal, and each person signs in to NetSuite with their own account. Agents can discover NetSuite record types and metadata available to your account and role. The integration has 10 tools, 5 read-only, 4 write and 1 destructive, plus 2 triggers.

What you'll learn

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

Before you start

Sign-in methods

MethodTypeWhat a person provides
OAuth 2.0 (default)OAuthSigns in to NetSuite after entering accountId
Token-Based Authentication (TBA)Custom credentialsaccountId, consumerKey, consumerSecret, tokenId and tokenSecret

The portal and metorial setup use OAuth 2.0 unless someone picks another method.

OAuth 2.0

Before the sign-in, setup asks for:

  • accountId: NetSuite Account ID (e.g., "1234567" or "1234567_SB1" for sandbox)

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

ScopeNameWhat it allows
rest_webservicesREST Web ServicesAccess to NetSuite REST Web Services API for record CRUD and SuiteQL queries
restletsRESTletsAccess to custom RESTlet endpoints deployed in NetSuite

Token-Based Authentication (TBA)

To connect, a person enters these values:

  • accountId: NetSuite Account ID (e.g., "1234567" or "1234567_SB1" for sandbox)
  • consumerKey: Consumer Key from the Integration Record in NetSuite
  • consumerSecret: Consumer Secret from the Integration Record in NetSuite
  • tokenId: Token ID generated from the Access Token in NetSuite
  • tokenSecret: Token Secret generated from the Access Token in NetSuite

Setup settings

Whichever method you pick, setup also asks for:

  • accountId: NetSuite Account ID (e.g., "1234567" or "1234567_SB1" for sandbox). Found in your NetSuite URL: https://<ACCOUNT_ID>.app.netsuite.com

Use your own NetSuite OAuth app

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

Register the app with NetSuite

Create an OAuth app or client in NetSuite and add the redirect URI from Metorial as its redirect or callback URL.

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 NetSuite integration.

Admin: share NetSuite 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 NetSuite. Under Auth Method, keep OAuth 2.0 or pick another. For how members connect, choose Each person connects, so everyone signs in to NetSuite as themselves.

Limit the tools

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

Choose who gets it

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

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

Employee: connect NetSuite

In the portal

Open NetSuite in the catalog

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

Authenticate

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

catalog search prints the catalog item ID. metorial setup uses OAuth 2.0. To connect with Token-Based Authentication (TBA) instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your NetSuite 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 netsuite
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 5 read-only tools, such as get_record and list_records, and lose the 4 write tools, such as create_record or update_record, and the destructive tool delete_record.

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 netsuite
metorial tools <integration-id>
metorial call <integration-id> list_records -d '{"recordType":"<record-type>"}'

metorial tools lists the 10 tools, minus any you rejected. list_records needs recordType, so replace the placeholders. It retrieves a page of NetSuite records of a type discovered with list_record_types.

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

Tools

Read-only tools (5)

  • get_record: Retrieve a NetSuite record by its internal ID or eid:<externalId>. Needs recordType and recordId.
  • list_records: Retrieve a page of NetSuite records of a type discovered with list_record_types. Needs recordType.
  • list_record_types: Discover exact record type names exposed by the authenticated account and role through the native metadata catalog.
  • query_suiteql: Execute a SuiteQL query against NetSuite data. Needs query.
  • get_record_metadata: Retrieve the native OpenAPI metadata for a NetSuite record type discovered with list_record_types. Needs recordType.

Write tools (4)

  • upsert_record: Create or update a NetSuite record using an external ID. Needs recordType, externalId and fieldValues.
  • transform_record: Transform a NetSuite record into a new record of another type. Needs sourceRecordType, sourceRecordId and targetRecordType.
  • update_record: Update an existing NetSuite record by its type and internal ID. Needs recordType, recordId and fieldValues.
  • create_record: Create a NetSuite record using a type discovered with list_record_types and a creation operation supported by get_record_metadata for your role. Needs recordType and fieldValues.

Destructive tools (1)

  • delete_record: Permanently delete a NetSuite record by its type and internal ID. Needs recordType and recordId.

Triggers

NetSuite has 2 triggers, which fire on events in NetSuite:

  • record_changes: Polls NetSuite for newly created or recently modified records using SuiteQL.
  • inbound_webhook

Next steps