mcp-axigen
MCP(模型上下文协议)服务器 轴 邮件服务器集成。
概述
该项目在LLM(Claude、ChatGPT、Gemini)和Axigen邮件服务器之间提供了一座桥梁,通过MCP协议实现了人工智能驱动的电子邮件、日历、联系人和任务管理。
特性
- 电子邮件 (REST API+IMAP):列表、搜索、发送、回复、转发、移动、删除、批量操作
- 日历 (CalDAV):使用时区支持列出、创建、更新、删除事件
- 联系人 (REST+CardDAV):列出、搜索、创建、更新、删除联系人
- 任务 (CalDAV VTODO):列出、创建、更新、完成、删除任务
- 备注 (IMAP):列出、搜索、创建、更新、删除笔记
- 标签、文件夹、假期:完整邮箱管理
- OAuth2/OIDC:任何OIDC提供商(Cloudron、Keycloak、Auth0等)的多用户支持
47个MCP工具 总的来说。
快速开始
git clone https://github.com/silbox-ch/mcp-axigen.git
cd mcp-axigen
npm install
cp .env.example .env # Configure your Axigen credentials
npm run build
npm start配置
看 .env.example 所有可用选项。最小设置:
AXIGEN_HOST=mail.example.com
AXIGEN_PORT=443
AXIGEN_USERNAME=user@example.com
AXIGEN_PASSWORD=your-password
MCP_MODE=stdio使用Claude Desktop
添加到您的 claude_desktop_config.json:
{
"mcpServers": {
"axigen": {
"command": "node",
"args": ["/path/to/mcp-axigen/dist/index.js"],
"env": {
"AXIGEN_HOST": "mail.example.com",
"AXIGEN_USERNAME": "user@example.com",
"AXIGEN_PASSWORD": "your-password"
}
}
}
}与Claude.ai(远程MCP)一起使用
使用部署服务器 MCP_MODE=sse,然后在Claude.ai设置中添加公共URL:
https://your-server.example.com/mcp服务器支持MCP OAuth 2.0以实现安全的多用户身份验证。
建筑
Client (Claude/ChatGPT) --> https://your-server.com/mcp
|
Reverse Proxy (Caddy/nginx)
|
Node.js:3000
|
+---------------+---------------+
| | |
REST API IMAP CalDAV
(emails, (search, (calendar,
contacts, notes) tasks)
folders)文档
AXIGEN-API.md-Axigen REST API参考CHANGELOG.md-版本历史.env.example-所有配置选项
许可证
AGPL-3.0-参见 许可证 了解详情。
