Hosted MCP server · #54 most used on Smithery
primitive.dev
primitivedotdev/primitive
Email infrastructure for AI agents — send, receive, search, and manage email over a clean HTTP API. Connect verified domains, route inbound mail, set up webhooks, and automate email workflows. Authenticate with a Primitive API key or via OAuth.
- Uses
- 8.4k
- Tools
- 28
- Runs
- Hosted
- Listed
- 5mo ago
Get started
Add it to your agent
npx -y @smithery/cli@latest install primitivedotdev/primitive --client claudeSwap --client claude for cursor, vscode, windsurf or another client. The CLI asks for any required settings.
claude mcp add --transport http primitive-dev https://server.smithery.ai/primitivedotdev/primitive/mcpA hosted server: nothing to install. Run /mcp in Claude Code to sign in if it asks.
[mcp_servers.primitive-dev]
url = "https://server.smithery.ai/primitivedotdev/primitive/mcp"Add to ~/.codex/config.toml.
{
"mcpServers": {
"primitive-dev": {
"url": "https://server.smithery.ai/primitivedotdev/primitive/mcp"
}
}
}Add to ~/.cursor/mcp.json.
{
"servers": {
"primitive-dev": {
"type": "http",
"url": "https://server.smithery.ai/primitivedotdev/primitive/mcp"
}
}
}Add to .vscode/mcp.json.
gemini mcp add --transport http primitive-dev https://server.smithery.ai/primitivedotdev/primitive/mcpSaved to .gemini/settings.json.
What it can do
28 tools
listDomainsList all inbound domains for the organization, both verified and unverified. Each domain includes its verification status and DNS records…
List all inbound domains for the organization, both verified and unverified. Each domain includes its verification status and DNS records. Use before addDomain to check whether a domain is already claimed.
addDomain1 paramClaim a new domain and receive the DNS records to publish. Returns dns_records with the exact records to add. If the domain has an mx_con…
Claim a new domain and receive the DNS records to publish. Returns dns_records with the exact records to add. If the domain has an mx_conflict (existing mail provider), re-call with confirmed: true to proceed. After publishing DNS records, call verifyDomain to complete setup.
| Parameter | Type | Description |
|---|---|---|
requestBody | object |
verifyDomain1 paramCheck DNS records for a domain claim (MX, TXT, SPF, DKIM, DMARC). On success the domain becomes verified and starts receiving mail. On fa…
Check DNS records for a domain claim (MX, TXT, SPF, DKIM, DMARC). On success the domain becomes verified and starts receiving mail. On failure, returns which checks passed and which still need attention. If DNS propagation is incomplete, wait a few minutes and retry.
| Parameter | Type | Description |
|---|---|---|
id | string | Domain ID returned by addDomain or listDomains. |
downloadDomainZoneFile2 paramsDownload a BIND-format DNS zone file for a domain. Useful when users want to import all required DNS records at once rather than copying …
Download a BIND-format DNS zone file for a domain. Useful when users want to import all required DNS records at once rather than copying them individually. Returns plain text in BIND zone file format.
| Parameter | Type | Description |
|---|---|---|
id | string | Domain ID from listDomains or addDomain. |
outbound_only | boolean | When true, include only outbound DNS records (SPF, DKIM, DMARC). Defaults to all records for unverified domains, outbound-only for verified. |
getAccountUse this when you need the authenticated Primitive account summary, including email, plan, onboarding state, and webhook secret rotation …
Use this when you need the authenticated Primitive account summary, including email, plan, onboarding state, and webhook secret rotation time.
getInboxStatusUse this when the user asks whether inbound email is ready or needs setup. Returns domains, routes, deployed Functions, and recent inboun…
Use this when the user asks whether inbound email is ready or needs setup. Returns domains, routes, deployed Functions, and recent inbound activity.
getOutboundStatusWhat can I send FROM? Lists this account's verified outbound (sendable) domains plus any domains still pending DNS verification, with nex…
What can I send FROM? Lists this account's verified outbound (sendable) domains plus any domains still pending DNS verification, with next actions. Call this BEFORE sendEmail to pick a valid `from` domain — the account email is not necessarily sendable. The same sendable list is echoed in a cannot_send_from_domain error.
listEmails9 paramsUse this when you need to browse inbound emails received at verified domains with cursor pagination, status filters, date filters, or sen…
Use this when you need to browse inbound emails received at verified domains with cursor pagination, status filters, date filters, or sender/recipient search.
| Parameter | Type | Description |
|---|---|---|
wait | number | Long-poll up to this many seconds (0–30, default 0) holding the request for new mail instead of returning an empty page immediately. Requires `since`. Returns as soon as matching mail arrives, or an e |
limit | number | Maximum number of emails to return (1–100, default 50). |
since | string | Forward-tail cursor (a `meta.cursor` value, format `{ISO datetime}|{UUID}`): returns emails strictly NEWER than this position, oldest-first, for lossless polling of just-arrived mail. Mutually exclusi |
cursor | string | Backward (history) pagination cursor from a previous response's `meta.cursor` field: returns emails OLDER than this position, newest-first. Mutually exclusive with `since`. |
search | string | Free-text search across sender, recipient, and subject. |
status | string | Filter to emails in this processing status. |
date_to | string | Inclusive upper bound on created_at (ISO 8601). |
date_from | string | Inclusive lower bound on created_at (ISO 8601). |
domain_id | string | Filter to emails received on a specific verified domain. |
searchEmails12 paramsUse this when you need to find inbound emails with structured filters or full-text matching. Use sort=received_at_asc plus date_from for …
Use this when you need to find inbound emails with structured filters or full-text matching. Use sort=received_at_asc plus date_from for new-mail polling.
| Parameter | Type | Description |
|---|---|---|
q | string | Full-text query matched across subject, body, sender, and recipient. |
to | string | Filter to emails addressed to this recipient. |
body | string | Filter to emails whose body contains this string. |
from | string | Filter to emails from this sender address or domain. |
sort | string | Sort order. Use received_at_asc with date_from for polling new mail. |
limit | number | Maximum number of emails to return (1–100, default 50). |
cursor | string | Pagination cursor from a previous response's `meta.cursor` field. |
status | string | Filter to emails in this processing status. |
date_to | string | Inclusive upper bound on received_at (ISO 8601). |
snippet | string | Include a short body snippet in each result (default true). |
subject | string | Filter to emails whose subject contains this string. |
date_from | string | Inclusive lower bound on received_at (ISO 8601). |
getEmail1 paramUse this when you need full details for one inbound email ID, including parsed bodies, threading metadata, SMTP envelope, webhook state, …
Use this when you need full details for one inbound email ID, including parsed bodies, threading metadata, SMTP envelope, webhook state, and replies.
| Parameter | Type | Description |
|---|---|---|
id | string | Inbound email ID from listEmails or searchEmails. |
replyToEmail2 paramsUse this when the user has selected a specific inbound email and confirmed a reply. Sends real outbound email with threading handled serv…
Use this when the user has selected a specific inbound email and confirmed a reply. Sends real outbound email with threading handled server-side.
| Parameter | Type | Description |
|---|---|---|
id | string | Inbound email ID to reply to. Threading headers are set server-side. |
requestBody | object |
sendEmail2 paramsUse this when the user has confirmed a new outbound email. Sends real email through Primitive's relay and can wait for the first SMTP del…
Use this when the user has confirmed a new outbound email. Sends real email through Primitive's relay and can wait for the first SMTP delivery outcome.
| Parameter | Type | Description |
|---|---|---|
requestBody | object | |
Idempotency-Key | string | Client-supplied idempotency key. Retrying with the same key returns the original result without re-sending. |
sendEmailDemo1 paramSend a SIMULATED email with no account required. Validates the body against the exact same schema as sendEmail, then returns a realistic …
Send a SIMULATED email with no account required. Validates the body against the exact same schema as sendEmail, then returns a realistic synthetic success envelope (demo: true) — it never actually sends, queues, or stores anything. Use this to let someone try Primitive and see the response shape before they sign up. To send for real, sign up for an API key and use sendEmail.
| Parameter | Type | Description |
|---|---|---|
requestBody | object |
listSentEmails7 paramsList outbound emails sent by this org, with cursor pagination and filters. Bodies are omitted from list rows to keep responses small — us…
List outbound emails sent by this org, with cursor pagination and filters. Bodies are omitted from list rows to keep responses small — use getSentEmail to fetch a specific row with full body. Useful for auditing delivery status, finding bounced sends, or checking gate-denied attempts.
| Parameter | Type | Description |
|---|---|---|
limit | number | Maximum number of sent emails to return (1–100, default 50). |
cursor | string | Pagination cursor from a previous response's `meta.cursor` field. |
status | string | Filter to rows in this status. |
date_to | string | Inclusive upper bound on created_at (ISO 8601). |
date_from | string | Inclusive lower bound on created_at (ISO 8601). |
request_id | string | Filter to the row matching a specific server-issued request_id from a /send-mail response. |
idempotency_key | string | Filter to rows with the given client idempotency key. |
getSentEmail1 paramGet the full record for a single sent email by id, including body_text and body_html. Use to inspect delivery details for a specific send…
Get the full record for a single sent email by id, including body_text and body_html. Use to inspect delivery details for a specific send — e.g. the SMTP response on a bounced row, or the gate denial reason on a gate_denied row.
| Parameter | Type | Description |
|---|---|---|
id | string | Sent email ID from listSentEmails or a /send-mail response. |
awaitReply3 paramsGet the threaded reply to a sent email — the canonical 'did they reply yet?' call. Pass the sent email's id (from a sendEmail response). …
Get the threaded reply to a sent email — the canonical 'did they reply yet?' call. Pass the sent email's id (from a sendEmail response). With wait=true it long-polls up to wait_timeout_ms for the reply to arrive (synchronous agent-to-agent chat); with wait=false (default) it returns immediately with the reply if one has arrived, else reply=null. Matches on the reply's threading, not a from/subject guess.
| Parameter | Type | Description |
|---|---|---|
id | string | The sent email id to fetch the reply for (from a sendEmail/replyToEmail response). |
wait | string | When "true", long-poll until a reply arrives or wait_timeout_ms elapses. Default no-wait. |
wait_timeout_ms | number | How long to wait when wait=true (1000–30000 ms, default 10000). |
getConversation1 paramGet the full conversation an inbound email belongs to as ordered, chat-model-ready turns with bodies. Each message is oldest-first with a…
Get the full conversation an inbound email belongs to as ordered, chat-model-ready turns with bodies. Each message is oldest-first with a direction (inbound/outbound) and a derived role (inbound→user, outbound→assistant). For a brand-new message, returns just that one turn. The response includes a truncated boolean (true when the message cap was reached) and a message_count field.
| Parameter | Type | Description |
|---|---|---|
id | string | ID of any inbound email in the conversation. |
getThread1 paramGet a conversation thread by id: metadata plus all inbound and outbound messages interleaved oldest-first. Each message has a direction (…
Get a conversation thread by id: metadata plus all inbound and outbound messages interleaved oldest-first. Each message has a direction (inbound/outbound) and id; fetch inbound message bodies via getEmail, or outbound bodies via getSentEmail. Discover thread_id from any email or sent-email record. Compare message_count against messages.length to detect truncation.
| Parameter | Type | Description |
|---|---|---|
id | string | Thread ID from the thread_id field on any email or sent-email. |
downloadEmailAttachments2 paramsDownload all attachments for an inbound email as a gzip-compressed tar archive. Returns the archive as a base64-encoded string along with…
Download all attachments for an inbound email as a gzip-compressed tar archive. Returns the archive as a base64-encoded string along with the attachment count and SHA-256 digest. Prefer getEmail first to check the attachment manifest before downloading.
| Parameter | Type | Description |
|---|---|---|
id | string | Inbound email ID. |
token | string | Signed download token from a webhook payload. Optional — the bearer token is used when this is omitted. |
listEndpointsList all active webhook endpoints for the organization. Each endpoint shows its URL, enabled state, and optional domain restriction.
createEndpoint1 paramCreate a webhook endpoint to receive email.received events. If an endpoint with the same URL already exists but is deactivated, it is rea…
Create a webhook endpoint to receive email.received events. If an endpoint with the same URL already exists but is deactivated, it is reactivated. After creating, call testEndpoint to confirm your signature verifier accepts the payload.
| Parameter | Type | Description |
|---|---|---|
requestBody | object |
deleteEndpoint1 paramSoft-delete a webhook endpoint. The endpoint will no longer receive deliveries.
| Parameter | Type | Description |
|---|---|---|
id | string | Endpoint ID from listEndpoints or createEndpoint. |
testEndpoint1 paramSend a sample email.received event to a webhook endpoint to verify your signature verifier. Rate limited to 4/min and 30/hr. Successful d…
Send a sample email.received event to a webhook endpoint to verify your signature verifier. Rate limited to 4/min and 30/hr. Successful deliveries and verified-domain endpoints are exempt.
| Parameter | Type | Description |
|---|---|---|
id | string | Endpoint ID from listEndpoints or createEndpoint. |
listFiltersList all whitelist and blocklist filter rules for the organization.
createFilter1 paramCreate a whitelist or blocklist filter rule. Patterns are stored lowercase. Per-domain filters require a Pro plan.
| Parameter | Type | Description |
|---|---|---|
requestBody | object |
deleteFilter1 paramDelete a filter rule.
| Parameter | Type | Description |
|---|---|---|
id | string | Filter rule ID from listFilters or createFilter. |
listWebhookDeliveries6 paramsList webhook delivery attempts with pagination and filters. Each delivery includes the target endpoint and a nested email object with sen…
List webhook delivery attempts with pagination and filters. Each delivery includes the target endpoint and a nested email object with sender/recipient/subject. Useful for diagnosing delivery failures or confirming a specific email was delivered.
| Parameter | Type | Description |
|---|---|---|
limit | number | Maximum number of delivery records to return (1–100, default 50). |
cursor | string | Pagination cursor from a previous response's `meta.cursor` field. |
status | string | Filter to deliveries in this status. |
date_to | string | Inclusive upper bound on attempted_at (ISO 8601). |
email_id | string | Filter by inbound email ID. |
date_from | string | Inclusive lower bound on attempted_at (ISO 8601). |
replayWebhookDelivery1 paramRe-send a stored webhook payload from a previous delivery attempt to its original endpoint. Rate limited per org (burst + sustained windo…
Re-send a stored webhook payload from a previous delivery attempt to its original endpoint. Rate limited per org (burst + sustained windows, shared budget with email webhook replays).
| Parameter | Type | Description |
|---|---|---|
id | string | Delivery ID (numeric string from listWebhookDeliveries). |