使用说明
桌面MCP
用于桌面应用程序的MCP服务器——让AI助手访问Thunderbird(电子邮件、日历、联系人)和Firefox(浏览器自动化)。
包裹
| 包 | 描述 | npm |
|---|---|---|
| 雷鸟mcp | 通过Thunderbird发送电子邮件、日历、任务、联系人和订阅源 | npm i thunderbird-mcp |
| 火狐mcp | 通过Firefox实现浏览器自动化 | npm i firefox-mcp |
| @桌面mcp/共享 | 共享后端:本机消息传递、MCP服务器工厂、安装助手 | 内部 |
建筑
这两个包都遵循相同的模式:
MCP Client <--HTTP--> Node.js Server <--native messaging--> Browser Extension
- 可流式传输的HTTP AI客户端和服务器之间的传输(MCP SDK)
- 本地消息传递 服务器和扩展之间的(stdin/stdout,4字节框架)
- 共享
BaseBrowserAPI类处理基于关联ID的请求/响应 - 共享
createServer工厂设置McpServer+HTTP+插件加载
快速开始
git clone https://github.com/hmblair/desktop-mcp.git
cd desktop-mcp
npm install
npm run build -w packages/shared
# Thunderbird
npm run build -w packages/thunderbird
cd packages/thunderbird && make && make install
# Firefox
npm run build -w packages/firefox
cd packages/firefox && make && make install
有关详细的设置说明,请参阅每个软件包的README。
发展
npm run build -w packages/shared # Build shared (required first)
npm run build -w packages/firefox # Build firefox server + extension
npm run build -w packages/thunderbird # Build thunderbird server
npm run test -w packages/firefox # Smoke test firefox
npm run test -w packages/thunderbird # Smoke test thunderbird
致谢
该项目最初是两个独立的分支,自那以后都进行了实质性的重写:
- 雷鸟mcp --分叉自 TKasperczyk/雷鸟mcp Tomasz Kasperczyk。
- 火狐mcp --分叉自 eyalzh/浏览器控件mcp 通过eyalzh(命名
firefox-mcp叉的时候)。
许可证
MIT。看 许可证 以及个人套餐许可证。