MCP服务器集合
此存储库托管了五个模型上下文协议(MCP)服务器,您可以将其挂载到Claude Desktop中:
- 线路机器人
- 电子邮件_mcp
- 获取
- word文档服务
- 文件系统
🚀 快速开始
- 线路机器人(在不同的终端)
git clone https://github.com/iamkaia/email-mcp-server-simple.git
cd email-mcp-server-simple
## **Set up Python env and install requirement thing(for _email_mcp_, )**
python -m venv .venv
source .venv/bin/activate # Windows: .\.venv\Scripts\activate
pip install -r requirements.txt
### Fill `.env`** (for `email_mcp` only—do **not** commit):
# SMTP
SMTP_SERVER=smtp.example.com
SMTP_PORT=587
SMTP_USERNAME=you@example.com
SMTP_PASSWORD=your_smtp_password
# IMAP
IMAP_SERVER=imap.example.com
IMAP_PORT=993
IMAP_USERNAME=you@example.com
IMAP_PASSWORD=your_imap_password
## start
uvicorn main:app --reload --host 0.0.0.0 --port 8000- 线路机器人mcp(在不同的终端) :
# Clone the repository
git clone git@github.com:line/line-bot-mcp-server.git
cd line-bot-mcp-server && npm install && npm run build- fetch(在不同的终端中):
pip install mcp-server-fetch
python -m mcp_server_fetch- Word MCP服务器(不同终端):
# Clone the repository
git clone https://github.com/GongRzhe/Office-Word-MCP-Server.git
cd Office-Word-MCP-Server
# Install dependencies
pip install -r requirements.txt
#start
python setup_mcp.py- 文件系统(在不同的终端中):
# filesystem (via NPX) (you can ignore this step if you have nide and npx)
npx -y @modelcontextprotocol/server-filesystem \
"/Users/username/Desktop" \
"/path/to/other/allowed/dir"______________________________________________________________________
🔧 Claude桌面配置
编辑您的 claude_desktop_config.json 生成每个MCP工具:
{
"mcpServers": {
"line-bot": {
"command": "node",
"args": [
"to\\the\\path\\line-bot-mcp-server\\dist\\index.js"
],
"env": {
"CHANNEL_ACCESS_TOKEN" : "xxx",
"DESTINATION_USER_ID" : "xxx"
}
},
"email_mcp": {
"command": "to\\the\\path\\mcp-proxy.exe",
"args": [
"http://localhost:9000/mcp"
]
},
"fetch": {
"command": "python",
"args": ["-m", "mcp_server_fetch"]
},
"word-document-server": {
"command": "to\\the\\path\\python.exe",
"args": [
"to\\the\\path\\word_server.py"
],
"env": {
"PYTHONPATH": "to\\the\\path\\Office-Word-MCP-Server"
}
},
"filesystem": {
"command": "npx",
"args": [
"--yes",
"@modelcontextprotocol/server-filesystem",
"/Users/username/Desktop",
"/path/to/other/allowed/dir"
]
}
}
}保存后, 退出并重新启动 克劳德桌面。这🔨工具菜单将列出所有可用的MCP工具。
______________________________________________________________________
📦 服务器和工具
1. 线路机器人
- 工具:
send_line_message,broadcast_flex_message,broadcast_text_message… - 推 将消息添加到Line聊天中。
2. 电子邮件_mcp
- 工具:
send_email,list_recent_emails
3. 获取
- 工具:
fetch_page - 输入:
url⇒ 输出:标题、标题、摘录。
4. word文档服务
- 工具:
- create_document, add_heading, insert_table, format_text, search_replace, …
- 操纵 以编程方式创建DOCX文件。
5. 文件系统
- 工具:
- read_file, write_file, list_directory, search_files, get_file_info, …
- 操作 仅在已挂载的目录中。
toollist详细介绍 tools.md
______________________________________________________________________
🎯 JSON‑RPC调用示例(仅供参考)
// send_email
{
"tool":"send_email",
"input":{"params":{
"to":["friend@example.com"],
"subject":"Hello",
"body":"This is a test.",
"html":false
}}
}
// list_recent_emails
{
"tool":"list_recent_emails",
"input":{"params":{
"limit":3
}}
}
// fetch_page
{
"tool":"fetch_page",
"input":{"params":{"url":"https://example.com"}}
}
// create a Word doc
{
"tool":"create_document",
"input":{"params":{"filename":"report.docx","title":"Sales Report"}}
}
// filesystem read
{
"tool":"read_file",
"input":{"params":{"path":"to//the//path//notes.txt"}}
}📃 许可证
所有服务器均获得MIT许可。有关详细信息,请参阅每个子文件夹的许可证。
