WeCom Bot MCP サーバー
WeCom (WeChat Work) ボット用のモデル コンテキスト プロトコル (MCP) 準拠のサーバー実装。
特徴
- 複数のメッセージ タイプのサポート:
- テキストメッセージ
- マークダウンメッセージ
- 画像メッセージ(base64)
- ファイルメッセージ
- @メンションサポート(ユーザーIDまたは電話番号経由)
- メッセージ履歴の追跡
- 設定可能なログシステム
- 完全な型注釈
- Pydanticベースのデータ検証
要件
- Python 3.10以上
- WeCom Bot Webhook URL(WeComグループ設定から取得)
インストール
WeCom Bot MCP サーバーをインストールするには、いくつかの方法があります。
1. 自動インストール(推奨)
Smithery の使用 (Claude デスクトップの場合):
Cline 拡張機能で VSCode を使用する:
- VSCodeマーケットプレイスからCline拡張機能をインストールする
- コマンドパレットを開く (Ctrl+Shift+P / Cmd+Shift+P)
- 「Cline: パッケージのインストール」を検索
- 「wecom-bot-mcp-server」と入力してEnterキーを押します。
2. 手動インストール
PyPIからインストール:
MCP を手動で構成します。
MCP 構成ファイルを作成または更新します。
構成
環境変数の設定
ログ管理
ログシステムは、クロスプラットフォームのログファイル管理にplatformdirs.user_log_dir()
を使用します。
- Windows:
C:\Users\<username>\AppData\Local\hal\wecom-bot-mcp-server
- Linux:
~/.local/share/hal/wecom-bot-mcp-server
- macOS:
~/Library/Application Support/hal/wecom-bot-mcp-server
ログ ファイルの名前はmcp_wecom.log
で、上記のディレクトリに保存されます。
使用法
サーバーの起動
使用例(MCP使用時)
直接APIの使用
メッセージを送信
ファイルを送信
画像を送信
発達
開発環境のセットアップ
- リポジトリをクローンします。
- 仮想環境を作成し、依存関係をインストールします。
テスト
コードスタイル
建築と出版
プロジェクト構造
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSEファイルを参照してください。
接触
- 著者: longhao
- メールアドレス: hal.long@outlook.com
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
FastMCP を使用して WeCom ボット経由でメッセージを送信するためのサーバー。非同期通信と、Webhook を介したメッセージ追跡をサポートします。
Related Resources
Related MCP Servers
- -securityFlicense-qualityAn MCP server that enables communication with users through Telegram. This server provides a tool to ask questions to users and receive their responses via a Telegram bot.Last updated -116JavaScript
- AsecurityAlicenseAqualityEnables sending messages to webhook endpoints through the MCP protocol, supporting custom content, display names, and avatar URLs.Last updated -13113JavaScriptMIT License
- AsecurityAlicenseAqualityAn MCP server that enables posting messages to Discord webhooks, allowing customization of content, username, and avatar URL.Last updated -10JavaScriptMIT License
- -security-license-qualityA Discord bot server that integrates with Mastra's MCP Bot component to provide intelligent assistance and answer questions about Mastra.ai through direct messages and slash commands.Last updated -1TypeScript