BedVibe Mail Bridge
A local Windows desktop app and MCP server that allows AI assistants to read, search, and draft replies for Gmail, but enforces human confirmation for all destructive actions like sending, deleting, or unsubscribing.
README
BedVibe Mail Bridge
A local Windows desktop app + MCP bridge that lets an AI client (Claude Code / Codex) help with your Gmail — where nothing is sent, deleted, or unsubscribed without a human button-press.
Status: v0.1.0 — local developer preview / portfolio release. Gmail only. Run-from-source. Not a consumer installer, and not clone-and-connect — see Running it yourself below.

What it is
An AI assistant can search and read your mail, propose a cleanup plan, draft replies, and map your subscriptions — but the AI can only prepare. Every action that sends, deletes, or leaves your machine happens only when you click it in the desktop app.
- Local-first. No backend, no cloud, no tunnels. The AI talks to a local stdio MCP (no port).
- Read-first & human-gated. The MCP can read and queue; it cannot Trash, Send, or unsubscribe — those live behind a GUI confirmation and are structurally unreachable from the AI side.
- Private by construction. OAuth via Google's own consent (PKCE); refresh token & desktop secret
encrypted with Windows DPAPI in
%APPDATA%; telemetry stores domain hashes only. - No production credential in this repo (see Privacy below).
Features
- Read: recent inbox, Gmail-query search, read message, list threads.
- Cleanup: AI builds a plan only → you review in the GUI → confirm Move to Trash (reversible; permanent delete is implemented nowhere). Never-trash rules + an optional "unread promos >90d" policy.
- Replies: AI drafts → you verify recipient/subject/body → press Send.
- Subscription Cleanup: header-based detection + RFC 8058 one-click unsubscribe, GUI-confirmed,
no body links/cookies/redirects.

- MCP tools for Claude Code / Codex:
list_recent_emails,search_emails,read_email,list_threads,create_cleanup_plan,view_cleanup_plan,request_trash_selected_items,draft_reply,request_send_draft,list_connections_status.
Safety model (the point)
The destructive code (core/execute.py for Trash/Send, core/unsubscribe.py for one-click) is
imported only by the GUI, never by the MCP bridge. A prompt-injected email can at most create
a queued request you will see and can reject. Full design: ARCHITECTURE.md ·
SECURITY.md.
Running it yourself (developer preview)
Cloning this repo does not grant Gmail access. The repo ships the public BedVibe Client ID but not the client secret (it's DPAPI-encrypted on the maintainer's machine, gitignored). To run it, use development mode with your own free Google client:
- Google Cloud Console → new project → enable Gmail API.
- OAuth consent screen → External, Testing → add your Gmail as a Test user.
- Credentials → OAuth client ID → Desktop app → copy the Client ID.
copy app_config.example.json app_config.json, paste your Client ID (leave secret empty for PKCE).-
python -m venv .venv ; .venv\Scripts\activate pip install -r requirements.txt python selftest.py # structural check python run_app.py # Connections → Connect Gmail (read)
Then AI Client Connections → Connect Claude Code / Codex (shows the exact config change + backs it up) and ask your AI to analyze clutter or draft a reply. Full walkthrough: DEMO.md.
Provider status
| Provider | Status |
|---|---|
| Gmail | Active |
| Zoho Mail · Outlook / Microsoft 365 · Yahoo Mail · Google Drive | Planned (inactive cards) |
Project layout
core/ shared engine (oauth, gmail, execute, unsubscribe, safety, db, providers, …)
mcp_server/ stdio MCP bridge (10 read/prepare/queue tools)
gui/ PySide6 desktop app (9 screens)
docs/images/ screenshots
*.md README · ARCHITECTURE · SECURITY · DEMO · CHANGELOG · RELEASE_READINESS · DISTRIBUTION_OAUTH
Documentation
ARCHITECTURE · SECURITY · DEMO · DISTRIBUTION_OAUTH · RELEASE_READINESS · CHANGELOG
Privacy
No secret, token, DPAPI file, Gmail database, log, or real message content is committed — application
data lives in %APPDATA%\BedVibeMailBridge\ and is gitignored. The only credential in source is the
public desktop Client ID (public by design for installed apps).
License
Proprietary / source-available — see LICENSE. Copyright (c) 2026 Panagiotis Gkilis / BedVibe Studios. All rights reserved. Published for portfolio evaluation and technical review only; no copying, modification, redistribution, hosting, training, or commercial use without prior written permission.
Maintainer / contact: Panos Gkilis · BedVibe Studios · bedvibe@bedvibe.studio
v0.1.0 developer preview. A separate packaged consumer build (Google verification + installer) is future work, not this repo.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。