Plugin for Claws Mail that provides an MCP server
git clone https://github.com/it-atelier-gn/claws-mail-mcp-pluginCLAWS_MCP_TOKENResumen de MCP Servers
# claws-mail-mcp-plugin
[](https://github.com/it-atelier-gn/claws-mail-mcp-plugin/actions/workflows/ci.yml)
[](ci/claws-versions.json)
[](LICENSE)
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](https://github.com/it-atelier-gn/claws-mail-mcp-plugin/releases), 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:
1. Copy it into your Claws Mail plugin directory (`pkg-config --variable=plugindir claws-mail`, typically `~/.claws-mail/plugins` or `%APPDATA%\Claws-mail\plugins` on Windows).
2. Restart Claws Mail.
3. Enable it under Configuration > Plugins if it is not loaded automatically.
To build from source instead, see [Building](#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
`packaging/registry/server.json` is published to the [MCP registry](https://registry.modelcontextprotocol.io) 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.
---
## Building
Requires Meson, Ninja, a C compiler, and the Claws Mail development files
(GTK3, GLib, GnuTLS, libgcrypt, 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.sh
export PKG_CONFIG_PATH="$PWD/.claws-sdk/lib/pkgconfig"
```
Then configure and build:
```
meson setup build
meson compile -C build
meson test -C build
```
The plugin is built at `build/mcp_plugin.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 mingw-w64-x86_64-enchant
```
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`.
### 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`.
---
## Supported Claws Mail versions
CI builds and tests the plugin against every version listed in
[`ci/claws-versions.json`](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.
---
## License
GPL-3.0-or-later, see [LICENSE](LICENSE).
Lo que la gente pregunta sobre claws-mail-mcp-plugin
¿Qué es it-atelier-gn/claws-mail-mcp-plugin?
+
it-atelier-gn/claws-mail-mcp-plugin es mcp servers para el ecosistema de Claude AI. Plugin for Claws Mail that provides an MCP server Tiene 0 estrellas en GitHub y se actualizó por última vez today.
¿Cómo se instala claws-mail-mcp-plugin?
+
Puedes instalar claws-mail-mcp-plugin clonando el repositorio (https://github.com/it-atelier-gn/claws-mail-mcp-plugin) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.
¿Es seguro usar it-atelier-gn/claws-mail-mcp-plugin?
+
it-atelier-gn/claws-mail-mcp-plugin aún no ha sido auditado por nuestro agente de seguridad. Revisa el repositorio original en GitHub antes de usarlo en producción.
¿Quién mantiene it-atelier-gn/claws-mail-mcp-plugin?
+
it-atelier-gn/claws-mail-mcp-plugin es mantenido por it-atelier-gn. La última actividad registrada en GitHub es de today, con 0 issues abiertos.
¿Hay alternativas a claws-mail-mcp-plugin?
+
Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.
Despliega claws-mail-mcp-plugin en tu cloud
Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.
¿Mantienes este repo? Añade un badge a tu README
Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.
[](https://claudewave.com/repo/it-atelier-gn-claws-mail-mcp-plugin)<a href="https://claudewave.com/repo/it-atelier-gn-claws-mail-mcp-plugin"><img src="https://claudewave.com/api/badge/it-atelier-gn-claws-mail-mcp-plugin" alt="Featured on ClaudeWave: it-atelier-gn/claws-mail-mcp-plugin" width="320" height="64" /></a>Más MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
The fastest path to AI-powered full stack observability, even for lean teams.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!