PostGrid MCP Server
Enables sending letters and MICR-encoded checks, managing contacts and templates, and verifying US/Canadian addresses via the PostGrid Print & Mail and Address Verification APIs from Claude.
README
PostGrid MCP Server
MCP server for PostGrid Print & Mail and Address Verification APIs. Send letters (standard, certified, certified with return receipt), mail MICR-encoded checks, manage contacts and templates, and verify US/Canadian addresses — all from Claude.
Tools (30)
Contacts
postgrid_create_contact— Create a mailing contactpostgrid_get_contact— Get contact detailspostgrid_list_contacts— List contacts with search and paginationpostgrid_update_contact— Update contact fieldspostgrid_delete_contact— Delete a contact
Address Verification
postgrid_verify_address— Verify and standardize an address (structured or freeform)postgrid_verify_addresses_batch— Verify up to 2,000 addresses at oncepostgrid_autocomplete_address— Autocomplete a partial addresspostgrid_lookup_city_state— Look up city/state from a ZIP code
Letters
postgrid_create_letter— Send a letter (first class, standard, certified, or certified with return receipt)postgrid_get_letter— Get letter status and trackingpostgrid_list_letters— List letters with search and paginationpostgrid_cancel_letter— Cancel a letter before it prints
Bank Accounts
postgrid_create_bank_account— Register a bank account for check paymentspostgrid_get_bank_account— Get bank account details (numbers masked)postgrid_list_bank_accounts— List bank accountspostgrid_delete_bank_account— Delete a bank account
Checks
postgrid_create_cheque— Send a MICR-encoded checkpostgrid_get_cheque— Get check statuspostgrid_list_cheques— List checks with paginationpostgrid_cancel_cheque— Cancel a check before it prints
Templates
postgrid_create_template— Create an HTML template with Handlebars merge variablespostgrid_get_template— Get template details and HTML contentpostgrid_list_templates— List templatespostgrid_update_template— Update template HTML or descriptionpostgrid_delete_template— Delete a template
Utility
postgrid_upload_pdf— Upload a PDF to temporary storage (Cloudflare R2) and get a URL for PostGridpostgrid_get_upload_url— Get a presigned PUT/GET URL pair for direct-to-R2 PDF upload (for Cowork/sandboxed environments)postgrid_estimate_cost— Estimate mailing cost without an API callpostgrid_account_summary— Show API mode, connectivity, and rate table
Setup
1. Get API Keys
Sign up at postgrid.com and get your API keys from the dashboard:
- Print & Mail API key — for contacts, letters, checks, templates
- Address Verification API key — for address verification tools
Both test and live keys are supported. Test keys start with test_ and live keys start with live_.
2. Install
git clone https://github.com/nathanieljones/postgrid-mcp-server.git
cd postgrid-mcp-server
npm install
3. Configure
Create a .env file (or set environment variables):
POSTGRID_PRINT_API_KEY=test_sk_...
POSTGRID_VERIFY_API_KEY=test_sk_...
For live keys, you must also set:
POSTGRID_CONFIRM_LIVE_MODE=true
This prevents accidental sends with real postage.
PDF upload (optional) — To use postgrid_upload_pdf, configure Cloudflare R2:
R2_ACCESS_KEY_ID=your_r2_access_key
R2_SECRET_ACCESS_KEY=your_r2_secret_key
R2_ENDPOINT=https://<account_id>.r2.cloudflarestorage.com
R2_BUCKET=postgrid-pdfs
Create an R2 bucket in your Cloudflare dashboard and add a lifecycle rule to auto-delete objects after 1 day.
4. Add to Claude
Claude Code (~/.claude.json):
{
"mcpServers": {
"postgrid": {
"command": "node",
"args": ["/full/path/to/postgrid-mcp-server/dist/index.js"],
"env": {
"POSTGRID_PRINT_API_KEY": "test_sk_...",
"POSTGRID_VERIFY_API_KEY": "test_sk_...",
"R2_ACCESS_KEY_ID": "your_r2_access_key",
"R2_SECRET_ACCESS_KEY": "your_r2_secret_key",
"R2_ENDPOINT": "https://<account_id>.r2.cloudflarestorage.com",
"R2_BUCKET": "postgrid-pdfs"
}
}
}
}
Claude Desktop / Cowork (claude_desktop_config.json):
{
"mcpServers": {
"postgrid": {
"command": "node",
"args": ["/full/path/to/postgrid-mcp-server/dist/index.js"],
"env": {
"POSTGRID_PRINT_API_KEY": "test_sk_...",
"POSTGRID_VERIFY_API_KEY": "test_sk_...",
"R2_ACCESS_KEY_ID": "your_r2_access_key",
"R2_SECRET_ACCESS_KEY": "your_r2_secret_key",
"R2_ENDPOINT": "https://<account_id>.r2.cloudflarestorage.com",
"R2_BUCKET": "postgrid-pdfs"
}
}
}
}
Safety Features
Two-step confirmation — postgrid_create_letter and postgrid_create_cheque require two calls. The first returns a cost preview; the second (with confirmed: true) actually sends.
Live mode gate — Live API keys require POSTGRID_CONFIRM_LIVE_MODE=true in the environment. Without it, the server refuses to start with live keys.
Mode indicators — Every response is prefixed with [TEST] or [LIVE] so you always know which mode you're in.
Check safety thresholds — Checks over $10,000 show a warning. Checks over $100,000 are rejected.
Account number masking — Bank account and routing numbers are masked in all responses.
Idempotency — Create operations include unique idempotency keys so network retries don't produce duplicates.
Rate Table
| Type | Class | B&W | Color |
|---|---|---|---|
| Letter (1 page) | First Class | $1.14 | $1.29 |
| Letter (1 page) | Standard | $0.76 | $0.91 |
| Letter (1 page) | Certified | $5.00 | $5.15 |
| Letter (1 page) | Certified + Return Receipt | $7.43 | $7.58 |
| Extra page | — | +$0.07 | +$0.13 |
| Check | First Class | $2.50 | — |
Use postgrid_estimate_cost to calculate costs before sending.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。