Claude, Codex and MCP
Let an AI client search, read, organise and reply to your texts through the pSMS MCP server.
Connect
Start pSMS, make sure psms is on your PATH, and register the MCP server:
codex mcp add psms -- psms mcp
claude mcp add --transport stdio psms -- psms mcpFor a remote archive, add --server https://YOUR-HOST/v1 --token-file /private/owner-token.txt.
Add --key-file /private/recovery-kit.pdf (or a file with your 12 words) only if you want the AI client to read message text and contact names. The key stays on the computer running psms mcp, but the client receives the decrypted text it asks for. Without a key, tools return dates, stars and IDs only.
Tools
| Tool | What it does |
|---|---|
search_messages | Filter by text, sender, date range, starred and unread. Follow next_cursor even when a page is empty. |
get_message | One message by ID, with the sender's contact card. |
list_contacts | Contacts with names, numbers and emails, optionally with recent messages. |
contact_history | All messages from one sender or contact ID. |
update_message | Star, unstar, or mark read or unread. |
set_contact, reset_contact | Edit a contact card, or go back to the phone's copy. |
send_message, outbox_status | Queue a reply for your Mac to send and check on it. |
cloud_status | Whether this archive is connected to papamo.dev. |
Try asking: “Find starred messages from GLOBE about renewal since November 1”, or “Reply to Ana that I'm on my way.”
Treat message text as untrusted input: a text can contain instructions meant to mislead an AI. The send_message tool only sends what you ask for, but review replies before you rely on them.