Skip to main content
Glama
groupme-mcp-server

groupme-mcp-server

by oddrationale

groupme-mcp-server

CI codecov OpenSSF Scorecard PyPI Python License: MIT Ruff

An MCP server that lets Claude, Cursor and other AI assistants read, search and send your GroupMe messages. Built with FastMCP.

It is a set of agentic tools, not an endpoint wrapper: instead of mirroring the GroupMe API v3 route-for-route, each tool does one job an assistant actually needs, such as merging groups and DMs into a single inbox, paginating history with cursors, searching client-side because GroupMe has no search endpoint, and saying so when a result is truncated.

Ask things like:

  • "What did I miss in the Family group this week?"

  • "Did anyone mention the retreat date?"

  • "Reply to Sam's last message in Trip Planning: sounds good, I'm in."

  • "Post this photo to the Announcements topic."

Get started

There are two ways to run it. Both need your GroupMe access token.

1. Get your GroupMe token

Sign in at https://dev.groupme.com, click Access Token in the top right, and copy it. Treat it like a password: anyone who has it can read your chats and send messages as you.

2a. Run it on your computer

Best if you use a desktop client such as Claude Desktop, Claude Code or Cursor. The server runs locally over stdio through uv, and nothing leaves your machine except calls to GroupMe.

Claude Code:

claude mcp add groupme -e GROUPME_ACCESS_TOKEN=your-token -- uvx groupme-mcp-server

Claude Desktop, Cursor and most other clients take the same JSON in their MCP settings:

{
  "mcpServers": {
    "groupme": {
      "command": "uvx",
      "args": ["groupme-mcp-server"],
      "env": {
        "GROUPME_ACCESS_TOKEN": "your-token"
      }
    }
  }
}

If the token is missing or malformed, the server still starts but logs a warning on stderr saying what to fix.

2b. Host your own on FastMCP Gateway

Best if you want the same server from several devices, or from clients that only connect to remote MCP servers. FastMCP Gateway (formerly Prefect Horizon) hosts it for free on its personal tier, behind its own sign-in.

Use the groupme-mcp-server-template repository:

  1. Click Use this template to create your own copy.

  2. Deploy that copy from https://horizon.prefect.io with entrypoint server.py:mcp, Authentication on, and GROUPME_ACCESS_TOKEN set as an environment variable.

  3. Add your server's https://<name>.fastmcp.app/mcp URL to your MCP client.

Your copy updates itself: a daily workflow moves it to the newest release once it checks the server still loads, and the Gateway redeploys. The template's README has the details.

Each deployment serves one GroupMe account, the one whose token it holds. There is no shared, multi-user server.

Related MCP server: iMessage Max

Tools

Tool

What it does

list_conversations

Merge groups and DMs into one recency-sorted list with last-message previews; groups list their topics.

read_messages

Read one group, topic, or DM, oldest first, with a next_before_id cursor.

get_conversation_context

One group's (or topic's) metadata, member list, and recent messages in a single call.

search_messages

Search a conversation's history client-side (GroupMe has no search API), with honest scan accounting.

get_highlights

A group's or topic's top-liked messages for a day/week/month plus a member summary.

send_message

Post to a group, topic, or DM, optionally as a reply or with an image from any public URL.

react_to_message

Like or unlike one message (ids from read_messages detailed format).

The read tools accept response_format: "concise" (default, human-readable) or "detailed" (full ids and metadata).

Group topics

A GroupMe group can contain topics: separate chats such as "Announcements" that sit inside the group. A group's main chat does not contain its topics' messages, so the tools address topics explicitly.

list_conversations lists each group's topics under the group, most recently active first, with their own last-message previews:

{
  "kind": "group",
  "name": "Trip Planning",
  "group_id": "12345678",
  "topics": [
    {
      "topic_id": "23456789",
      "parent_group_id": "12345678",
      "name": "Announcements",
      "type": "announcement",
      "last_message": "Ada: Trip details are ready.",
      "last_active": "2h ago"
    }
  ]
}

Pass a topic to read_messages, search_messages, or send_message as a conversation:

{"kind": "topic", "parent_group_id": "12345678", "topic_id": "23456789"}

get_conversation_context and get_highlights take an optional topic_id next to the parent's group_id. Before sending to a topic, send_message checks that the topic belongs to the stated parent; a failed send is never redirected to the parent's main chat. GroupMe enforces who may post, for example in announcement topics.

Topics come from GroupMe's undocumented GET /groups/{id}/subgroups route, which the GroupMe web client uses. If it fails, list_conversations still lists the group (without its topics) and says so in its note. Creating, editing, and deleting topics is not supported.

Images

send_message accepts an image_url. GroupMe can only attach images hosted on its own image service, so a https://i.groupme.com/... URL is attached as-is and any other URL is downloaded and re-hosted there first. Because the server fetches a URL the caller chose, the download is locked down:

  • only http/https URLs without embedded credentials;

  • the host must resolve only to public addresses (no loopback, private, link-local, or cloud-metadata ranges), and the connection goes to the address that was checked, so DNS cannot redirect it internally;

  • at most 3 redirects, each checked again;

  • at most 15 MB, within 10 seconds, of a raster image/* type (no SVG);

  • the GroupMe token is never sent to the image's host.

The download happens only after the message text (and, for a topic, the topic) has been validated, so a send that would fail fetches nothing.

Configuration

Everything is configured through environment variables (GROUPME_* may also come from a local .env file — see .env.example).

Variable

Default

Description

GROUPME_ACCESS_TOKEN

(unset)

GroupMe API token from https://dev.groupme.com. Optional at startup; required when a tool calls the API.

GROUPME_LOG_LEVEL

INFO

Verbosity of the server's own loggers: DEBUG, INFO, WARNING, ERROR, or CRITICAL.

GROUPME_API_BASE_URL

https://api.groupme.com/v3

GroupMe REST API base URL (override mainly for testing).

GROUPME_IMAGE_API_BASE_URL

https://image.groupme.com

GroupMe image service base URL, where send_message re-hosts images.

OTEL_EXPORTER_OTLP_ENDPOINT

(unset)

OTLP/HTTP collector endpoint. Setting it turns tracing on.

OTEL_EXPORTER_OTLP_HEADERS

(unset)

Extra headers for the OTLP exporter (e.g. authorization=Bearer%20...).

OTEL_SERVICE_NAME

groupme-mcp-server

The service.name resource attribute on exported spans.

OTEL_SDK_DISABLED

(unset)

Set to true/1 to keep tracing off even when an endpoint is set.

FASTMCP_LOG_LEVEL

INFO

Verbosity of FastMCP's own fastmcp.* loggers.

Security and privacy

  • One account per server. A server holds exactly one GroupMe token, and every tool acts as that token's owner: reading their conversations, posting as them, liking as them. Anyone who can connect gets that full identity, so keep a hosted server's authentication on.

  • The token never crosses the MCP boundary. Clients never send or receive it. It goes to GroupMe only as the X-Access-Token request header (never in URLs), is excluded from tool output and error messages, and is registered for redaction if OTel header capture is enabled.

  • Outbound image downloads are restricted. Re-hosting an image_url is the only time the server fetches a caller-chosen URL; it refuses private and internal addresses, caps size and time, and never forwards the GroupMe token (see Images).

  • A hosted server's traffic passes through the host. On FastMCP Gateway, tool requests and responses pass through Prefect's infrastructure and may appear in its request logs. Run the server locally if that is not acceptable.

Report vulnerabilities through private vulnerability reporting, not public issues. See SECURITY.md.

Observability

  • Logs are structured single lines on stderr (stdout would corrupt the stdio transport), each carrying the current OTel trace_id/span_id when a span is active. GROUPME_LOG_LEVEL controls the server's own loggers.

  • Traces are opt-in: when OTEL_EXPORTER_OTLP_ENDPOINT is set (and OTEL_SDK_DISABLED is not truthy), the server installs an OTLP/HTTP span exporter. FastMCP emits a span for every tools/call, and outbound GroupMe HTTP requests get client spans via instrumented httpx2 transports — without an endpoint everything no-ops.

Contributing

Issues and pull requests are welcome. CONTRIBUTING.md covers setup, the local checks, testing, releases and how the maintainer's own deployment is built.

License

MIT © Dariel Dato-on

Available Tools

7 tools
get_conversation_contextGet Conversation ContextA
Read-onlyIdempotent

Get one group's metadata, member list, and recent messages in one call.

Use this to orient yourself in a group before reading further or replying: it bundles what would otherwise take several calls. For a group's main chat it also lists the group's topics; pass topic_id to get a topic's details and recent messages instead (members are then the parent group's). For direct-message chats or for paging deeper into history, use read_messages instead.

Inputs: group_id (required), topic_id, response_format, recent_message_count. Returns: The result of ``get_conversation_context``. For a group's main chat, ``topics``…

get_highlightsGet HighlightsA
Read-onlyIdempotent

Summarize what mattered in a group or topic: its most-liked recent messages.

Use this to catch up on a busy group without reading everything: it wraps GroupMe's likes leaderboard into the period's top-liked messages (sender, like count, text preview) plus a per-member summary of who was most liked and most represented among them. The member summary covers only the leaderboard's messages, not the group's full history. The leaderboard endpoint is undocumented; if GroupMe has retired it, this tool fails with guidance rather than guessing. A group's leaderboard covers its main chat only; pass topic_id for a topic's.

Inputs: group_id (required), period, topic_id, response_format. Returns: The result of ``get_highlights``: what mattered in one group or topic. Built fr…

list_conversationsList ConversationsA
Read-onlyIdempotent

List the user's GroupMe conversations, most recently active first.

Use this first, whenever you need to find a conversation or the ids the other tools take: it merges groups and direct-message chats into one recency-sorted list with last-message previews and member counts. Every entry carries the group_id or other_user_id that read_messages and get_conversation_context need. Groups with topics (separate chats inside a group, such as announcements) list them under topics, most recently active first; address one as {"kind": "topic", "parent_group_id": ..., "topic_id": ...}. A group's main chat does not contain its topics' messages.

Inputs: kind, limit, response_format. Returns: The result of ``list_conversations``: most recently active first.

react_to_messageReact To MessageA
Idempotent

Like a GroupMe message, or remove your like from one.

Use this to react to a specific message on the authenticated user's behalf — acknowledging something without posting a reply. Both actions are idempotent: liking an already-liked message (or unliking one you never liked) leaves it in the requested state. Ids come from read_messages with response_format="detailed": use its conversation_id (a group id, or a composite direct-chat id like "123+456") and message id.

Inputs: action (required), message_id (required), conversation_id (required). Returns: Confirmation returned by ``react_to_message``.

read_messagesRead MessagesA
Read-onlyIdempotent

Read messages from one GroupMe conversation, oldest first.

Use this to read or page through the history of a specific group, topic, or direct-message chat once you know its id (from list_conversations, which also lists each group's topics). Sender names are resolved and attachments are normalized (image URLs, reply/mention summaries). An empty page is a normal answer, not an error: it means the conversation has no messages in the requested range.

Inputs: conversation (required), limit, since_id, before_id, +1 more. Returns: The result of ``read_messages``: oldest first. ``next_before_id`` is the oldest…

search_messagesSearch MessagesA
Read-onlyIdempotent

Search a group, topic, or direct-message chat for matching messages.

Use this to find specific messages ("who mentioned pizza?", "what did Ada say last week?") instead of paging manually with read_messages. GroupMe has no search API, so this scans backwards from the newest message, matching query against message text and sender_name against sender names (both case-insensitive substrings), until limit matches are found, the oldest message is reached, or max_messages_scanned messages have been examined. The result reports exactly how far the scan got — check oldest_message_reached and note before concluding something was never said.

Inputs: query (required), conversation (required), limit, sender_name, +2 more. Returns: The result of ``search_messages``: matches in scan order (newest first). The sc…

send_messageSend MessageA

Send a message to a GroupMe group, topic, or direct-message chat.

Use this to post as the authenticated user once you know where to send (ids come from list_conversations). Each call sends a new message — calling twice posts twice. A topic is checked against its parent group before posting, and a failed send is never redirected to the parent's main chat. Announcement topics may only accept posts from some members; GroupMe enforces that. To reply to a specific message, pass its id (from read_messages) as reply_to_message_id.

Inputs: text (required), conversation (required), image_url, reply_to_message_id. Returns: Confirmation returned by ``send_message``. ``conversation_id`` is the id the re…

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 7 tools

    Disambiguation4/5

    Each tool has a distinct role: list, read, context, search, highlights, send, react. The only mild overlap is between read_messages and get_conversation_context (both return recent messages), but the descriptions explicitly delineate orientation vs. paging.

    Naming Consistency5/5

    All seven tools follow a consistent snake_case verb_noun pattern (list_conversations, read_messages, get_conversation_context, search_messages, get_highlights, send_message, react_to_message). No mixing of conventions.

    Tool Count5/5

    Seven tools is well-scoped for a chat platform: one per major operation with no obvious bloat or thinness. Each tool earns its place.

    Completeness4/5

    The surface covers discovery, reading, search, highlights, sending, and reactions, with member info folded into get_conversation_context. Minor gaps remain (no group creation or message edit/delete), but core read/send workflows are covered.

    Maintenance

    ActivityActive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI models to interact with messages from various messaging platforms (Mobile, Mail, WhatsApp, LinkedIn, Slack, Twitter, Telegram, Instagram, Messenger) through a standardized interface.
      3
      16
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to read, search, and send iMessages with features like contact name resolution, session grouping, and attachment listing. It provides intent-aligned tools to efficiently navigate conversation history and manage messages through natural language queries.
      7
      MIT
    • F
      license
      B
      quality
      C
      maintenance
      An MCP server that integrates with the GroupMe API v3 to allow AI assistants to manage groups, messages, members, and bots. It enables comprehensive interaction with the GroupMe platform, including sending direct messages, liking content, and managing user blocks.
      29
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to triage and act on Instagram DMs, comments, and mentions with token-light overviews, unread lists, search, thread summaries, drafting replies or moderation actions, and human-approved sending.
      MIT