Claws Mail Mcp Plugin

io.github.it-atelier-gn由 GitHub 帳號 it-atelier-gn 發布v1.0.2更新於 Oct 24, 2026

Claws Mail plugin exposing the running mail client over a local, bearer-token MCP endpoint.

已驗證STDIO僅桌面效率與工作流溝通與協作

概覽

AI 產生的概覽

原生 Claws Mail 外掛,把執行中的郵件用戶端以僅限本機回環、需 bearer 權杖的 MCP 端點開放,讓助理讀取、搜尋與寄送郵件。

可以做什麼
  • 讀取已設定帳號中的資料夾與郵件
  • 跨資料夾搜尋郵件
  • 撰寫、回覆與轉寄郵件
  • 管理資料夾與郵件標記
  • 透過已設定的帳號收發郵件
  • 查詢外掛版本與運作狀態
適用情境
當你在同一台桌機上使用 Claws Mail,並希望 AI 助理透過現有帳號整理、搜尋、草擬與寄送郵件,而不必另外設定憑證時使用。
執行需求
需要桌面版 Claws Mail,並透過「設定 > 外掛」載入與 Claws Mail 版本相符的預先編譯外掛(或以 Meson、Ninja、C 編譯器及 Claws Mail 開發檔案自行編譯)。端點、連接埠、權杖與唯讀模式在 Claws Mail 設定目錄的 mcp_pluginrc 中設定;含 URL 與權杖的用戶端設定會寫入 mcp_client.json。伺服器僅監聽 127.0.0.1,AI 工具必須執行在同一台機器上。
安裝前請注意
mcp_client.json 中的 bearer 權杖可存取你的信箱,請妥善保管,不要提交到版本庫。外掛可撰寫、回覆、轉寄、收發郵件並變更資料夾與標記,助理會直接操作真實帳號;若只需讀取,請開啟唯讀模式。不要使用 Claude Desktop 的「自訂連接器」流程,它無法連上回環位址。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

claws-mail-mcp-plugin

[CI] [Claws Mail] [License: GPL v3+]

Native Claws Mail plugin that exposes the running mail client as an MCP server.

It runs inside Claws Mail and serves a local, loopback-only HTTP endpoint (JSON-RPC over MCP, bearer-token protected). Any MCP-capable AI tool can then read folders and messages, search, compose, reply, forward, manage folders and flags, and send or receive mail through your already-configured accounts. Endpoint, port, token and read-only mode are set in mcp_pluginrc inside the Claws Mail config directory; the plugin writes a ready-to-paste client config to mcp_client.json in the same place on every start.


Installing the plugin

Prebuilt binaries are attached to each release, one per OS and supported Claws Mail version (e.g. mcp-linux-claws4.3.1.so, mcp-windows-claws4.3.0.dll). Pick the file matching your Claws Mail version and OS, then:

  1. Save it in a folder of your choice, for example ~/.claws-mail/plugins or %APPDATA%\Claws-mail\plugins on Windows, as mcp.so or mcp.dll. Any file name works except one ending in _plugin.so or _plugin.dll: Claws Mail does not load such a file on startup and drops it from the plugin list.
  2. In Claws Mail, open Configuration > Plugins, click Load... and select the file.

Claws Mail loads the plugin again on every start.

To build from source instead, see Building.


Connecting an AI tool

Once loaded, the plugin writes the real endpoint URL and bearer token to mcp_client.json in the Claws Mail config directory. Use those two values with whichever method below matches your tool. The server is loopback-only (127.0.0.1), so it is reachable only from AI tools running on the same machine as Claws Mail.

Claude Code

claude mcp add --transport http claws-mail http://127.0.0.1:8765/mcp \  --header "Authorization: Bearer <TOKEN>"

Claude Desktop

Settings > Developer > Edit Config, then merge in packaging/claude/mcp.json (fill in <TOKEN>). Do not use the "Add custom connector" UI for this server: that flow connects from Anthropic's servers, not from your machine, so it cannot reach a loopback address.

VS Code / GitHub Copilot Chat

code --add-mcp "{\"name\":\"claws-mail\",\"type\":\"http\",\"url\":\"http://127.0.0.1:8765/mcp\",\"headers\":{\"Authorization\":\"Bearer <TOKEN>\"}}"

Or copy packaging/vscode/mcp.json to .vscode/mcp.json; it prompts for the token instead of storing it in the file.

Codex CLI

export CLAWS_MCP_TOKEN=<TOKEN>codex mcp add claws-mail --url http://127.0.0.1:8765/mcp --bearer-token-env-var CLAWS_MCP_TOKEN

This matches packaging/codex/config.toml, which Codex reads from ~/.codex/config.toml.

MCP registry

The plugin is listed in the MCP registry as io.github.it-atelier-gn/claws-mail-mcp-plugin. The listing carries no connection details; install the plugin and connect your tool as described above.


Building

Requires Meson, Ninja, a C compiler, and the Claws Mail development files (GTK3, GLib, GnuTLS, libgcrypt; on Linux also enchant).

Linux

Install dependencies (Debian/Ubuntu example):

sudo apt-get install build-essential meson ninja-build pkg-config \  libgtk-3-dev libglib2.0-dev libgnutls28-dev libgcrypt20-dev libenchant-2-dev

If a claws-mail pkg-config file is not already on your system, build one with:

PREFIX="$PWD/.claws-sdk" ci/build-claws-sdk.shexport PKG_CONFIG_PATH="$PWD/.claws-sdk/lib/pkgconfig"

Then configure and build:

meson setup buildmeson compile -C buildmeson test -C build

The plugin is built at build/mcp.so.

Windows (MSYS2)

Install the MINGW64 toolchain and dependencies:

pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-meson mingw-w64-x86_64-ninja \  mingw-w64-x86_64-pkgconf mingw-w64-x86_64-gtk3 mingw-w64-x86_64-glib2 \  mingw-w64-x86_64-gnutls mingw-w64-x86_64-libgcrypt

Build the Claws Mail SDK and set PKG_CONFIG_PATH as above, then run the same meson setup / meson compile / meson test commands. The plugin is built at build/mcp.dll.

Plugin version

The version compiled into the binary (returned by plugin_version and the status tool) comes from -Dplugin_version, e.g.:

meson setup build -Dplugin_version=1.2.3

CI sets this from the pushed git tag on release builds. Without it, the build falls back to git describe, then to 0.0.0-dev.

Installing

meson install -C build

This installs the plugin into the Claws Mail plugin directory reported by pkg-config --variable=plugindir claws-mail. Load it from there once under Configuration > Plugins > Load...


Supported Claws Mail versions

Each release contains a Linux and a Windows build for every Claws Mail version listed in ci/claws-versions.json.


License

GPL-3.0-or-later, see LICENSE.

來源:README.md,提交 acb712f

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

2
  1. v1.0.2最新Oct 22, 2026
  2. v1.0.1Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分