filesystem vs Java-MCP-Server-For-SMTP-Mailing
并排对比,帮你在这两个 MCP server 之间做选择。
filesystem by modelcontextprotocol | Java-MCP-Server-For-SMTP-Mailing by RayenMalouche | |
|---|---|---|
| Stars | ★ 85,748 | ★ 2 |
| 30天用量 | — | — |
| 综合分 | 77 | 32 |
| 官方 | ✓ | — |
| 分类 | 本地文件系统开发者工具效率工具 | 沟通协作开发者工具效率工具 |
| 实现语言 | TypeScript | Java |
| 最近提交 | 本月 | 9 个月前 |
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
Java-MCP-Server-For-SMTP-Mailing · 概述
基于Java的MCP服务器,通过多种传输协议提供SMTP邮件发送功能。
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
Java-MCP-Server-For-SMTP-Mailing · 使用场景
- AI助手通过邮件发送自动化通知和警报
- 将邮件功能集成到自动化系统的工作流中
- 在开发环境中测试邮件功能
filesystem · 安装
安装
使用 NPX
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/allowed/directory"
]
}
}
}使用 Docker
{
"mcpServers": {
"filesystem": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--mount", "type=bind,src=/path/to/allowed/dir,dst=/projects/allowed/dir",
"mcp/filesystem",
"/projects"
]
}
}
}VS Code 扩展
点击 README 中的安装按钮直接在 VS Code 中安装。
Java-MCP-Server-For-SMTP-Mailing · 安装
安装
- 克隆仓库
git clone https://github.com/RayenMalouche/Java-MCP-Server-For-SMTP-Mailing.git
cd Java-MCP-Server-For-SMTP-Mailing- 在
Application.java中配置邮件设置
private static final String SMTP_USERNAME = "your-email@gmail.com";
private static final String SMTP_PASSWORD = "your-app-password";
private static final String SMTP_HOST = "smtp.gmail.com";
private static final int SMTP_PORT = 587;
private static final boolean SMTP_TLS_ENABLED = true;- 构建项目
mvn clean package- 使用 STDIO 传输运行服务器以供 Claude Desktop 使用
java -jar target/RayenMalouche-0.0.1-SNAPSHOT.jar --stdioClaude Desktop 配置
添加到您的 config.json 中:
{
"mcpServers": {
"smtp-email-server": {
"command": "<JAVA_EXECUTABLE_PATH>",
"args": [
"-jar",
"<FULL_PATH_TO_PROJECT>/target/RayenMalouche-0.0.1-SNAPSHOT.jar",
"--stdio"
],
"env": {
"JAVA_HOME": "<JAVA_HOME_PATH>"
}
}
}
}