Mcp Server Implement

Mcp Server Implement

🚀 MCP 服务器集合

本仓库包含五个模型上下文协议(MCP)服务器,可集成至 Claude 桌面环境,为您提供多样化的功能支持。

🚀 快速开始

以下为您详细介绍每个服务器的启动步骤,需在不同的终端分别操作:

line-bot

# 克隆仓库
git clone https://github.com/iamkaia/email-mcp-server-simple.git
# 进入项目目录
cd email-mcp-server-simple

# 设置 Python 环境并安装依赖项(仅适用于 _email_mcp_)
python -m venv .venv
source .venv/bin/activate      # Windows: .\.venv\Scripts\activate
pip install -r requirements.txt

# 填写 `.env` 文件(仅适用于 `email_mcp`,请勿提交):
# 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

# 运行服务器
uvicorn main:app --reload --host 0.0.0.0 --port 8000

email_mcp

# 克隆仓库
git clone https://github.com/iamkaia/email-mcp-server-simple.git
# 进入项目目录
cd email-mcp-server-simple

# 设置 Python 环境并安装依赖项
python -m venv .venv
source .venv/bin/activate      # Windows: .\.venv\Scripts\activate
pip install -r requirements.txt

# 填写 `.env` 文件(请勿提交)
SMTP_SERVER=smtp.example.com
SMTP_PORT=587
SMTP_USERNAME=you@example.com
SMTP_PASSWORD=your_smtp_password

IMAP_SERVER=imap.example.com
IMAP_PORT=993
IMAP_USERNAME=you@example.com
IMAP_PASSWORD=your_imap_password

# 运行服务器
uvicorn main:app --reload --host 0.0.0.0 --port 8001

fetch

# 克隆仓库
git clone https://github.com/yourusername/fetch-server.git
# 进入项目目录
cd fetch-server

# 设置 Python 环境并安装依赖项
python -m venv .venv
source .venv/bin/activate      # Windows: .\.venv\Scripts\activate
pip install -r requirements.txt

# 运行服务器
uvicorn main:app --reload --host 0.0.0.0 --port 8002

word-document-service

# 克隆仓库
git clone https://github.com/yourusername/word-service.git
# 进入项目目录
cd word-service

# 设置 Python 环境并安装依赖项
python -m venv .venv
source .venv/bin/activate      # Windows: .\.venv\Scripts\activate
pip install -r requirements.txt

# 运行服务器
uvicorn main:app --reload --host 0.0.0.0 --port 8003

filesystem

# 克隆仓库
git clone https://github.com/yourusername/filesystem-service.git
# 进入项目目录
cd filesystem-service

# 设置 Python 环境并安装依赖项
python -m venv .venv
source .venv/bin/activate      # Windows: .\.venv\Scripts\activate
pip install -r requirements.txt

# 运行服务器
uvicorn main:app --reload --host 0.0.0.0 --port 8004

🛠️ 配置 Claude 桌面环境

您需要编辑 config.json 文件,添加以下内容,以完成服务器与 Claude 桌面环境的集成:

{
"servers": [
{
"name": "line-bot",
"url": "http://localhost:8000"
},
{
"name": "email-mcp",
"url": "http://localhost:8001"
},
{
"name": "fetch",
"url": "http://localhost:8002"
},
{
"name": "word-document-service",
"url": "http://localhost:8003"
},
{
"name": "filesystem",
"url": "http://localhost:8004"
}
]
}

📋 工具列表

详细工具介绍

可查看 tools.md 获取更多信息。

💻 使用示例

基础用法

以下是示例 JSON-RPC 调用,仅供参考:

// 发送电子邮件
{
"tool": "send_email",
"input": {
"params": {
"to": ["friend@example.com"],
"subject": "Hello",
"body": "This is a test.",
"html": false
}
}
}

// 列出最近的电子邮件
{
"tool": "list_recent_emails",
// 此处原文档未完整,保持原样
}
  • 0 关注
  • 0 收藏,19 浏览
  • system 提出于 2025-10-03 10:18

相似服务问题

相关AI产品