Claws Mail plugin exposing the running mail client over a local, bearer-token MCP endpoint.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
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.
Prebuilt binaries are attached to each release, one per OS and supported Claws Mail version (e.g. mcp_plugin-linux-claws4.3.1.so, mcp_plugin-windows-claws4.3.0.dll). Pick the file matching your Claws Mail version and OS, then:
pkg-config --variable=plugindir claws-mail, typically ~/.claws-mail/plugins or %APPDATA%\Claws-mail\plugins on Windows).To build from source instead, see Building.
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.
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.
Or copy packaging/vscode/mcp.json to .vscode/mcp.json; it prompts for the
token instead of storing it in the file.
This matches packaging/codex/config.toml, which Codex reads from
~/.codex/config.toml.
packaging/registry/server.json is published to the MCP registry as io.github.it-atelier-gn/claws-mail-mcp-plugin on every tagged release, via .github/workflows/ci.yml's publish-registry job (GitHub OIDC auth, no stored credentials). The registry rejects loopback URLs as remotes, so this is a discovery-only listing without connection details; it links back to this README for installation and the per-tool commands above.
Requires Meson, Ninja, a C compiler, and the Claws Mail development files (GTK3, GLib, GnuTLS, libgcrypt, enchant).
Install dependencies (Debian/Ubuntu example):
If a claws-mail pkg-config file is not already on your system, build one with:
Then configure and build:
The plugin is built at build/mcp_plugin.so.
Install the MINGW64 toolchain and dependencies:
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_plugin.dll.
The version compiled into the binary (returned by plugin_version and the
status tool) comes from -Dplugin_version, e.g.:
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.
This installs the plugin into the Claws Mail plugin directory reported by
pkg-config --variable=plugindir claws-mail.
CI builds and tests the plugin against every version listed in
ci/claws-versions.json, on both Linux and
Windows. Each combination gets its own release artifact.
A scheduled workflow (.github/workflows/check-claws-version.yml) checks the
Claws Mail release feed weekly. When it finds a version not yet in
ci/claws-versions.json, it trial-builds the plugin against it on both OSes.
If that succeeds, it opens a pull request adding the version to the supported
list; if it fails, it opens an issue instead.
GPL-3.0-or-later, see LICENSE.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/claws-mail-mcp-plugin)<a href="https://allmcps.com/mcp/claws-mail-mcp-plugin"><img src="https://allmcps.com/api/badge/claws-mail-mcp-plugin?style=directory" alt="Claws Mail MCP Plugin on AllMCPs" /></a>