signal-mcp-server
MCP server that wraps a running signal-cli daemon's JSON-RPC API as MCP tools, enabling list contacts, groups, conversations, read and send messages, and react to messages on Signal.
README
signal-mcp-server
MCP (Model Context Protocol) server for Signal messenger. Wraps a running signal-cli daemon's JSON-RPC API as MCP tools.
Prerequisites
- signal-cli daemon running in HTTP mode
(e.g.
signal-cli --account +491****6789 daemon --http 127.0.0.1:8080) - Node.js 22+
Usage
Stdio (for Hermes MCP, Claude Desktop, etc.)
SIGNAL_HTTP_URL=http://127.0.0.1:8080 npx signal-mcp-server
Configure in Hermes:
mcp_servers:
signal:
command: "npx"
args: ["-y", "signal-mcp-server"]
env:
SIGNAL_HTTP_URL: "http://127.0.0.1:8080"
SIGNAL_ACCOUNT: "+491****6789"
timeout: 30
HTTP transport
signal-mcp-server --http 3100
Then call tools via JSON-RPC:
curl -X POST http://localhost:3100/ \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","method":"tools/list","id":"1"}'
Docker
# Pull from GitHub Container Registry
docker run -e SIGNAL_HTTP_URL=http://host.docker.internal:8080 \
ghcr.io/transmitt0r/signal-mcp-server:latest
# Or build locally
docker build -t signal-mcp-server .
docker run -e SIGNAL_HTTP_URL=http://host.docker.internal:8080 \
signal-mcp-server
Tools
| Tool | Description |
|---|---|
signal_list_contacts |
List all Signal contacts |
signal_list_groups |
List all Signal groups |
signal_list_conversations |
List recent conversations |
signal_read_messages |
Read recent messages (optionally filtered by sender) |
signal_send_message |
Send a message to a recipient or group |
signal_send_reaction |
React to a message with an emoji |
Environment Variables
| Variable | Default | Description |
|---|---|---|
SIGNAL_HTTP_URL |
http://127.0.0.1:8080 |
signal-cli HTTP endpoint |
SIGNAL_ACCOUNT |
"" |
Phone number for display (optional) |
SIGNAL_MCP_MAX_MSGS |
500 |
Max messages to buffer in memory |
Architecture
The server connects to a running signal-cli daemon via its JSON-RPC HTTP API. It uses two main components:
-
SSE consumer: Opens a long-lived connection to the signal-cli event stream (
/api/v1/events) and parses Server-Sent Events intoRpcEnvelopeobjects. AnAbortControllerallows clean shutdown onSIGINT/SIGTERM. -
Message buffer: An in-memory ring buffer that stores the most recent messages (configurable via
SIGNAL_MCP_MAX_MSGS, default 500). Messages are deduplicated using asource:timestampcomposite key. Tools likesignal_read_messagesandsignal_list_conversationsquery this buffer rather than making additional RPC calls, keeping latency low.
The MCP server registers six tools (signal_list_contacts, signal_list_groups,
signal_list_conversations, signal_read_messages, signal_send_message,
signal_send_reaction) and exposes them via stdio (default) or Streamable HTTP.
Development
# Install dependencies
pnpm install
# Build (TypeScript compilation)
pnpm build
# Run unit tests (vitest)
pnpm test:unit
# Run all tests (unit + integration)
pnpm test
# Lint (tsc — also covered by build)
pnpm build
The TypeScript source lives under src/. The main logic is in src/index.ts,
shared types and helpers are in src/lib.ts, and unit tests in
src/tests/unit.test.ts.
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.