# Commune [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/shanjai-raj/commune-mcp  
**GitHub Stars:** 1  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/commune

## Description
Email and SMS MCP server for AI agents — 41 tools for inboxes, sending, search, and SMS.

## Tools
Capabilities this server exposes over MCP:

- **list_domains** — List all email domains in your account.
- **create_domain** — Create a new custom domain. After creating, use `get_domain_records` to see required DNS entries, then `verify_domain` to check.
- **get_domain_records** — Get DNS records you need to add at your registrar before verification passes.
- **verify_domain** — Trigger DNS verification. Call after adding records at your registrar.
- **list_inboxes** — List inboxes. Without `domain_id`, lists all inboxes across all domains.
- **create_inbox** — Create a new inbox. Domain is **auto-resolved** if not provided — no DNS setup needed.
- **delete_inbox** — Delete an inbox permanently.
- **set_extraction_schema** — Configure structured extraction for an inbox using a JSON Schema.
- **remove_extraction_schema** — Remove structured extraction from an inbox.
- **list_threads** — List threads for an inbox with cursor-based pagination. Returns newest first by default.
- **get_thread_messages** — Get all messages in a thread. Returns oldest first (chronological).
- **search_threads** — Search across email threads by subject or content. Uses vector search (semantic) when available, falls back to text matching.
- **get_thread_metadata** — Get triage metadata for a thread: tags, status, and assignment.
- **set_thread_status** — Set the triage status of a thread.
- **tag_thread** — Add tags/labels to a thread. Tags are additive — existing tags are preserved.
- **untag_thread** — Remove tags from a thread.
- **assign_thread** — Assign a thread to an agent or user. Pass empty to unassign.
- **get_deliverability_stats** — Get delivery metrics: sent, delivered, bounced, complained, failed counts and rates.
- **get_suppressions** — List suppressed email addresses (bounces, complaints, unsubscribes).
- **get_delivery_events** — Get delivery event log for tracking individual emails.
- **send_email** — Send an email. Can send fresh emails or reply within an existing thread.
- **upload_attachment** — Upload a file. Returns an `attachment_id` to use with `send_email`.
- **get_attachment_url** — Get a temporary download URL for an attachment.
- **list_phone_numbers** — List all provisioned phone numbers in your account.
- **get_phone_number** — Get details for a single provisioned phone number.
- **list_available_phone_numbers** — Browse available phone numbers before purchasing.
- **provision_phone_number** — Purchase a phone number for SMS. Deducts credits from your balance.
- **update_phone_number** — Update a phone number's friendly name or auto-reply message.
- **release_phone_number** — Release a provisioned phone number back to the pool. No credit refund. Message history is retained.
- **set_phone_number_webhook** — Configure a webhook for a phone number to receive SMS event notifications.
- **set_phone_number_allow_list** — Set the allow list for a phone number — only these numbers can send SMS to it. Replaces existing list.
- **set_phone_number_block_list** — Set the block list for a phone number — these numbers are rejected. Replaces existing list.
- **send_sms** — Send an SMS message.
- **list_sms_conversations** — List SMS conversation threads.
- **get_sms_thread** — Get all messages in an SMS thread with a specific number.
- **search_sms** — Semantic search across SMS messages.
- **list_sms_suppressions** — List phone numbers suppressed from receiving SMS (opted out via STOP keyword).
- **remove_sms_suppression** — Remove a phone number from the SMS suppression list (re-enable SMS delivery).
- **get_credit_balance** — Get current credit balance for your Commune account.
- **list_credit_bundles** — List available credit bundles that can be purchased.
- **credits_checkout** — Create a Stripe checkout session to purchase a credit bundle.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "commune": {
    "command": "uvx",
    "args": ["commune-mcp"],
    "env": {
      "COMMUNE_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `COMMUNE_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Commune MCP server does

Commune MCP server gives an AI client access to the email and SMS capabilities provided by Commune. On the email side, it can enumerate domains and inboxes, retrieve thread messages, search thread subjects or content, and send new messages or replies. An agent can also upload attachments, retrieve temporary attachment URLs, and configure structured extraction for an inbox with a JSON Schema.

Inbox administration includes creating and deleting inboxes, with the domain resolved automatically when no domain is supplied. Custom domains can be created and checked, but they need the DNS records returned by `get_domain_records` before verification succeeds. Thread triage is covered by metadata, status changes, tags, and assignment to an agent or user.

The server also exposes delivery information, including aggregate deliverability statistics, suppressed recipients, and individual delivery events. For SMS, the provided capabilities include listing, inspecting, purchasing, updating, and releasing provisioned phone numbers, as well as configuring a webhook for SMS event notifications.

## How it works

An MCP-compatible client starts the server and makes its tools available to the model. The model selects operations based on the user’s request: for example, it can list an inbox’s threads, open a thread’s messages, and call `send_email` with the thread identifier to keep a reply in the existing conversation.

Thread listings use cursor-based pagination and return newest threads first by default. Messages within a thread are returned in chronological order. Searching uses semantic vector search when available and falls back to text matching. Thread tags are additive when applied, so adding a tag preserves existing tags.

Email domains and inboxes are account resources managed through the Commune API. A domain’s DNS records must be added at the registrar before `verify_domain` can be used successfully. Phone-number provisioning deducts credits, and releasing a number does not refund those credits; its message history remains retained.

## Setup and configuration

Create an API key in the Commune dashboard before configuring the client. The required environment variable is `COMMUNE_API_KEY`, whose value starts with `comm_`.

For a local stdio setup, the documented configuration runs `uvx commune-mcp`, allowing the package to be fetched without cloning the repository. `pip install commune-mcp` is also supported; in that case, use `commune-mcp` as the command. The same environment-variable configuration can be added in Claude Desktop, Cursor, or Windsurf. Commune is also published through Smithery, which provides client installation commands and a hosted connection endpoint.

The Commune MCP server does not require a local project file in the `uvx` configuration described by the documentation. Client-specific setup consists of adding the server command and API key to the client’s MCP settings.

## Tools and capabilities

Key tool groups include:

- Domain management: list domains, create domains, retrieve required DNS records, and trigger verification.
- Inbox management: list, create, and permanently delete inboxes.
- Email processing: list threads, retrieve messages, search conversations, send new or threaded email, and handle attachments.
- Structured data: add or remove a JSON Schema extraction configuration for an inbox.
- Triage: inspect metadata, set status, add or remove tags, and assign threads.
- Delivery monitoring: inspect statistics, suppressions, and delivery events.
- Phone administration: browse available numbers, provision numbers, update names or auto-replies, release numbers, and configure SMS webhooks.

## Limitations and notes

Custom-domain email depends on DNS configuration outside the MCP client. Use the returned DNS records at the domain registrar, then run verification.

Provisioning a phone number consumes account credits. Releasing the number does not return those credits, although the associated message history is retained. Attachment downloads use temporary URLs rather than a permanent link.

The documented package requires Python 3.9 or newer. Access also depends on a valid Commune API key and the account resources available through the Commune service.

_Full upstream README: https://allmcps.com/mcp/commune/readme_

