# api

An MCP server over the Political Comms REST API: reads organizations, projects, contacts, analytics and billing, and stages or schedules US SMS/MMS sends.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI
- Author: Political-Comms
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Political-Comms/political-comms-sdk/tree/HEAD/packages/mcp
- Updated: 2026-10-14
- HTML: https://affpapa.org/en/nevibecode/mcp/api

## What it does

The server speaks stdio and hands the agent a set of tools over the Political Comms REST API. Read tools cover organizations, the hierarchy tree with brands, projects and their configuration, delivery stats, a throughput estimate against carrier limits, contact lists with import progress and CSV output, aggregate message stats, billing usage, inbound conversations, and email domains, campaigns and templates.

Write tools create a draft project, send real test messages to numbers you name, commit a bulk send at a given date and time, unschedule it, pause a running or scheduled send, and copy a project into a new draft. Test sends, scheduling, conversation replies and email campaign scheduling all need `confirm: true`. Deleting anything is not among the tools, on purpose.

You need Node 20 or later and a `pc_live_` API key that a person creates in the dashboard under Admin > API. That prefix is worth noticing: drafting is harmless, yet a test send or a schedule reaches real phones right away. Email write tools return `403 ENTITLEMENT_REQUIRED` unless the organization carries the email entitlement, while email reads stay open. Requests are capped at 600 per minute per key, and a throttled call reports the wait from `X-RateLimit-Reset`.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `POLITICAL_COMMS_API_KEY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add api -e POLITICAL_COMMS_API_KEY=<POLITICAL_COMMS_API_KEY> -- npx -y @political-comms/mcp
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add mcp --env POLITICAL_COMMS_API_KEY=<POLITICAL_COMMS_API_KEY> -- npx -y @political-comms/mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@political-comms/mcp"
            ],
            "env": {
                "POLITICAL_COMMS_API_KEY": "<POLITICAL_COMMS_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@political-comms/mcp"
            ],
            "env": {
                "POLITICAL_COMMS_API_KEY": "<POLITICAL_COMMS_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e POLITICAL_COMMS_API_KEY=<POLITICAL_COMMS_API_KEY> mcp npx -y @political-comms/mcp
```
Replace <…> with your own values

## When to use it
- check which projects and brands the key can see
- estimate whether a send will pause at the T-Mobile daily cap
- pull a contact list down as CSV
- create a project draft and fire a test SMS
- commit a bulk send for a set date and time

## Example prompts
- List conversations that have inbound messages and show the latest one
- Create a draft project for the campaign and send a test to my number
- Check project throughput and tell me if it hits the daily cap

## Similar
- [Scrapling MCP Server](https://affpapa.org/en/nevibecode/mcp/scrapling-mcp-server.md) — MCP server · ★ 89899
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119231
- [AIHawk](https://affpapa.org/en/nevibecode/mcp/aihawk.md) — MCP server · ★ 32260
- [Skyvern](https://affpapa.org/en/nevibecode/mcp/skyvern.md) — MCP server · ★ 23283
- [SeleniumBase MCP](https://affpapa.org/en/nevibecode/mcp/seleniumbase-mcp.md) — MCP server · ★ 13181
- [Inbox Zero](https://affpapa.org/en/nevibecode/mcp/inbox-zero.md) — MCP server · ★ 12826

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
