com.politicalcomms/api
Compliant political SMS/MMS from MCP clients: projects, contacts, analytics, billing.
Installation
Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).
@political-comms/mcpclaude mcp add api -e 'POLITICAL_COMMS_API_KEY=<your political_comms_api_key>' -- npx -y @political-comms/mcp@0.2.1
{
"mcpServers": {
"api": {
"command": "npx",
"args": [
"-y",
"@political-comms/mcp@0.2.1"
],
"env": {
"POLITICAL_COMMS_API_KEY": "<your political_comms_api_key>"
}
}
}
}
Variables d'environnement
POLITICAL_COMMS_API_KEYobligatoire secret Political Comms API key (pc_live_*), created by a human operator in the dashboard under Admin > API Keys
Documentation
Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.
Political Comms SDK
Official client libraries and tools for the Political Comms REST API. Direct-to-carrier political texting for campaigns, PACs, advocacy organizations, fundraisers, and elected officials.
The API surface covers Projects (compose, test, schedule, send), Contact Lists, Media Files, Organizations and hierarchy, Brands, Campaigns, Tracking Domains, Phone Numbers, Analytics, Billing, and Email (sending domains, sender identities, lists and imports, suppressions, templates and AI drafts, and campaigns). The full OpenAPI 3.1 specification lives at politicalcomms.com/openapi.json and the reference documentation at docs.politicalcomms.com.
Packages
| Package | Registry | Description |
|---|---|---|
@political-comms/sdk | npm | TypeScript SDK. Zero dependencies, native fetch, built-in retries. |
@political-comms/cli | npm | Command line interface. npx @political-comms/cli auth check |
@political-comms/mcp | npm | MCP server for Claude and other MCP clients. |
political-comms | PyPI | Python SDK mirroring the TypeScript client. |
Authentication
Every client authenticates with an API key passed in the X-API-Key header. Keys are created in the dashboard under Admin > API and are prefixed pc_live_. All packages read the POLITICAL_COMMS_API_KEY environment variable by default.
Development
Node 20 or later and Python 3.10 or later.
npm install
npm run build
npm test
cd python
python3 -m venv .venv
.venv/bin/pip install -e '.[dev]'
.venv/bin/pytest
License
MIT. See LICENSE.
Questions fréquentes
Qu'est-ce que com.politicalcomms/api ?
Compliant political SMS/MMS from MCP clients: projects, contacts, analytics, billing.
Comment installer com.politicalcomms/api ?
Il s'exécute sur votre machine. Dans Claude Code : claude mcp add api -e 'POLITICAL_COMMS_API_KEY=<your political_comms_api_key>' -- npx -y @political-comms/mcp@0.2.1. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.
Faut-il une clé API pour com.politicalcomms/api ?
Oui. Il attend POLITICAL_COMMS_API_KEY, à renseigner dans sa configuration.
com.politicalcomms/api est-il open source ?
Oui. Son code est sur GitHub sous licence MIT.
Qui maintient com.politicalcomms/api ?
Il est publié par Political-Comms. AI.tn le référence sans le maintenir ni le recommander.
Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.