Roshi's Signal MCP
Reads, searches, exports, and watches Signal Desktop messages and media; enforces ignore lists and redaction; optionally sends messages and files through a linked signal-cli device.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Roshi's Signal MCP search my Signal messages from this week for dinner plans"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.

Roshi's Signal MCP
Install in seconds
Antigravity (one command)
agy plugin install RIAEvangelist/roshi-signal-mcpInstalls the full bundle automatically—all 21 MCP tools, the roshi-signal-mcp skill, and the bundled safety rules—and bootstraps an isolated Python environment on first run via bootstrap_mcp.py.
On Windows, if you cloned the repo locally (or want to also install native signal-cli in WSL2 for sending messages):
git clone https://github.com/RIAEvangelist/roshi-signal-mcp.git
cd roshi-signal-mcp
.\setup.ps1 -InstallPlugin -InstallSignalCli(Omit -InstallSignalCli if you only need read, search, export, redaction, and watching.)
Related MCP server: openmessage
Works with every major AI
Because Roshi's Signal MCP speaks the open Model Context Protocol (MCP 2.x over stdio), the exact same 21 tools, ignore lists, redaction rules, and watch triggers work across every major AI coding and desktop assistant—plus standalone from your terminal with no AI at all.
AI Client / Environment | Integration Type | Setup |
Google Antigravity (App, CLI, IDE) | Native Plugin (MCP + Skill + Rules) |
|
Claude Code | Native Plugin Marketplace ( |
|
OpenAI Codex (CLI & App) | Native Plugin ( |
|
Claude Desktop / Cursor / Windsurf / Cline / Zed / Gemini CLI | Standard MCP stdio server |
|
Standalone CLI (No AI required) | PowerShell / Python CLI |
|
Copy-paste MCP & plugin installs
# Native plugin (bundles MCP server + skill)
/plugin marketplace add RIAEvangelist/roshi-signal-mcp
/plugin install roshi-signal-mcp
# Or register the MCP server directly via uvx (no git clone needed)
claude mcp add roshi-signal-mcp -- uvx --from git+https://github.com/RIAEvangelist/roshi-signal-mcp.git roshi-signal-mcp# Native plugin marketplace
codex plugin marketplace add RIAEvangelist/roshi-signal-mcp --sparse .agents/plugins
codex plugin install roshi-signal-mcp@roshi-signal-mcp-marketplaceOr add directly to ~/.codex/config.toml:
[mcp_servers.roshi-signal-mcp]
command = "uvx"
args = ["--from", "git+https://github.com/RIAEvangelist/roshi-signal-mcp.git", "roshi-signal-mcp"]Zero-clone (uvx):
{
"mcpServers": {
"roshi-signal-mcp": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/RIAEvangelist/roshi-signal-mcp.git",
"roshi-signal-mcp"
]
}
}
}Or from a local clone (no uv required):
{
"mcpServers": {
"roshi-signal-mcp": {
"command": "python",
"args": ["/path/to/roshi-signal-mcp/bootstrap_mcp.py"]
}
}
}Copy the cloned roshi-signal-mcp directory into:
Windows:
%USERPROFILE%\.gemini\config\plugins\roshi-signal-mcpmacOS / Linux:
~/.gemini/config/plugins/roshi-signal-mcp
On first launch, bootstrap_mcp.py creates an isolated venv at ~/.cache/roshi-signal-mcp/venv and installs sqlcipher3, cryptography, mcp, and qrcode[pil] automatically (logging setup output to stderr so stdout stays clean MCP JSON-RPC).
Roshi's Signal MCP (roshi-signal-mcp) reads your local Signal Desktop 7.x / 8.x database live in read-only WAL mode (while Signal Desktop stays open), decrypts version = 2 media attachments (attachments.noindex/), enforces strict per-user ignore lists and text/metadata redaction rules before any tool or export sees data, evaluates declarative watch/trigger rules for Antigravity or Codex, and optionally sends messages and files through a linked signal-cli device.
Capabilities at a glance
Do this | Start here |
Search Signal chats directly with date ranges, regex, media filters, and | |
Export a chat and all decrypted images/PDFs/videos into JSON, Markdown, and a searchable HTML gallery | |
Resume an interrupted export, restore deleted/corrupt files, or backfill newly downloaded media | |
Block sensitive chats, people, keywords, or regexes from ever being read, exported, watched, or messaged |
|
Redact SSNs, cards, emails, phones, API keys, and custom terms across reads, exports, and filenames | |
Trigger auto-replies, incremental exports, Antigravity tasks, or Codex/CLI commands on incoming Signal messages | |
Link |
Direct search and date ranges
Exporting an entire chat just to find a few messages is slow and creates unnecessary plaintext copies on disk. search_messages queries the live Signal Desktop SQLCipher database directly while still passing every hit through the privacy ignore list and redaction engine:
Filters:
query(substring orregex=True),conversation,sender,has_media=True,since,until,offset, andlimit.Surrounding context: pass
context_messages=2(0–10) to include the non-ignored, redacted messages immediately before and after each match—useful when a receipt image and its description arrive in separate messages.Inclusive date ranges: date-only
untilfilters (YYYY-MM-DD) automatically resolve to23:59:59.999local time sosince="2026-06-01", until="2026-06-30"includes all of June 1 through all of June 30 acrossget_messages,search_messages, andexport_conversation.Anti-oracle protection: search queries are re-verified post-redaction so searching for a redacted secret cannot be used to discover whether that secret exists in a chat.
Crash-safe, resumable exports
export_conversation decrypts local attachments from attachments.noindex/ into <output_dir>/media/ with chronological, collision-free filenames (YYYY-MM-DD_HHMMSS_<sender>_<id>_<idx>.<ext>) and original message timestamps (mtime), alongside messages.json, chat.md, a self-contained searchable index.html gallery, and manifest.json.
Atomic writes: each decrypted media file is written to
<name>.partfirst and atomically renamed on completion, so interruptions never leave half-written corrupt images.Interrupted & partial recovery:
manifest.jsonrecordsinProgress, saved export options (since,until,formats,mediaOnly), exported file keys, and previously missing/undownloaded attachment keys.One-call resume & backfill: call
resume_export(output_dir)(or.\signal-cli-tool.ps1 resume-export <dir>) to:Remove any leftover
.partfiles from an interrupted run.Restore any exported media file that was deleted or corrupted on disk.
Backfill attachments that were previously unavailable locally once Signal Desktop downloads them.
Pick up newly arrived messages (pass
expand_until_to_now=Trueto extend a previously date-bounded export).
Privacy, ignore list, and redaction
All privacy rules live privately outside the repository at ~/.roshi-signal-mcp/privacy_policy.json (override with ROSHI_SIGNAL_STATE_DIR) and are enforced at the lowest data-access layer (desktop_db.py, exporter.py, watcher.py, sender.py).
Strict ignore list
Block anything you cannot or do not want read, searched, exported, extracted, watched, or messaged:
Category | What it blocks |
| Exact name, glob ( |
| Person's name, phone, or ACI — hides their private DM and strips their messages and reactions from shared group chats. |
| Any message whose body, quote, caption, or attachment filename contains the term is omitted entirely. |
| Any message matching the pattern is omitted entirely. |
Text and metadata redaction
Built-in presets:
ssn(SSN/ITIN),credit_card(Luhn-validated to avoid false positives on order/tracking numbers),email,phone,secrets(API keys, Bearer tokens, private key blocks),bank_account, andipv4.Custom rules: literal terms (
add_term, optionalwhole_wordandcase_sensitive) and custom regexes (add_regex) with custom replacement labels such as[REDACTED:CLIENT].Text-only scope: redaction applies to message bodies, expanded long messages, quotes, attachment captions, attachment filenames, sender/conversation labels, exported transcripts (
messages.json,chat.md,index.html), exported media filenames, and watch payloads. Binary images and PDFs are not OCR-redacted. If you need to exclude media whenever a message triggers redaction, enableset_block_media_on_redacted(True)or place the chat/sender on the ignore list.
Tamper-resistant CLI lock
.\signal-cli-tool.ps1 policy lockWhile locked, AI agents calling MCP tools can inspect the policy and add new ignore entries or redaction rules, but cannot remove ignore entries, disable redaction, or weaken presets (PolicyLockedError). Unlocking requires running .\signal-cli-tool.ps1 policy unlock directly from your shell (or editing ~/.roshi-signal-mcp/privacy_policy.json).
Watch and trigger automation
Store declarative rules in ~/.roshi-signal-mcp/watch_rules.json so Antigravity or Codex can react to incoming Signal messages automatically:
Matchers:
conversation,sender,contains,regex,has_media,include_outgoing(falseby default to prevent reply loops), andcooldown_seconds.Actions (one or more per rule; all template variables
{sender},{conversation},{body},{timestamp},{attachment_paths}andSIGNAL_*env vars are redacted first):reply— auto-reply on Signal viasignal-cliexport— incrementally export the chat and decrypted mediaantigravity_task— start a new Antigravity conversation via the localConversationServiceAPI with your prompt template and extracted attachment pathscommand— run any local CLI or script (e.g.codex exec, Python script, or webhook)
Two ways to run:
Live background watcher:
manage_signal_watcher(action="start", poll_interval_seconds=3)or.\signal-cli-tool.ps1 watch runScheduled / cursor-based check:
check_new_messages()orrun_watch_rules_once(dry_run=...)(pairs cleanly with Antigravity/scheduleor Task Scheduler/cron)
Sending messages (optional)
Reading, searching, exporting, privacy filtering, and watching require only Signal Desktop. Sending messages and attachments uses signal-cli linked to your account as a secondary device:
Ensure
signal-cliis installed (.\setup.ps1 -InstallSignalClion Windows WSL2,brew install signal-clion macOS, or~/.local/bin/signal-clion Linux).Start pairing and scan the browser QR code in Signal (Phone) → Settings → Linked Devices → Link New Device:
.\signal-cli-tool.ps1 link --open --wait(Or ask Antigravity to call
link_signal_device(open_browser=True).)Sync your contacts and groups:
.\signal-cli-tool.ps1 syncPreview target resolution safely with
--dry-run(ordry_run=Truein MCP) before sending.
MCP tool surface
All 21 tools are exposed over standard MCP stdio (server.py):
Category | Tool | Purpose |
Read & Search |
| List/filter non-ignored Signal Desktop chats & groups with message and local media counts |
| Read messages from a chat with inclusive date range ( | |
| Search directly in SQLite with date range, sender, media, regex, pagination, and | |
| Decrypt a single attachment by | |
Export & Resume |
| Export messages + decrypted media to JSON, Markdown, and a searchable HTML gallery |
| Recover interrupted exports, repair missing/corrupt files, and backfill newly downloaded media | |
Privacy Policy |
| Inspect active ignore lists, redaction presets/rules, lock status, and policy path |
| Add/remove ignored conversations, senders, keywords, or regexes (respects CLI lock) | |
| Toggle presets, literal terms, regexes, and | |
| Preview redaction and ignore matching on sample text without touching Signal | |
Watch & Triggers |
| List configured Signal watch/trigger rules |
| Create a rule matching conversation/sender/text/media -> reply/export/task/command | |
| Enable or disable a watch rule by ID or name | |
| Delete a watch rule by ID or name | |
| Return only brand-new messages since the saved cursor | |
| Evaluate enabled rules once against new messages (supports | |
| Start, stop, inspect, or reset the cursor of the live background watcher | |
Sending |
| Check |
| Start Signal linked-device pairing and generate QR PNG + browser HTML page | |
| Sync contacts and groups from your primary phone into | |
| Send text and/or local file attachments by chat name, phone, UUID, or group ID |
CLI reference
Run commands on Windows with .\signal-cli-tool.ps1 <command> (or cross-platform with python -m signal_mcp.cli <command>):
# List chats
.\signal-cli-tool.ps1 list --search "Family"
# Search directly with date range, sender filter, and ±2 context messages
.\signal-cli-tool.ps1 search "invoice" --conversation "Family Chat" --since 2026-06-01 --until 2026-06-30 --context 2
# Export a date range and later resume/backfill newly downloaded media
.\signal-cli-tool.ps1 export "Family Chat" --since 2026-01-01 --until 2026-06-30 --output "C:\Exports\Family_H1"
.\signal-cli-tool.ps1 resume-export "C:\Exports\Family_H1" --expand-until-to-now
# Configure ignore list & redaction, then lock policy from AI tampering
.\signal-cli-tool.ps1 ignore add conversations "Attorney*"
.\signal-cli-tool.ps1 ignore add senders "+15551234567"
.\signal-cli-tool.ps1 redact preset-on ssn
.\signal-cli-tool.ps1 redact preset-on secrets
.\signal-cli-tool.ps1 redact add-term "ClientName" --replacement "[REDACTED:CLIENT]" --whole-word
.\signal-cli-tool.ps1 policy lock
# Add a watch rule and run the live daemon
.\signal-cli-tool.ps1 watch add --name "Urgent Ack" --contains "urgent" --reply "Got it, {sender}!"
.\signal-cli-tool.ps1 watch run --interval 3
# Link signal-cli via browser QR and preview a send
.\signal-cli-tool.ps1 link --open --wait
.\signal-cli-tool.ps1 sync
.\signal-cli-tool.ps1 send "Family Chat" "Hello!" --dry-runStorage, security, and trust boundary
100% local execution: Signal Desktop reading, SQLCipher decryption, attachment decryption, ignore-list filtering, and redaction run locally under your OS user session. Database keys (
encryptedKey/ SQLCipher hex key) and attachmentlocalKeyvalues stay in memory only and are never written to logs, exports, or config files.External state paths: user exports default to
~/SignalExports/(override viaSIGNAL_EXPORT_DIR), privacy policies and watch state live in~/.roshi-signal-mcp/(override viaROSHI_SIGNAL_STATE_DIR), andsignal-clikeys remain insignal-cli's own data directory—keeping the plugin repository free of personal data.Unencrypted exports: exported
messages.json,chat.md,index.html, andmedia/files are plaintext on disk once exported; store them in an appropriately protected folder.Revocable sending:
signal-clioperates as a standard Signal linked device and can be unlinked at any time from Signal → Settings → Linked Devices. The bundled plugin safety rules (rules/AGENTS.md) instruct agents to confirm recipient, text, and attachments before sending and never attempt to bypass ignore-list errors.
Verification
The test suite uses an isolated temporary SQLCipher profile and never touches your real Signal Desktop data or ~/.roshi-signal-mcp/ configuration:
python -m unittest discover -s tests -vCurrent automated suite (6 tests in tests/test_privacy_and_watch.py) verifies:
Ignore-list enforcement across
list_conversations,get_messages,search_messages,extract_attachment,send_message, andadd_watch_rule.Text/metadata redaction presets (including Luhn card validation and SSN/ITIN), custom terms/regexes, export leak checks (JSON, Markdown, HTML, media filenames), anti-oracle search behavior, and optional
blockMediaOnRedactedMessage.CLI policy lock enforcement preventing MCP-level weakening while still allowing stricter additions.
Watch rule matching, loop protection (
includeOutgoing=False), deduplication, and redacted command payloads.Direct search filters (
since/untilinclusive end-of-day,sender,has_media,regex,context_messages).Crash-safe
resume_exportrecovery of.partleftovers, deleted media files, and backfilled newly downloaded attachments.
License
MIT — see LICENSE.
Available Tools
21 toolsadd_watch_ruleAdd Watch RuleA
Create a Signal watch/trigger rule (e.g. 'when I get a message from X or containing Y, reply / export / launch an Antigravity task / run a CLI command like Codex'). Refuses rules targeting ignored conversations or senders.
Inputs: name (required), actions (required), regex, sender, +6 more. Returns: object
check_new_messagesCheck New MessagesB
Return ONLY brand-new (non-ignored, redacted) Signal messages received since the last check cursor. Ideal for scheduled Antigravity automations or Codex polling.
Inputs: limit, conversation, advance_cursor, include_outgoing. Returns: object
delete_watch_ruleDelete Watch RuleCDestructiveIdempotent
Delete a Signal watch rule by ID or name.
Inputs: rule_id (required). Returns: object
export_conversationExport Signal ConversationBIdempotent
Export a Signal Desktop conversation and decrypt all local media attachments (images, PDFs, videos, documents) into a folder with JSON, Markdown, and a searchable HTML gallery. Strictly enforces ignore lists and text/metadata redaction rules.
Inputs: conversation (required), since, until, formats, +4 more. Returns: object
extract_attachmentExtract Signal AttachmentBIdempotent
Decrypt and save a single attachment from a Signal message by message_id so it can be opened or inspected directly (blocked if conversation/message is ignored).
Inputs: message_id (required), output_path, attachment_index. Returns: object
get_messagesGet Signal MessagesBRead-onlyIdempotent
Fetch messages from a Signal Desktop conversation (matched by name, ID, groupId, or phone). Enforces ignore list and text/metadata redaction rules automatically.
Inputs: conversation (required), limit, since, until, +3 more. Returns: object
get_privacy_policyGet Privacy PolicyARead-onlyIdempotent
Inspect the active Signal privacy policy: ignore list (blocked conversations, senders, keywords, regexes), redaction rules & presets, lock state, and policy file path.
Inputs: no named parameters. Returns: object
link_signal_deviceLink Signal DeviceA
Start linking signal-cli as a Signal linked device (just like Signal Desktop). Returns a linking URI and saves a scannable QR code PNG and browser-ready HTML page for the user to scan in Signal -> Settings -> Linked Devices -> Link New Device.
Inputs: device_name, open_browser, qr_output_path. Returns: object
list_conversationsList Signal ConversationsARead-onlyIdempotent
List non-ignored Signal Desktop conversations (chats and groups) ordered by most recent activity, including message counts and local attachment counts.
Inputs: limit, search, conv_type. Returns: result
list_watch_rulesList Watch RulesARead-onlyIdempotent
List all configured Signal watch/trigger rules (matchers and actions).
Inputs: no named parameters. Returns: result
manage_ignore_listManage Ignore ListAIdempotent
Add or remove entries from the strict Signal ignore list (things that must NEVER be read, searched, exported, extracted, watched, or optionally messaged). If the policy is locked via CLI, entries can still be added but cannot be removed.
Inputs: action (required), value, category, block_send_to_ignored. Returns: object
manage_redaction_rulesManage Redaction RulesBIdempotent
Configure Signal text/metadata redaction rules (applies to all reads, searches, exports, filenames, and watch payloads; note that binary images/PDFs are not OCR-redacted, though block_media_on_redacted can block media on redacted messages). When the policy is locked via CLI, rules can be strengthened/added but not weakened.
Inputs: action (required), name, term, preset, +5 more. Returns: object
manage_signal_watcherManage Signal WatcherBIdempotent
Start, stop, inspect, or reset the live background Signal watcher inside the MCP server.
Inputs: since, action, poll_interval_seconds. Returns: object
resume_exportResume Signal ExportAIdempotent
Resume an interrupted export, repair deleted or corrupt media files, backfill attachments that Signal Desktop has newly downloaded since the last run, and pick up any new messages. Reads conversation and options directly from <output_dir>/manifest.json.
Inputs: output_dir (required), since, until, expand_until_to_now. Returns: object
run_watch_rules_onceRun Watch Rules OnceB
Evaluate all enabled Signal watch rules once against newly arrived messages since the cursor. Use dry_run=True to preview matches and actions without executing them.
Inputs: limit, dry_run. Returns: object
search_messagesSearch Signal MessagesARead-onlyIdempotent
Search non-ignored Signal Desktop messages directly in the database (faster and cleaner than exporting first). Supports date ranges (since/until inclusive), sender filter, media filter, regex matching, pagination, and surrounding context messages (±N), with automatic redaction.
Inputs: limit, query, regex, since, +6 more. Returns: result
send_signal_messageSend Signal MessageA
Send a Signal text message and/or file attachments to a person or group via linked signal-cli. Recipient can be a conversation name (e.g. 'Family Chat'), an E.164 phone number (+1...), a UUID, or a base64 Signal group ID. Blocked if recipient is on the privacy ignore list.
Inputs: recipient (required), account, dry_run, message, +3 more. Returns: object
signal_send_statusSignal Send StatusARead-onlyIdempotent
Check whether signal-cli is installed and linked to a Signal account so messages can be sent.
Inputs: no named parameters. Returns: object
sync_signal_accountSync Signal AccountAIdempotent
Sync contacts and groups from your primary Signal phone to signal-cli after linking.
Inputs: account, receive_timeout. Returns: object
test_redactionTest Redaction RulesARead-onlyIdempotent
Test sample text against the active redaction rules and ignore keywords without touching Signal.
Inputs: sample_text (required). Returns: object
toggle_watch_ruleToggle Watch RuleBIdempotent
Enable or disable an existing Signal watch rule by ID or name.
Inputs: enabled (required), rule_id (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 21 tools
Most tools target a distinct resource+action (list_conversations vs get_messages vs search_messages vs check_new_messages are separated by scope: enumerate chats, fetch a thread, filtered search, cursor-based new-only). A few pairs blur slightly: sync_signal_account vs link_signal_device (both setup), and run_watch_rules_once vs manage_signal_watcher (evaluate once vs control background loop), but the descriptions resolve them.
Nearly all tools follow a verb_noun snake_case pattern (list_conversations, get_messages, add_watch_rule, delete_watch_rule, manage_ignore_list). The main deviation is signal_send_status, which is noun-first instead of something like check_send_status, plus the adverbial suffix in run_watch_rules_once. Still highly predictable overall.
21 tools is on the heavy side, but the surface splits cleanly into justified sub-domains: messaging, conversation reads, export/attachments, privacy policy, watch-rule CRUD, and account linking. Each tool maps to a real operation rather than a duplicate, though a couple (resume_export vs export_conversation, test_redaction) could arguably be folded in.
Strong lifecycle coverage: read (get/search/check), write (send with attachments), export/resume/extract, privacy configuration, watch-rule CRUD plus one-shot and background execution, and device linking. Gaps are group administration (create group, add/remove members) and message-level operations (delete/edit/mark read), which are workarounds rather than core blockers.
Maintenance
Related MCP Connectors
Hosted WhatsApp MCP server for AI agents — read, search, send messages, media, polls, and groups.
Unified inbox MCP for WhatsApp, Telegram, Email, voice — read/send messages, search, AI agents.
Let Claude or ChatGPT search, read and send your WhatsApp messages over MCP. OAuth sign-in.
Free WhatsApp MCP server for ChatGPT and Claude: read and search chats, every send you approve.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP integration for signal-cli that allows AI agents to send and receive Signal messages, supporting direct messages, group messages, and async message handling.26-
- AlicenseNot gradedqualityBmaintenanceMCP server for a local-first messaging workspace that integrates Google Messages, WhatsApp, and Signal. It enables reading, sending, searching messages, and managing conversations through MCP tools.74-
- AlicenseNot gradedqualityDmaintenanceProvides read-only access to Signal Desktop message history, enabling listing conversations, retrieving messages, and searching messages through MCP tools.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables remote Model Context Protocol clients to securely read, search, and send Signal Messenger messages through an HTTP interface backed by a personal signal-cli daemon.MIT