proton-bridge-mcp 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ __pycache__/
2
+ *.pyc
3
+ .venv/
4
+ build/
5
+ dist/
6
+ *.egg-info/
7
+ .DS_Store
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Alpha Romer Coma
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,74 @@
1
+ Metadata-Version: 2.4
2
+ Name: proton-bridge-mcp
3
+ Version: 1.0.0
4
+ Summary: Thin Python wrapper (pip/uvx installable) for the proton-bridge-mcp MCP server, which reads/searches Proton Mail via Proton Mail Bridge. Requires Node.js; runs the real Node implementation via npx.
5
+ Project-URL: Homepage, https://github.com/alpharomercoma/proton-bridge-mcp-py
6
+ Project-URL: Upstream (Node implementation), https://github.com/alpharomercoma/proton-bridge-mcp
7
+ Project-URL: Issues, https://github.com/alpharomercoma/proton-bridge-mcp-py/issues
8
+ Author: Alpha Romer Coma
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Keywords: claude,email,imap,mcp,model-context-protocol,proton-bridge,proton-mail
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Topic :: Communications :: Email
16
+ Requires-Python: >=3.8
17
+ Description-Content-Type: text/markdown
18
+
19
+ # proton-bridge-mcp (Python wrapper)
20
+
21
+ A `pip`/`uvx`-installable wrapper around [`proton-bridge-mcp`](https://github.com/alpharomercoma/proton-bridge-mcp), an [MCP](https://modelcontextprotocol.io) server for reading and searching Proton Mail via Proton Mail Bridge.
22
+
23
+ **This package contains no Python implementation.** It's a thin shim that execs into the real Node.js implementation via `npx`. It exists so Python-oriented MCP tooling (`uvx`, `pipx`, `pip install`) can install and run it without needing to know it's Node underneath.
24
+
25
+ Unofficial, community project. Not affiliated with or endorsed by Proton AG.
26
+
27
+ ## Requirements
28
+
29
+ - **Node.js 18+** must be installed and on `PATH` (specifically `npx`). This wrapper cannot function without it — there is no pure-Python fallback.
30
+ - A Proton Mail plan that supports Bridge, with [Proton Mail Bridge](https://proton.me/mail/bridge) running
31
+
32
+ ## Install
33
+
34
+ ```bash
35
+ pip install proton-bridge-mcp
36
+ # or
37
+ uvx proton-bridge-mcp
38
+ ```
39
+
40
+ ## Setup
41
+
42
+ Run the interactive setup wizard once (fetches and pins Bridge's TLS certificate, verifies login, writes credentials to `~/.config/proton-bridge-mcp/`, chmod 600):
43
+
44
+ ```bash
45
+ proton-bridge-mcp-setup
46
+ ```
47
+
48
+ ## Register with an MCP client
49
+
50
+ **Claude Code:**
51
+
52
+ ```bash
53
+ claude mcp add proton-mail -s user -- proton-bridge-mcp
54
+ ```
55
+
56
+ **Claude Desktop / other MCP clients:**
57
+
58
+ ```json
59
+ {
60
+ "mcpServers": {
61
+ "proton-mail": {
62
+ "command": "proton-bridge-mcp"
63
+ }
64
+ }
65
+ }
66
+ ```
67
+
68
+ ## Why does this exist separately from the npm package?
69
+
70
+ The actual server (`list_mailboxes`, `list_messages`, `search_messages`, `get_message` tools; TLS certificate pinning instead of disabled verification; the setup wizard) lives entirely in the Node.js project: **https://github.com/alpharomercoma/proton-bridge-mcp**. That's the canonical implementation, source of truth for behavior, and where issues/PRs about actual functionality belong. This repo only exists to make it reachable from `pip`/`uvx` workflows.
71
+
72
+ ## License
73
+
74
+ MIT — see [LICENSE](LICENSE).
@@ -0,0 +1,56 @@
1
+ # proton-bridge-mcp (Python wrapper)
2
+
3
+ A `pip`/`uvx`-installable wrapper around [`proton-bridge-mcp`](https://github.com/alpharomercoma/proton-bridge-mcp), an [MCP](https://modelcontextprotocol.io) server for reading and searching Proton Mail via Proton Mail Bridge.
4
+
5
+ **This package contains no Python implementation.** It's a thin shim that execs into the real Node.js implementation via `npx`. It exists so Python-oriented MCP tooling (`uvx`, `pipx`, `pip install`) can install and run it without needing to know it's Node underneath.
6
+
7
+ Unofficial, community project. Not affiliated with or endorsed by Proton AG.
8
+
9
+ ## Requirements
10
+
11
+ - **Node.js 18+** must be installed and on `PATH` (specifically `npx`). This wrapper cannot function without it — there is no pure-Python fallback.
12
+ - A Proton Mail plan that supports Bridge, with [Proton Mail Bridge](https://proton.me/mail/bridge) running
13
+
14
+ ## Install
15
+
16
+ ```bash
17
+ pip install proton-bridge-mcp
18
+ # or
19
+ uvx proton-bridge-mcp
20
+ ```
21
+
22
+ ## Setup
23
+
24
+ Run the interactive setup wizard once (fetches and pins Bridge's TLS certificate, verifies login, writes credentials to `~/.config/proton-bridge-mcp/`, chmod 600):
25
+
26
+ ```bash
27
+ proton-bridge-mcp-setup
28
+ ```
29
+
30
+ ## Register with an MCP client
31
+
32
+ **Claude Code:**
33
+
34
+ ```bash
35
+ claude mcp add proton-mail -s user -- proton-bridge-mcp
36
+ ```
37
+
38
+ **Claude Desktop / other MCP clients:**
39
+
40
+ ```json
41
+ {
42
+ "mcpServers": {
43
+ "proton-mail": {
44
+ "command": "proton-bridge-mcp"
45
+ }
46
+ }
47
+ }
48
+ ```
49
+
50
+ ## Why does this exist separately from the npm package?
51
+
52
+ The actual server (`list_mailboxes`, `list_messages`, `search_messages`, `get_message` tools; TLS certificate pinning instead of disabled verification; the setup wizard) lives entirely in the Node.js project: **https://github.com/alpharomercoma/proton-bridge-mcp**. That's the canonical implementation, source of truth for behavior, and where issues/PRs about actual functionality belong. This repo only exists to make it reachable from `pip`/`uvx` workflows.
53
+
54
+ ## License
55
+
56
+ MIT — see [LICENSE](LICENSE).
@@ -0,0 +1,31 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "proton-bridge-mcp"
7
+ version = "1.0.0"
8
+ description = "Thin Python wrapper (pip/uvx installable) for the proton-bridge-mcp MCP server, which reads/searches Proton Mail via Proton Mail Bridge. Requires Node.js; runs the real Node implementation via npx."
9
+ readme = "README.md"
10
+ license = "MIT"
11
+ requires-python = ">=3.8"
12
+ authors = [{ name = "Alpha Romer Coma" }]
13
+ keywords = ["mcp", "model-context-protocol", "proton-mail", "proton-bridge", "imap", "claude", "email"]
14
+ classifiers = [
15
+ "Programming Language :: Python :: 3",
16
+ "License :: OSI Approved :: MIT License",
17
+ "Operating System :: OS Independent",
18
+ "Topic :: Communications :: Email",
19
+ ]
20
+
21
+ [project.urls]
22
+ Homepage = "https://github.com/alpharomercoma/proton-bridge-mcp-py"
23
+ "Upstream (Node implementation)" = "https://github.com/alpharomercoma/proton-bridge-mcp"
24
+ Issues = "https://github.com/alpharomercoma/proton-bridge-mcp-py/issues"
25
+
26
+ [project.scripts]
27
+ proton-bridge-mcp = "proton_bridge_mcp.__main__:run_server"
28
+ proton-bridge-mcp-setup = "proton_bridge_mcp.__main__:run_setup"
29
+
30
+ [tool.hatch.build.targets.wheel]
31
+ packages = ["src/proton_bridge_mcp"]
@@ -0,0 +1,12 @@
1
+ """Thin Python wrapper around the @alpharomercoma/proton-bridge-mcp npm package.
2
+
3
+ This project has no Python implementation of the MCP server itself — it
4
+ shells out to the real (Node.js) implementation via `npx`, so pip/uvx users
5
+ who prefer a Python-shaped install don't need to know it's Node underneath.
6
+
7
+ Source of truth: https://github.com/alpharomercoma/proton-bridge-mcp
8
+ """
9
+
10
+ __version__ = "1.0.0"
11
+
12
+ NPM_PACKAGE = "@alpharomercoma/proton-bridge-mcp"
@@ -0,0 +1,35 @@
1
+ import os
2
+ import shutil
3
+ import sys
4
+
5
+ from . import NPM_PACKAGE
6
+
7
+
8
+ def _require_npx():
9
+ npx = shutil.which("npx")
10
+ if npx:
11
+ return npx
12
+ sys.stderr.write(
13
+ "proton-bridge-mcp: this package is a thin wrapper around the Node.js "
14
+ f"implementation ({NPM_PACKAGE}) and requires Node.js/npx on PATH.\n"
15
+ "Install Node.js 18+ from https://nodejs.org and try again.\n"
16
+ )
17
+ sys.exit(1)
18
+
19
+
20
+ def run_server():
21
+ """Console script: proton-bridge-mcp — runs the MCP server over stdio."""
22
+ npx = _require_npx()
23
+ # execvp replaces this process outright, so the MCP client talks directly
24
+ # to the Node process over stdio with no buffering/wrapping in between.
25
+ os.execvp(npx, [npx, "-y", NPM_PACKAGE, *sys.argv[1:]])
26
+
27
+
28
+ def run_setup():
29
+ """Console script: proton-bridge-mcp-setup — runs the interactive setup wizard."""
30
+ npx = _require_npx()
31
+ os.execvp(npx, [npx, "-y", "-p", NPM_PACKAGE, "proton-bridge-mcp-setup", *sys.argv[1:]])
32
+
33
+
34
+ if __name__ == "__main__":
35
+ run_server()