SMTP邮件MCP服务器
一个为SMTP邮件服务设计的模型上下文协议(MCP)服务器。
快速入门
-
克隆仓库: git clone https://github.com/samihalawa/mcp-server-smtp.git cd mcp-server-smtp
-
安装依赖: npm install
-
构建项目: npm run build
-
启动服务器: npm start
-
配置SMTP服务器,例如添加配置: add-smtp-config( name: "Gmail", host: "smtp.gmail.com", port: 587, secure: false, auth: { user: "your-email@gmail.com", pass: "your-app-password" }, isDefault: true )
-
创建并发送邮件模板: add-email-template( name: "欢迎邮件", subject: "欢迎加入{{company}}!", body: "
你好 {{name}}
欢迎加入 {{company}}!
" )send-email( to: [{ email: "user@example.com", name: "用户" }], templateId: "welcome-email", templateData: { name: "用户", company: "公司名" } )