
mjknowles/matrix-mcp-server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
mjknowles/matrix-mcp-server は [https://github.com/mjknowles/matrix-mcp-server.] からインポートされた MCP サーバーの候補です
概要
mjknowles/matrix-mcp-server は [https://github.com/mjknowles/matrix-mcp-server.] からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
マトリックスホームサーバー機能のセキュアなアクセスを提供する包括的なモデルコンテキストプロトコル(MCP)サーバー。 TypeScript で構築されたこのサーバーは、MCP クライアントが標準化されたインターフェイスにより、MCP クライアントが行列室、メッセージ、ユーザーなどとやり取りすることができます。
##特徴
- 🔐 OAuth 2.0 認証 トークン交換サポート
- ◀15 機能層によって編成されるマトリックスツール
- 設定可能なエンドポイントでマルチホームサーバーサポート
- 通常のクライアント管理とリアルタイムオペレーション**
- ◀ 生産準備完了** 包括的なエラー処理
- 詳細なマトリックスデータで [Rich Responses**]
クイックスタート
前提条件
- Node.js 20+ および npm -Matrix homeserverアクセス(Synapse、Dendriteなど) -MCPクライアント(Claude Desktop、MCP拡張付きVSコードなど)
インストール
###開発モード
利用可能なツール
447 層 0: 読み取り専用ツール
###ルームツール
-[list-joined-rooms - ユーザーが参加したすべての部屋を取得する
- パラメータは必要ありません
- 客室名、ID、会員数を返却
-[get-room-info - 詳しい客室情報を入手
- [
roomId(文字列): マトリックスルームID (例、[[T3])])
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Matrix MCP Server
A comprehensive Model Context Protocol (MCP) server that provides secure access to Matrix homeserver functionality. Built with TypeScript, this server enables MCP clients to interact with Matrix rooms, messages, users, and more through a standardized interface.
Features
- 🔐 OAuth 2.0 Authentication with token exchange support
- 📱 15 Matrix Tools organized by functionality tiers
- 🏠 Multi-homeserver Support with configurable endpoints
- 🔄 Real-time Operations with ephemeral client management
- 🚀 Production Ready with comprehensive error handling
- 📊 Rich Responses with detailed Matrix data
Quick Start
Prerequisites
- Node.js 20+ and npm
- Matrix homeserver access (Synapse, Dendrite, etc.)
- MCP client (Claude Desktop, VS Code with MCP extension, etc.)
Installation
# Clone the repository
git clone
cd matrix-mcp-server
# Install dependencies
npm install
# Build the project
npm run build
# Configure environment
cp .env.example .env
# Edit .env with your settings
# Start the server
npm start
Development Mode
# Start with hot reload (OAuth disabled for easier testing)
npm run dev
# Or start with OAuth enabled
ENABLE_OAUTH=true npm run dev
Available Tools
📖 Tier 0: Read-Only Tools
Room Tools
-
list-joined-rooms- Get all rooms the user has joined- No parameters required
- Returns room names, IDs, and member counts
-
get-room-info- Get detailed room informationroomId(string): Matrix room ID (e.g.,!roomid:domain.com)- Returns name, topic, settings, creator, and member count
-
get-room-members- List all members in a roomroomId(string): Matrix room ID- Returns display names and user IDs of joined members
Message Tools
-
get-room-messages- Retrieve recent messages from a roomroomId(string): Matrix room IDlimit(number, default: 20): Maximum messages to retrieve- Returns formatted message content including text and images
-
get-messages-by-date- Filter messages by date rangeroomId(string): Matrix room IDstartDate(string): ISO 8601 format (e.g.,2024-01-01T00:00:00Z)endDate(string): ISO 8601 format- Returns messages within the specified timeframe
-
identify-active-users- Find most active users by message countroomId(string): Matrix room IDlimit(number, default: 10): Maximum users to return- Returns users ranked by message activity
User Tools
-
get-user-profile- Get profile information for any usertargetUserId(string): Target user’s Matrix ID (e.g.,@user:domain.com)- Returns display name, avatar, presence, and shared rooms
-
get-my-profile- Get your own profile information- No parameters required
- Returns your profile, device info, and room statistics
インストール
npx @modelcontextprotocol/inspector