Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Please note that on Saturday, April 18, 2026, at 8:00 PM Pacific Time, our Case Management System will undergo a scheduled maintenance for approximately 15 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
NetSuite Mcp integration with custom AI Agent, Need Assistant!
Hi everyone,
I’m trying to integrate NetSuite MCP Server with my custom AI Agent, but I keep running into authentication issues. Here’s what I’ve tried so far:
- OAuth 2.0 Setup
- Created an OAuth 2.0 credential in NetSuite.
- From the terminal, I successfully requested an access token.
- However, when I used that access token in a request with
Bearer <token>, I always received a 401 Unauthorized response.
headers = {
"Authorization": f"Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json"
}
response = requests.post(
f"https://{ACCOUNT_ID}.app.netsuite.com/services/mcp/v1/all",
headers=headers,
json={
"jsonrpc": "2.0",
"method": "initialize",
"params": {
"protocolVersion": "2024-11-05",
"capabilities": {}
},
"id": 1
0