Hi all, did anybody manage to connect the NetSuite...
# ai-netsuite
r
Hi all, did anybody manage to connect the NetSuite AI Connector with Perplexity? I have a Perplexity Pro account and using this from the desktop Mac app - Local and Remote MCPs for Perplexity | Perplexity Help Center, but basically getting some errors when trying, such as
❌ Invalid State
CSRF validation failed.
. or
❌ Token Exchange Failed Failed to exchange authorization code: 401
I have been able to connect with Claude Pro before (which is officially supported) with the same user and role, so that should not be the issue.
m
@Roc127 as per the Model Context Protocol (MCP) specification, NetSuite currently supports Dynamic Client Registration (DCR) for Claude and ChatGPT. For any other platform (for example, Perplexity in your case) to work, you need to create an integration record yourself using the proper redirect URL. From there you will obtain a client ID which you can then add during the setup of the MCP Connector in that platform.
r
Thanks @Mohammad Sharaf Ali, that's what I was doing - I created a Integration Record similar to what Claude generates automatically, only difference is setting as the redirect URL - http://localhost:8080/callback (also tried to troubleshoot using AI with no luck so far 🙂 )
b
@Roc127: Netsuite does not support http format (only https). I have the same needs but unfortunatly I havent been successful so far.
m
As per Perplexity
@Roc127 assuming you already tried Claude and were successful with it, means there should be an integration record auto-created (upon first interaction) named
Claude AI
. Simply follow our blog IDE Integration Guide for NetSuite MCP Tools in Cursor & VS Code and use
Command-Based Configuration
.
b
Thanks Mohammad!
m
@betremju glad the post is being useful for others 🙂
s
Can you paste the redirect url here ommitting your company id etc.?
you need to make sure it includes state
also when using mcp scope, your client needs to support PKCE
r
@SimonC, I was using for this the desktop Mac app for Perplexity (with a Pro account). I created a Integration Record similar to what Claude generates automatically, only difference is setting as the redirect URL - http://localhost:8080/callback. When configuring the connection in the perplexity app, the JSON looks like this (xxx as omitting the real data):
Copy code
{
  "args": [
    "@suiteinsider/netsuite-mcp@latest"
  ],
  "command": "npx",
  "env": {
    "NETSUITE_ACCOUNT_ID": "XXX",
    "NETSUITE_CLIENT_ID": "XXX",
    "OAUTH_CALLBACK_PORT": "8080"
  },
  "useBuiltInNode": true
}
s
When you try create a connection im guesssing the client sends you to login to netsuite, can you copy and paste that url from your browser after you login? Ie consent screen
m
I’m not sure why making things complex. Perplexity does not support remote MCP servers at the moment so we need to use a proxy as a bridge between STDIO and StreamableHTTP. For that
mcp-remote
is best and you can pass a Bearer token in that for a successful connection. For Access Token setup in Postman A Setup Guide for NetSuite AI Connector with Postman: API Integration Tutorial For Command-based Proxy connection IDE Integration Guide for NetSuite MCP Tools in Cursor & VS Code
s
And how is your Bearer token being generated?
m
Just follow the guide below to generate an access token based on Claude, ChatGPT, or your Custom integration record. For Access Token setup in Postman A Setup Guide for NetSuite AI Connector with Postman: API Integration Tutorial
s
Thanks. yep that's right - this works because you've selected Authorization Code (With PKCE) which sends all required params specifically for mcp scope (and public client). Were Perplexity to introduce Remote MCP it would also have to do this.
m
Yes exactly!
We have written a couple of great blogs covering the NS MCP series. The following blogs have been published so far and a few more are in the pipeline. 1. A Complete Setup Guide for NetSuite AI Connector 2. A Development Guide to Build Custom Tools for NetSuite AI Connector 3. A Setup Guide for NetSuite AI Connector with Postman: API Integration Tutorial 4. Dual API Integration: Using NetSuite MCP Tools with OpenAI and Anthropic 5. Connecting MCP with ChatGPT: A Complete Guide 6. IDE Integration Guide for NetSuite MCP Tools in Cursor & VS Code 7. NetSuite MCP Challenge: Implementation Case Study & Results Would love to get your feedback on these. And if you find it useful please share it in your network or with others.
🙌 1
Sharing my two cents here. Any MCP-compliant client doesn’t automatically support both Auth (PKCE) and Remote URLs. For example, Cursor supports Remote with token-based auth but not the full PKCE flow (earlier it only supported STDIO). Claude Code behaves similarly. Qwen supports STDIO, so an MCP-Remote bridge comes into play there (even though the UI shows StreamableHTTP support, the auth flow doesn’t fully work yet). NetSuite currently supports Dynamic Client Registration only for Claude and ChatGPT. For other clients, you need to configure a Custom Integration record manually. So based on what the client supports, you must choose your setup accordingly. I personally find it easiest to generate an access token and use it with a STDIO proxy everywhere — avoiding breakdowns when a client doesn’t fully support Remote + Auth flows yet.
329 Views