postscript-mcp

postscript-mcp

MCP server for Postscript SMS marketing platform, enabling AI agents to query subscribers, look up opt-in keyword IDs, add new subscribers with consent, list campaigns, and check audience segment sizes.

Category
Visit Server

README

postscript-mcp

License: MIT Python MCP

MCP server for Postscript, the SMS marketing platform for Shopify e-commerce stores. 5 tools for AI copywriting and marketing agents to query subscribers, look up opt-in keyword IDs, add new subscribers (with proper consent flow), list active SMS campaigns, and check audience segment sizes before drafting SMS blasts.

As of May 2026, Postscript does not have an official MCP server. The community attempt is a zero-star placeholder. This is the production-quality rail to fill that gap.

The 5 tools

Tool Purpose
list_subscribers Query the active SMS subscriber list
get_keyword_id Look up SMS opt-in keyword IDs (required for compliant subscriber creation)
add_subscriber Add a new phone number to a list, tied to a documented consent flow
list_campaigns Retrieve recent SMS campaigns and their deployment status
check_segment_size Look up audience segments and their subscriber counts

Install

pip install postscript-mcp

Configure

export POSTSCRIPT_API_KEY="your-postscript-private-api-key"

Get a Postscript Private API Key in your Postscript dashboard under Apps -> API. The key is sent as a Bearer token; vault it server-side only.

Use with Claude Desktop

{
  "mcpServers": {
    "postscript": {
      "command": "postscript-mcp",
      "env": {
        "POSTSCRIPT_API_KEY": "your-postscript-private-api-key"
      }
    }
  }
}

Restart Claude Desktop. The 5 Postscript tools are now available.

Use case: AI SMS marketing assistant

Typical agent flow:

  1. Call check_segment_size() to see which audience segments exist and how many subscribers each contains. Pick the right one for the campaign.
  2. Call list_campaigns() to see what has already been sent and avoid sending a duplicate.
  3. (For subscriber growth flows) Call get_keyword_id() to find the consent-flow keyword for the right list, then add_subscriber(phone_number, keyword_id) to add a new opt-in.
  4. Drafting an SMS: use the segment + subscriber data to scope the message correctly before passing it to a downstream SMS-send tool (Postscript send endpoints are intentionally NOT in this MCP to keep the rail safe).

Compliance note

SMS subscriber creation is regulated under TCPA (US) and CTIA carrier requirements. The add_subscriber tool always requires a keyword_id, which ties every new subscription to a documented consent flow you previously configured in Postscript. This MCP does not provide a way to add subscribers without a keyword_id. Do not attempt to bypass this; non-consented subscribers are a compliance and legal risk for the merchant.

Architecture

  • Public MIT-licensed wrapper around the Postscript REST API v2
  • Async HTTP via httpx
  • pydantic v2 input validation
  • Bearer token auth, server-side only
  • Rate-limit aware (429 returns a clean error)

Development

git clone https://github.com/NoBanks/postscript-mcp.git
cd postscript-mcp
pip install -e ".[dev]"
pytest

License

MIT. See LICENSE.

Author

Ryan Hammer (NoBanks). Solo founder + engineer. Built this and 10 other MCP servers as part of a sprint to expose AI agent rails for the products and platforms shipping daily.

Open to AI engineering roles, contract or full-time, remote-only.

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