NetSuite MCP Server
The NetSuite MCP server lets your AI agents interact with your NetSuite ERP data through the REST API. Agents can retrieve and list records, inspect record type metadata, and run SuiteQL queries — all read-only.
Capabilities
| Tool | What It Does |
|---|---|
| Get record | Retrieve a single record by type and internal ID |
| List records | List records of a specific type with pagination |
| Get record type metadata | Retrieve field definitions and metadata for a record type |
| Run SuiteQL | Execute a read-only SuiteQL query against the NetSuite database |
📝 Note: All NetSuite tools are read-only. The agent cannot create, update, or delete records. SuiteQL queries are restricted to
SELECTstatements only.
OAuth Setup
The NetSuite MCP server uses OAuth to authenticate on behalf of each user. To enable this integration, you need to create an OAuth integration record in NetSuite and provide the credentials to Devs.ai.
Step 1: Enable OAuth 2.0 in NetSuite
- Sign in to NetSuite as an administrator.
- Go to Setup > Company > Enable Features.
- Under the SuiteCloud tab, enable OAuth 2.0.
Step 2: Create an Integration Record
- Go to Setup > Integration > Manage Integrations > New.
- Enter a name (for example, "Devs AI").
- Under Authentication, check OAuth 2.0 and select Authorization Code Grant.
- Enter the redirect URL provided by your Devs.ai platform administrator.
- Under Scope, enable REST Web Services.
- Click Save.
Step 3: Get Your Credentials
- After saving, NetSuite displays the Consumer Key (Client ID) and Consumer Secret (Client Secret).
- Copy both values immediately — the Consumer Secret is only shown once.
Step 4: Configure in Devs.ai
- Navigate to Organization > Connectors in Devs.ai.
- Find the NetSuite template and click Enable.
- Select OAuth as the authentication type.
- Enter your Consumer Key (Client ID) and Consumer Secret (Client Secret) from Step 3.
- Select the tools you want to make available.
- Click Save.
When a user first interacts with an agent connected to NetSuite, they will be prompted to authorize access to their NetSuite account.
OAuth Configuration Reference
| Field | Value |
|---|---|
| Authorization URL | https://system.netsuite.com/app/login/oauth2/authorize.nl |
| Token URL | https://{accountId}.suitetalk.api.netsuite.com/services/rest/auth/oauth2/v1/token |
| Scopes | rest_webservices |
📝 Note: Replace
{accountId}with your NetSuite account ID (for example,TSTDRV1234567). The exact token URL depends on your account's data center.