Claws Mail MCP Plugin logo

Claws Mail MCP Plugin

Connects a running Claws Mail client to local AI tools for reading, managing, composing, and sending email.

Install Claws Mail MCP Plugin

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
http://127.0.0.1:8765/mcp

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Overview

The claws-mail-mcp-plugin MCP server runs inside Claws Mail and exposes the active mail client through a loopback-only HTTP endpoint using JSON-RPC over MCP. It lets MCP-capable AI tools work with configured accounts to read and search mail, manage folders and flags, compose messages, reply, forward, and send or receive mail. A bearer token protects the endpoint, while endpoint settings and read-only mode are stored in the Claws Mail configuration directory. Use it when an AI tool runs on the same machine as Claws Mail and needs access to that client’s existing mail setup.

Use cases

  • Search messages across configured Claws Mail folders
  • Draft replies and forward selected messages
  • Send mail through existing Claws Mail accounts
  • Manage folders and message flags with an AI client
  • Restrict AI access to read-only mail operations

Key features

  • Loopback-only HTTP MCP endpoint
  • Bearer-token authentication
  • Mail, folder, search, and message actions
  • Compose, reply, forward, send, and receive support
  • Configurable read-only mode
  • Generated MCP client configuration

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 2d ago

Recent health check succeeded.

4/4 checks healthy over the last 22d

How Claws Mail MCP Plugin works

What claws-mail-mcp-plugin MCP server does

The claws-mail-mcp-plugin MCP server adds an MCP interface to a running Claws Mail desktop client. Rather than connecting directly to a mail provider, it exposes the accounts and mail data already configured in Claws Mail. An MCP-capable AI application can use that interface to inspect folders and messages, search mail, change folder and message flags, and perform common message actions.

Supported operations include composing new messages, replying, forwarding, sending, and receiving mail. The plugin also provides a status tool and a plugin_version tool, according to the project’s build and version documentation. A read-only mode can be enabled through configuration when message-changing or sending operations should not be available.

How it works

The plugin is loaded by Claws Mail and runs in the same process as the mail client. It starts a local HTTP service on 127.0.0.1; MCP requests use JSON-RPC and the endpoint is protected with a bearer token. Because the service binds to the loopback address, an AI client must run on the same computer as Claws Mail.

On each start, the plugin writes a client configuration file named mcp_client.json into the Claws Mail configuration directory. That file contains the active endpoint URL and token, allowing the values to be copied into an MCP client configuration. The registry entry is intended for discovery only because the registry does not accept loopback URLs as remote connection endpoints.

Setup and configuration

Prebuilt plugin files are available for supported Claws Mail and operating-system combinations. Install the matching binary in the directory reported by pkg-config --variable=plugindir claws-mail, restart Claws Mail, and enable the plugin under Configuration > Plugins if it does not load automatically.

The claws-mail-mcp-plugin MCP server reads its endpoint, port, bearer token, and read-only setting from mcp_pluginrc in the Claws Mail configuration directory. The generated mcp_client.json provides the resulting connection details. Claude Desktop must be configured locally; its custom connector flow uses Anthropic’s servers and cannot reach a loopback endpoint.

Building from source requires Meson, Ninja, a C compiler, Claws Mail development files, GTK3, GLib, GnuTLS, libgcrypt, and enchant. Linux and Windows MSYS2 build instructions use the same Meson configuration and compilation commands.

Tools and capabilities

The claws-mail-mcp-plugin MCP server supports:

  • Reading folders and messages
  • Searching mail
  • Composing, replying to, and forwarding messages
  • Sending and receiving mail through configured accounts
  • Creating or managing folders and message flags
  • Reporting plugin status and compiled version
  • Restricting operation to read-only mode through configuration

The exact available actions depend on the running Claws Mail instance, its configured accounts, and whether read-only mode is enabled.

Limitations and notes

This is a local integration, not a hosted mail service. Only processes on the same machine can reach the endpoint, and Claws Mail must be running with the plugin loaded. The bearer token should be treated as a secret when copied into client configuration.

Prebuilt binaries are tied to supported Claws Mail versions and operating systems, with separate release artifacts for each tested combination. Source builds require the matching Claws Mail development environment. The project is licensed under GPL-3.0-or-later.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Claws Mail MCP Plugin

claws-mail-mcp-plugin is an MCP server that connects MCP-capable AI tools to a running Claws Mail client through a local bearer-token HTTP endpoint. Its main tools support reading folders and messages, searching mail, managing folders and flags, composing, replying, forwarding, sending, and receiving mail through configured accounts.

Install the release binary matching your operating system and Claws Mail version in the Claws Mail plugin directory, then restart Claws Mail. Enable it under Configuration > Plugins if needed. The directory is typically reported by `pkg-config --variable=plugindir claws-mail`.

Connect Claude Code with the local HTTP endpoint and bearer token from `mcp_client.json`. The documented command uses `claude mcp add --transport http claws-mail http://127.0.0.1:8765/mcp` and passes the token in an Authorization header.

Yes, read-only mode is configurable in `mcp_pluginrc` in the Claws Mail configuration directory. Enable it when the connected AI tool should inspect and search mail without performing changing or sending operations.

Yes, Claude Desktop can connect when its local developer configuration is edited with the endpoint and token. Do not use Claude Desktop’s custom connector interface, because that connection runs from Anthropic’s servers and cannot reach the loopback-only service.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewClaws Mail MCP Plugin AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/claws-mail-mcp-plugin?style=directory)](https://allmcps.com/mcp/claws-mail-mcp-plugin)
HTML Embed
<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>