phone-sms

io.github.h-3303v0.1.0更新於 Oct 2, 2026

Read and send SMS through your own Android phone over KDE Connect on your LAN. No cloud relay.

已驗證STDIO僅桌面Communication & Collaboration

概覽

AI 產生的概覽

透過區域網路上的 KDE Connect,用你自己的 Android 手機讀取與傳送簡訊,不需雲端中轉。

功能
提供工具來依最新優先列出簡訊對話、讀取某個對話最近 n 則訊息、依姓名或號碼片段從手機同步的聯絡人查詢,以及傳送簡訊給一個或多個號碼。它透過 D-Bus 與區域網路經 KDE Connect 連到手機,而非簡訊閘道。命令列介面提供相同操作,方便手動檢查。
適用情境
適合在已與手機配對的 Linux 桌面上,讓助理讀取或草擬以你自己號碼傳送的簡訊回覆。也適合不希望簡訊經過雲端中轉的本地、重視隱私情境。
執行需求
Linux,需有 D-Bus session bus 以及較新的 KDE Connect(kdeconnectd);不要求 Plasma 桌面。Android 手機需安裝 KDE Connect 應用程式並已配對且可連線,啟用簡訊外掛並授予簡訊權限(如需姓名則啟用聯絡人外掛及權限)。需要 uv 與 Python 3.12+。配對多支手機時,用 PHONE_SMS_DEVICE 指定裝置 id。
安裝前請注意
send_sms 被標記為破壞性操作,會真正以你的號碼傳送簡訊;伺服器要求模型在傳送前等待你確認確切的收件人與內容,但這只是慣例,並非強制保證。訊息內容會進入模型上下文。傳送成功僅表示請求已交給手機,不代表已送達。聯絡人姓名依賴聯絡人外掛及其同步的 vCard。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 phone-sms,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

phone-sms

Site: https://phone-sms.vercel.app · Repo: https://github.com/h-3303/phone-sms

An MCP server that lets Claude (or any MCP client) read and send SMS through your own Android phone, from your own number. It talks to the phone over KDE Connect on your local network: no cloud relay, no SMS gateway account, no app to install beyond KDE Connect itself.

agent ──MCP──▶ phone-sms ──D-Bus──▶ kdeconnectd ──LAN──▶ KDE Connect (Android) ──▶ SMS

Tools:

ToolDoes
list_threadsconversations, newest first, with the latest message; filter by contact or unread
read_threadthe last n messages of one conversation
find_contactlook up a contact by name or number fragment (from the phone's synced contacts)
send_smssend a text, or a group text to several numbers

send_sms carries MCP's destructiveHint, and the server tells the model never to send until you have approved the exact recipient and text in the conversation. Message contents never leave your machine except as the model's context.

Requirements

  • Linux with a D-Bus session bus and KDE Connect (kdeconnectd, a current release; package kdeconnect). It does not need the Plasma desktop; it runs fine under GNOME, Hyprland, Sway…
  • An Android phone with the KDE Connect app (F-Droid / Play), paired with the computer. On the phone, enable the SMS plugin (and Contacts if you want names) and grant the SMS and contacts permissions it asks for.
  • uv and Python 3.12+.

Check the pairing: kdeconnect-cli -l should list your phone as paired and reachable.

Install

Claude Code, as a plugin (one step):

/plugin marketplace add h-3303/phone-sms/plugin install phone-sms@phone-sms

Claude Code, as a plain MCP server:

bash
claude mcp add --scope user phone-sms -- uvx phone-sms

Any other MCP client (Claude Desktop config shape, Cursor, Zed, …):

json
{  "mcpServers": {    "phone-sms": {      "command": "uvx",      "args": ["phone-sms"]    }  }}

From a checkout: uv run --directory /path/to/phone-sms -q phone-sms.

The server uses the first paired, reachable device. With several phones, pin one with PHONE_SMS_DEVICE=<id> (the id kdeconnect-cli -l prints).

CLI

The same code paths, for checking things by hand:

phone-sms threads [-n 20] [--unread]phone-sms read <thread_id> [-n 20]phone-sms contact <name>phone-sms send <number>... -m "text"phone-sms                              # MCP server on stdio

How sending works

  1. find_contact <name> gives the number; send_sms takes numbers, ideally in E.164 (+14375551234).
  2. The model shows you recipient and text and waits for your yes.
  3. send_sms answers handed to phone… once kdeconnectd has accepted the request. That is not delivery: the sent message shows up in list_threads / read_thread once the phone syncs it, usually within a minute.

Troubleshooting

  • "no paired, reachable device": open KDE Connect on the phone, same Wi-Fi, kdeconnect-cli -l.
  • Sent, but nothing arrives: on the phone, check that the SMS plugin is enabled for this computer and that Android granted KDE Connect the SMS permission. Watch the request leave the server with dbus-monitor --session "interface='org.kde.kdeconnect.device.conversations',member='sendWithoutConversation'".
  • Names missing: enable the Contacts plugin on both ends; vCards land in ~/.local/share/kpeoplevcard/kdeconnect-<device>/.
  • The kdeconnectd journal line Unimplemented conversation of type 'r' comes from the notification-forwarding plugin, not SMS.

Notes for hackers

It uses org.kde.kdeconnect.device.conversations, the interface the kdeconnect-sms app uses. The daemon object's introspection XML has duplicate methods, so device discovery is a raw D-Bus call. requestConversation first emits only cached messages, so read_thread waits for count messages or conversationLoaded, not for a quiet gap.

License

GPL-3.0-or-later, like KDE Connect.

來源:README.md,提交 58b443d

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v0.1.0最新Oct 2, 2026