Skip to main content

Overview

Nudgen MCP gives AI agents tool-based access to your Nudgen workspace. Use it when your agent supports Model Context Protocol and you want it to call Nudgen tools directly instead of writing REST requests.

Hosted server

Connect to Nudgen over HTTPS. No local MCP server process is required.

PAT auth

Use the same Personal Access Token as the Developer API.

Campaign tools

Create contacts, draft emails, create campaigns, and schedule launches.

Why this matters

MCP lets an AI assistant operate through structured Nudgen tools. That makes workflows like “create this contact, draft a campaign, schedule it for tomorrow, and report stats” easier for the agent to perform reliably. Use MCP when your agent supports Model Context Protocol tools. The Nudgen MCP server is hosted, so you do not need to run a local server process.

Before you connect

  1. Create a Personal Access Token from Settings -> API Keys.
  2. Store the token as an environment variable, for example NUDGEN_PAT.
  3. Confirm your active workspace in Nudgen. MCP tools operate on the token owner’s active workspace.
The MCP server can create contacts, update brand settings, create campaigns, and launch real email. Keep manual approval enabled for tool calls when your MCP client supports it.

Claude Code

Add Nudgen as an HTTP MCP server:
If you prefer project config, add this to .mcp.json:
Restart Claude Code or run its MCP refresh command, then ask:

Cursor

Open Cursor Settings -> Tools & MCP -> New MCP Server and add:
Restart Cursor if the tools do not appear immediately. Then ask Cursor to use MCP tools, for example:

Windsurf

Open the Windsurf MCP configuration and add the hosted HTTP server:
Reload Windsurf after saving. If your Windsurf version does not support HTTP MCP headers, use the REST API directly until header support is available.

Codex CLI

Add the server to your Codex MCP configuration:
Then verify the server is available:

Generic MCP clients

Any MCP client that supports hosted HTTP MCP servers and custom headers can connect with this configuration:
If your client only supports local command-based MCP servers, use the REST API for now or run a small local proxy that forwards requests to https://nudgen.net/api/mcp with the Authorization header.

Verify with JSON-RPC

You can verify the server without an MCP client:

Available MCP tools

Available MCP tools mirror the core REST workflows:

Troubleshooting

Security recommendations

  • Create a separate PAT for each agent or environment.
  • Revoke tokens when an agent, laptop, CI job, or workspace is no longer trusted.
  • Keep manual approval enabled for write tools such as create_campaign, launch_campaign, and update_brand_settings.
  • Use future scheduledAt values when testing campaign launch workflows.
  • Avoid pasting raw PATs into chat logs, issue comments, or source files.

REST alternative

If your client does not support hosted HTTP MCP servers or custom headers, use the Developer API. The REST API uses the same PAT and exposes equivalent campaign, contact, brand, and AI draft operations.