Back to MCP directory
publicPublicdnsLocal runtime

mcp-server-implement

该项目是一个包含五个MCP服务器的集合,可集成到Claude Desktop中,提供Line消息推送、邮件收发、网页抓取、Word文档操作和文件系统管理等功能。

article

README

🚀 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",
  // 此处原文档未完整,保持原样
}
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client