Skip to content
ProgrammableContact

An MCP server for your audience, with sending left to a person

Contact's MCP server is at /api/mcp: streamable HTTP answered as JSON, authorised with an API key as a bearer token. Its tools, all prefixed contact_, read your contacts, topics, forms, segments, campaigns, sequences, replies, calendar, funnel and reports, and with a full key draft campaigns and sequences and keep prospects and planned items up to date.

Most of what you'd ask a marketing assistant is reading: how last month's campaign did against the five before it, who joined the newsletter and from which form, which sequence step loses people, what's on the calendar. Those are read tools, and a read key is enough. Drafting needs a full key, and the draft then waits in Contact for a person to test and approve.

tools/call · contact_draft_campaign
{ "name": "November newsletter",
  "topic": "newsletter",
  "subject": "What we shipped in November" }
→ { "id": "…", "status": "draft" }

An agent can

  • Read contacts, segments and reports
  • Draft and edit a campaign or sequence
  • Preview who a campaign reaches
  • Check whether an address may be mailed

Only a person can

  • Send, test, approve or schedule
  • Subscribe anyone
  • Lift a stop
  • Erase a person
What an agent connected over MCP can and can't do. The limits are in the code and held by tests.

What it does

MCP server in Programmable Contact

  • Read tools

    contact_find_contacts, contact_get_contact, contact_list_topics, contact_list_segments, contact_list_campaigns, contact_campaign_audience, contact_preview_campaign, contact_funnel, contact_report, contact_list_replies, contact_calendar and more.

  • Draft tools

    contact_draft_campaign, contact_update_campaign_draft, contact_draft_sequence, contact_update_sequence_draft, contact_add_planned_item, contact_add_prospect.

  • A check before a send

    contact_check_suppression answers whether an address may get a topic, by the same check sends use.

  • What no tool does

    Send, approve, schedule, subscribe, lift a stop or erase. tests/mcp.db.test.ts fails if a tool ever names a function that does.

  • Scoped by key

    A read key reads; a full key drafts. A key belongs to one workspace.

  • Same data as REST

    Everything MCP reads is also in the REST API.

How it works

  1. 1

    Make a key

    Read or full, on the API keys page.

  2. 2

    Add the server

    URL https://programmable.contact/api/mcp, header Authorization: Bearer <key>.

  3. 3

    Ask

    “Who joined the newsletter this month, and from which form?” or “Draft a welcome sequence for the product-news topic.”

  4. 4

    Approve in Contact

    Drafts wait in the dashboard for a person's test and approval.

Good to know

Stateless
Each call stands alone; there are no server-sent sessions.
No sending, ever
By design, not by setting.
No consent changes
No tool records a yes, lifts a stop or erases anyone. People change their own consent; a person in your workspace makes the rest.
One workspace per key
An agent working across several workspaces needs a key from each.

Questions

Does Contact run an AI model itself?

No. Contact doesn't call a model: your agent does the thinking and writing, and Contact holds the data and enforces the rules.

What does a call look like?

A JSON-RPC tools/call posted to /api/mcp with the tool's name and arguments, and a JSON answer. There's no session to keep.

Does it work with Claude?

Yes, and with any MCP client that can call an HTTP server with a bearer token.

Can the agent see email addresses?

Contact tools return what the workspace holds for the key's scope. Reply tools return ids, words and flags only.

Can I limit an agent to reading?

Yes: give it a read key.

Every plan has all of it.

Plans differ only in how many contacts you keep and how much email you send.