PostGrid Print & Mail MCP server for AI agents

Live

API KEY

DIRECT MAIL

Automation

PostGrid Print & Mail gives your agent direct mail in your PostGrid account: create and send letters, postcards, self mailers, and cheques, run mail campaigns to mailing lists, manage contacts and templates, and track status with webhooks.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
PostGrid Print & Mail
agent · Acme Q3
Run
Send a letter to Jordan Lee at 123 Main St confirming the renewal.
S
postgrid_letter_create
540ms
Direct mail agent
Created the letter to Jordan Lee and queued it for print. Its status and a PDF preview are available.
Sources: PostGrid letters
postgrid
1 letter
18:29
Message Claude...

Tools your direct mail agent reaches for on PostGrid Print & Mail, scoped per user.

CALL ANY TOOL
60 tools for direct mail in PostGrid Print & Mail: create letters, postcards, self mailers, and cheques, run campaigns on mailing lists, manage contacts, templates, and trackers, preview and cancel mail, and set up webhooks.
postgrid_bank_account_create
Create bank account
Add a bank account to draw cheques on, signed with a text signature. Returns object, bankName, bankPrimaryLine, bankSecondaryLine, bankCountryCode, accountNumber, routingNumber, transitNumber, routeNumber, caDesignationNumber. Use the returned ID as bank_account in postgrid_cheque_create.
Parameters
Name
Type
Required
Description
account_number
string
Required
The account number of the bank account. Example: 000123456789
bank_country_code
string
Required
The country code of the bank. One of: CA, US. Example: US. One of: `CA`, `US`.
bank_name
string
Required
The name of the bank. Example: Example Bank
signature_text
string
Required
The signature text of the bank account. Example: Jane Doe
bank_primary_line
string
Optional
The primary address line of the bank. Example: 100 Bank St
bank_secondary_line
string
Optional
The secondary address line of the bank. Example: New York, NY 10001
ca_designation_number
string
Optional
The designation number of the bank account (for CA). Example: example
description
string
Optional
An optional string describing this resource. Will be visible in the API and the dashboard. Example: Welcome letter batch
metadata
object
Optional
Your own key-value data stored on the record, as a JSON object. Example: {"customerId": "cus_123"}
route_number
string
Optional
The route number of the bank account (for CA). Example: example
routing_number
string
Optional
The routing number of the bank account (for US). Example: 011000015
transit_number
string
Optional
The transit number of the bank account (for CA). Example: example
postgrid_bank_account_delete
Delete bank account
postgrid_bank_account_get
Get bank account
postgrid_bank_accounts_list
List bank accounts
postgrid_campaign_send
Send campaign
postgrid_campaign_update
Update campaign
postgrid_cheque_cancel
Cancel cheque
postgrid_cheque_cancel_with_note
Cheque cancel with note
postgrid_cheque_create
Create cheque
postgrid_cheque_get
Get cheque
postgrid_cheques_list
List cheques
postgrid_contact_delete
Delete contact
postgrid_contact_get
Get contact
postgrid_events_list
List events
postgrid_letter_cancel_with_note
Letter cancel with note
postgrid_letter_create
Create letter
postgrid_letter_preview_get
Get letter preview
postgrid_mailing_list_create
Create mailing list
postgrid_mailing_list_get
Get mailing list
postgrid_mailing_list_job_submit
Submit mailing list job
postgrid_mailing_lists_list
List mailing lists
postgrid_postcard_cancel_with_note
Postcard cancel with note
postgrid_postcard_preview_get
Get postcard preview
postgrid_self_mailer_create
Create self mailer
postgrid_self_mailer_preview_get
Get self mailer preview
postgrid_self_mailers_list
List self mailers
postgrid_template_update
Update template
postgrid_tracker_create
Create tracker
postgrid_tracker_get
Get tracker
postgrid_trackers_list
List trackers

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// PostGrid Print & Mail tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["postgrid"], toolNames: [
    "postgrid_template_get",
    "postgrid_letter_create",
    "postgrid_letter_preview_get"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Get my renewal template, send a letter to this contact, and show me the PDF preview" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["postgrid"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Get my renewal template, send a letter to this contact, and show me the PDF preview" }],
  tools,
});

// Execute the tool call with the user's vaulted PostGrid Print & Mail API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["postgrid"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Get my renewal template, send a letter to this contact, and show me the PDF preview" }],
  tools,
});

// Tool call runs with the user's vaulted PostGrid Print & Mail API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["postgrid"] }, pageSize: 100,
});

const agent = new Agent({
  name: "direct_mail_agent",
  model: "gemini-2.5-pro",
  instruction: "PostGrid Print & Mail tools scoped to this user",
  tools,
});

await agent.run("Get my renewal template, send a letter to this contact, and show me the PDF preview");
Try these prompts
Copy any prompt into your agent. Each maps directly to a PostGrid Print & Mail tool. Click to copy, paste into your agent, done.
Send mail
Copy the prompt
Copied
Send a letter to this contact using my renewal template.
Copy the prompt
Copied
Create a postcard with this front and back HTML.
Copy the prompt
Copied
Mail a cheque from my bank account to this vendor.
Campaigns and lists
Copy the prompt
Copied
Create a campaign that sends this postcard to my customer mailing list.
Copy the prompt
Copied
Add these contacts to my mailing list.
Copy the prompt
Copied
Send the draft campaign.
Status and control
Copy the prompt
Copied
Show the status of the letters I sent today.
Copy the prompt
Copied
Get a PDF preview of this letter.
Copy the prompt
Copied
Cancel this letter before it goes to print.
SEE HOW AUTH WORKS
Each user connects their own PostGrid Print & Mail API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
PostGrid Print & Mail
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
PostGrid Print & Mail
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
PostGrid Print & Mail
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
PostGrid Print & Mail
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other automation and marketing connectors.
GTM and RevOps Teams
Outbound prospecting agent
Searches Apollo for prospects matching your ICP, scores and ranks them, drafts personalized outreach in Gmail, and logs every send to Google Sheets. Mail goes out as the rep, not from a shared inbox.
GTM and RevOps Teams
CRM AI agent
Reads the Granola transcript after every call, extracts next steps and updates the HubSpot record, drafts the follow-up in Gmail, and confirms in Slack, all on the rep's own delegated OAuth.
Test other agents
See the same per-user auth pattern across other automation and marketing connectors.
SALES
Outbound prospecting agent
Search Apollo for ICP matches, rank them, draft personalised Gmail outreach, and log every send to Google Sheets.
GTM
CRM AI agent
Turn each Granola call transcript into a HubSpot record update, a drafted Gmail follow-up, and a Slack recap.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared PostGrid Print & Mail API key looks fine in a demo. In production every mail piece looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
PostGrid Print & Mail today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access PostGrid Print & Mail as the user or through a shared key?
As the user. Each user connects their own PostGrid Print & Mail API key once, and Scalekit sends it with every call. Letters, cheques, and campaigns the agent sends are attributed to that user in your audit trail, not a shared service account.
Where is the PostGrid Print & Mail API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in PostGrid Print & Mail?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the list, get, and preview tools without postgrid_campaign_send, postgrid_cheque_create, or postgrid_letter_create, which print and mail physical items. 13 of the 60 tools are destructive, including the cancel and delete tools. Scalekit also enforces scope checks before every API call.
What happens when a user revokes PostGrid Print & Mail access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Can the agent stop a mail piece after creating it?
Yes, before it is sent to print. postgrid_letter_cancel, postgrid_postcard_cancel, postgrid_self_mailer_cancel, and postgrid_cheque_cancel cancel the piece, and the cancel_with_note variants record the reason.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""postgrid"": {
""url"": ""https://mcp.scalekit.com/postgrid"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.postgrid]
url = ""https://mcp.scalekit.com/postgrid""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""postgrid"": {
""url"": ""https://mcp.scalekit.com/postgrid"",
""type"": ""http""
}
}
}