MCP Hub
Back to servers

postcardai-mcp

MCP Server for PostcardAI - Use PostcardAI with Claude, Cursor, and other AI assistants

glama
Updated
Jan 27, 2026

PostcardAI MCP Server

npm version License: MIT

Model Context Protocol server for PostcardAI. Use PostcardAI with Claude, Cursor, and other AI assistants.

Quick Start

1. Install & Authenticate

npx @postcardai/cli login

This opens your browser to authenticate and stores credentials securely.

2. Configure Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "postcardai": {
      "command": "npx",
      "args": ["-y", "@postcardai/mcp-server"]
    }
  }
}

3. Restart Claude Desktop

That's it! Ask Claude to send postcards.

Alternative: API Key

If you prefer not to use the CLI login:

{
  "mcpServers": {
    "postcardai": {
      "command": "npx",
      "args": ["-y", "@postcardai/mcp-server"],
      "env": {
        "POSTCARDAI_API_KEY": "pcai_sk_live_xxx"
      }
    }
  }
}

Get your API key from https://app.postcard.ai/settings/api

Available Tools

Mailings

ToolDescription
create_mailingCreate and send a postcard mailing
list_mailingsList mailings with filters
get_mailingGet mailing details
cancel_mailingCancel a pending mailing
get_mailing_previewsGet preview images
send_mailingConfirm and send after preview
get_mailing_analyticsGet delivery metrics

Contacts

ToolDescription
create_contactCreate a new contact
create_contacts_batchBatch create (max 1000)
match_contactFind by email/phone/address
list_contactsList with search
get_contactGet details
update_contactUpdate fields
delete_contactRemove contact
get_contact_historyGet mailing history

Designs

ToolDescription
create_designGenerate from prompt
list_designsList saved designs
get_designGet with iterations
iterate_designGenerate variations
publish_designPublish iteration
delete_designArchive design

Lists

ToolDescription
create_listCreate contact list
list_listsList all lists
get_listGet list details
update_listUpdate name/description
delete_listDelete list
add_contacts_to_listAdd contacts
remove_contacts_from_listRemove contacts

Credits

ToolDescription
get_credit_balanceCheck balance
estimate_mailing_costEstimate cost
purchase_creditsBuy credits
get_credit_transactionsTransaction history

Brands & Addresses

ToolDescription
create_brandCreate brand profile
list_brandsList brands
set_default_brandSet default
create_return_addressAdd return address
set_default_return_addressSet default

Account

ToolDescription
get_accountOrganization info, plan, usage

Example Prompts

Once configured, try asking Claude:

  • "Send a postcard to John Smith at 123 Main St, Austin TX 78701 with a summer home buying theme"
  • "Show me my credit balance"
  • "Create a new contact list called 'VIP Clients'"
  • "Generate a thank you postcard design for new customers"

Configuration

Environment Variables

VariableRequiredDescription
POSTCARDAI_API_KEYNoAPI key (alternative to CLI login)
POSTCARDAI_API_URLNoAPI URL (default: https://api.postcard.ai/v1)
POSTCARDAI_CONFIG_PATHNoCustom config file path

Credential Priority

  1. POSTCARDAI_API_KEY environment variable
  2. ~/.postcardai/config.json (from CLI login)
  3. Custom path via POSTCARDAI_CONFIG_PATH

Other Clients

Cursor

Add to Cursor settings under MCP:

{
  "postcardai": {
    "command": "npx",
    "args": ["-y", "@postcardai/mcp-server"]
  }
}

Claude Code

claude mcp add postcardai npx @postcardai/mcp-server

Documentation

License

MIT

Reviews

No reviews yet

Sign in to write a review