PostGrid MCP Server

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.

Category
Visit Server

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 contact
  • postgrid_get_contact — Get contact details
  • postgrid_list_contacts — List contacts with search and pagination
  • postgrid_update_contact — Update contact fields
  • postgrid_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 once
  • postgrid_autocomplete_address — Autocomplete a partial address
  • postgrid_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 tracking
  • postgrid_list_letters — List letters with search and pagination
  • postgrid_cancel_letter — Cancel a letter before it prints

Bank Accounts

  • postgrid_create_bank_account — Register a bank account for check payments
  • postgrid_get_bank_account — Get bank account details (numbers masked)
  • postgrid_list_bank_accounts — List bank accounts
  • postgrid_delete_bank_account — Delete a bank account

Checks

  • postgrid_create_cheque — Send a MICR-encoded check
  • postgrid_get_cheque — Get check status
  • postgrid_list_cheques — List checks with pagination
  • postgrid_cancel_cheque — Cancel a check before it prints

Templates

  • postgrid_create_template — Create an HTML template with Handlebars merge variables
  • postgrid_get_template — Get template details and HTML content
  • postgrid_list_templates — List templates
  • postgrid_update_template — Update template HTML or description
  • postgrid_delete_template — Delete a template

Utility

  • postgrid_upload_pdf — Upload a PDF to temporary storage (Cloudflare R2) and get a URL for PostGrid
  • postgrid_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 call
  • postgrid_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 confirmationpostgrid_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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured