Overview
Nudgen hosts an MCP server at your app origin’s/mcp endpoint. It speaks MCP 2026-07-28 over Streamable HTTP and requires OAuth 2.1. Connect a client that supports that transport. Sign in to Nudgen in your browser, choose a workspace, and approve the permissions the client requests. Your connection stays bound to that workspace, even if you later switch workspaces in the dashboard.
Why this matters
Your assistant can read contacts and campaigns, find nearby businesses, draft content, and prepare a campaign for launch without handling a dashboard session or a Personal Access Token. You review each real send or schedule in your browser before it can proceed.Connect your client
The production endpoint is:
The authorization server uses authorization code with PKCE S256, resource binding, and refresh-token rotation. It accepts Client ID Metadata Documents and dynamic client registration.
For Codex CLI, use:
nudgen is already configured, update that entry with the /mcp URL.
If you only need to inspect data, request
campaigns:read. Add campaigns:write when the client should change contacts, drafts, brand settings, or imported leads. Add campaigns:send only when the client needs to request launch approval.
Personal Access Tokens authenticate the Developer API, but they do not authenticate
/mcp. An MCP client must complete OAuth sign-in.Available tools
create_campaign saves a draft one-time campaign. It cannot send or schedule directly. get_campaign lets you check the subject, content, link, audience, and sender before launch.
The server also exposes read-only resources on campaigns:read:
Find and import map leads
- Ask the assistant to call
search_map_leadswith a location and business keywords, such as a city andmarketing agency. - Optional filters are
radiusKm(1–100),latandlng, andemailOnlyto keep businesses that publish an email. - When the result includes
nextPageToken, pass it aspageTokento load another page. - Ask the assistant to call
import_map_leadswith the same location and keywords, plus the lead objects to save. Each call accepts up to 200 leads.
Approve a campaign launch
- Ask the assistant to inspect the draft with
get_campaign. - Ask it to call
prepare_campaign_launchwith the campaign ID and the exact send-now or scheduled time you want. This returns a one-time approval URL; no email is sent yet. - Open the URL, review the workspace, recipient estimate, content, sender, and timing, then click Approve launch.
- Return to the client so it can call
launch_campaignwith the same campaign ID, timing, andapprovalId.
Manage access
Open Settings → API Keys → Connected MCP apps to see each connected client’s workspace and scopes. Revoke a connection there if it should no longer have access. Revocation disables its tokens and pending launch approvals. You can reconnect through OAuth later. OAuth grants last at most 90 days. Losing access to a workspace also prevents the client from using that workspace’s connection.Troubleshooting
For scripts using bearer tokens and direct REST endpoints, see the Developer API.