A Model Context Protocol (MCP) server that provides AI assistants with access to NetSuite data through SuiteQL queries and metadata retrieval.
This MCP server provides two main tools:
netsuite_get_metadata
- Retrieve schema information for NetSuite record typesnetsuite_run_suiteql
- Execute SuiteQL queries to fetch NetSuite data
- NetSuite account with API access
- Certificate-based authentication set up in NetSuite
- Private key file for the certificate
Configure the following environment variables:
NETSUITE_ACCOUNT_ID=your_account_id
NETSUITE_CLIENT_ID=your_client_id
NETSUITE_CLIENT_SECRET=your_client_secret
NETSUITE_CERTIFICATE_ID=your_certificate_id
NETSUITE_PRIVATE_KEY_PATH=/path/to/your/private_key.pem
NETSUITE_PRIVATE_KEY_PASSWORD=your_private_key_password # Optional
NETSUITE_RECORD_TYPES=customer,item,transaction # Optional
go run github.com/glints-dev/mcp-netsuite@latest
The server will start and communicate via stdio, following the MCP protocol.
Add to your claude_desktop_config.json
:
{
"mcpServers": {
"netsuite": {
"command": "go",
"args": ["run", "github.com/glints-dev/mcp-netsuite/cmd@latest"],
"env": {
"NETSUITE_ACCOUNT_ID": "your_account_id",
"NETSUITE_CLIENT_ID": "your_client_id",
"NETSUITE_CLIENT_SECRET": "your_client_secret",
"NETSUITE_CERTIFICATE_ID": "your_certificate_id",
"NETSUITE_PRIVATE_KEY_PATH": "/path/to/private_key.pem",
"NETSUITE_RECORD_TYPES": "customer,item,transaction"
}
}
}
}
- Go to Setup → Integration → Manage Integrations
- Create a new integration record
- Enable "Token-Based Authentication" and "Certificate Authentication"
- Generate or upload your certificate
- Note the Client ID and Client Secret
- Assign appropriate permissions to the integration
This project is licensed under the MIT License.