Connect RightMessage to AI Assistants via MCP
RightMessage's MCP (Model Context Protocol) server lets AI assistants like Claude, ChatGPT, and Cursor manage your personalization setup directly. Your AI can create campaigns, build flows, analyze performance, and export data — all through natural conversation.
You'll need an API token and a few minutes to configure your AI client.
Generate your API token
First, create a token that your AI assistant will use to access your RightMessage account.
Go to your Profile (click your avatar, then "Your Profile")
Switch to the API Tokens tab
Enter a name like "Claude Desktop" or "Cursor IDE"
Click Create
Copy the token immediately — you won't see it again
Keep your API token secure. Anyone with this token can modify your RightMessage projects.
Configure your AI client
Each AI assistant stores its MCP configuration in a different location. Find your client below and follow the setup steps.
Claude Desktop
Claude Desktop reads its configuration from a JSON file on your computer.
Open Claude Desktop
Go to Settings → Developer → Edit Config (this opens the config file in your text editor)
Add RightMessage to the
mcpServerssection:
{
"mcpServers": {
"rightmessage": {
"command": "npx",
"args": [
"mcp-remote",
"https://api.rightmessage.com/mcp/rightmessage",
"--header",
"Authorization: Bearer YOUR_API_TOKEN_HERE"
]
}
}
}Replace
YOUR_API_TOKEN_HEREwith the token you copied earlierSave the file
Fully quit and restart Claude (right-click the dock icon and select Quit)
You'll see a hammer 🔨 icon in the chat window when RightMessage tools are available. Try asking "Show me my RightMessage projects" to test the connection.
Claude Desktop uses mcp-remote to connect to HTTP-based MCP servers. The first time you use it, npx will download the package automatically.
Cursor
Cursor has native support for HTTP-based MCP servers.
In Cursor, open Settings (Cmd+, on Mac, Ctrl+, on Windows)
Search for "MCP" in settings
Click Edit in settings.json
Add RightMessage to the
mcpServerssection:
{
"mcpServers": {
"rightmessage": {
"url": "https://api.rightmessage.com/mcp/rightmessage",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN_HERE"
}
}
}
}Replace
YOUR_API_TOKEN_HEREwith your tokenSave and restart Cursor
Toggle RightMessage tools on/off in the Cursor chat panel. Ask "What campaigns are running in my RightMessage account?" to verify.
You can use environment variables in Cursor's config: "Authorization": "Bearer ${env:RIGHTMESSAGE_TOKEN}"
VS Code with GitHub Copilot
GitHub Copilot supports MCP through VS Code's extension system.
Open VS Code
Press Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows/Linux)
Type "MCP: Add Server" and select it
Choose HTTP as the transport type
Enter the URL:
https://api.rightmessage.com/mcp/rightmessageAdd the authorization header:
Header name:
AuthorizationHeader value:
Bearer YOUR_API_TOKEN_HERE
Save the configuration
Alternatively, create a .vscode/mcp.json file in your workspace:
{
"mcpServers": {
"rightmessage": {
"url": "https://api.rightmessage.com/mcp/rightmessage",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN_HERE"
}
}
}
}Switch Copilot to Agent mode in the chat panel to access MCP tools.
ChatGPT Desktop
ChatGPT Desktop uses a similar configuration to Claude.
Locate your ChatGPT configuration file:
macOS:
~/Library/Application Support/ChatGPT/mcp_config.jsonWindows:
%APPDATA%\ChatGPT\mcp_config.jsonLinux:
~/.config/ChatGPT/mcp_config.json
Create or edit the file with this configuration:
{
"mcpServers": {
"rightmessage": {
"command": "npx",
"args": [
"mcp-remote",
"https://api.rightmessage.com/mcp/rightmessage",
"--header",
"Authorization: Bearer YOUR_API_TOKEN_HERE"
]
}
}
}Replace
YOUR_API_TOKEN_HEREwith your tokenSave and restart ChatGPT Desktop
Google Gemini (CLI)
Gemini's command-line tools support MCP server configuration.
Open your terminal
Run the Gemini MCP add command:
gemini mcp add --transport http --trust https://api.rightmessage.com/mcp/rightmessageWhen prompted, add the authorization header:
Header:
AuthorizationValue:
Bearer YOUR_API_TOKEN_HERE
Or manually edit ~/.gemini/settings.json (macOS/Linux) or %USERPROFILE%\.gemini\settings.json (Windows):
{
"mcpServers": {
"rightmessage": {
"httpUrl": "https://api.rightmessage.com/mcp/rightmessage",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN_HERE"
}
}
}
}Verify with gemini /mcp in your terminal.
What your AI can do
Once connected, your AI assistant can manage nearly every aspect of your RightMessage account through 47 different tools:
Create and manage:
Segment groups and segments
Survey questions
Campaigns (content personalization)
Widgets (popups, slide-ins, bars)
Flows (surveys and quizzes with branching logic)
Offers (lead magnets, content upgrades)
Forms (email capture)
Analyze performance:
Overall account analytics
Audience breakdown by segment
Campaign, offer, and flow performance metrics
Traffic analytics
Export and search data:
Survey answers and responses
Lead captures
Visitor search and profiles
Publish history
All changes your AI makes are saved as drafts. Nothing goes live until you explicitly publish your configuration.
How to work with your AI
Start by asking your AI to show you what projects it can access:
"Show me my RightMessage projects and what's in each one."
Your AI will list your projects with counts of segments, questions, campaigns, and other resources. Tell it which project to work on:
"Set the active project to [your project name]."
Now you can ask it to make changes or analyze data:
"Create a new segment group called 'Experience Level' with three segments: Beginner, Intermediate, and Advanced."
"Show me which campaigns are performing best this month."
"Build a flow that asks visitors about their biggest challenge, then shows them a relevant lead magnet."
"Export all survey responses from the last 30 days."
When you're ready to make changes live, ask your AI to publish:
"Publish these changes to my live site."
Create resources in dependency order for best results: segment groups → questions → offers → flows → widgets → campaigns. Your AI knows this workflow and will follow it automatically.
Troubleshooting
AI can't see RightMessage tools
Verify you fully restarted your AI client (not just closed the window)
Check that your API token is correctly formatted in the config file
Make sure there are no syntax errors in your JSON configuration
Permission denied or authentication errors
Your API token may have been deleted or expired. Generate a new one from your Profile.
Confirm you copied the entire token, including any trailing characters
Rate limit errors
The MCP server allows 120 requests per minute. If you hit this limit, wait 60 seconds and try again.
Changes not appearing on your site
Changes are saved as drafts by default. Ask your AI to run
publish-configor manually publish from your RightMessage dashboard.