MM

mjknowles/matrix-mcp-server

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

57 stars 26 forks 품질 69 트렌드 0MIT

mjknowles/matrix-mcp-server는 MCP 서버 후보자가 https://github.com/mjknowles/matrix-mcp-server.에서 가져온

개요

mjknowles/matrix-mcp-server는 MCP 서버 후보자가 https://github.com/mjknowles/matrix-mcp-server.에서 가져온

개요(AI 번역)

Matrix homeserver 기능에 안전한 액세스를 제공하는 포괄적 인 ** Model Context Protocol (MCP) 서버**. TypeScript 내장, 이 서버는 MCP 클라이언트가 Matrix 룸, 메시지, 사용자 및 표준화된 인터페이스를 통해 상호 작용할 수 있습니다.

특징

  • OAuth 2.0 인증** 토큰 교환 지원
  • ** 15 Matrix Tools ** 기능 계층으로 구성
  • configurable endpoints를 가진 **Multi-homeserver 지원 **
  • ܧReal-time Operations with ephemeral client 관리
  • ♨Production Ready 포괄적인 오류 처리
  • R Rich Responses 상세한 Matrix 데이터

빠른 시작

# 필수품

  • **Node.js 20 + ** 및 npm
  • **Matrix homeserver ** 액세스 (Synapse, Dendrite 등)
  • MCP 클라이언트 (Claude Desktop, MCP 연장 VS Code 등)

설치

개발 모드

사용 가능한 도구

✈ Tier 0: 읽기 전용 도구

** 룸 도구 **

  • list-joined-rooms - 모든 객실을 접속해

  • No 매개변수 required

  • 객실명, ID, 회원수

  • get-room-info - 상세 객실 정보 얻기

  • roomId (string): 매트릭스 룸 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 information

    • roomId (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 room

    • roomId (string): Matrix room ID
    • Returns display names and user IDs of joined members

Message Tools

  • get-room-messages - Retrieve recent messages from a room

    • roomId (string): Matrix room ID
    • limit (number, default: 20): Maximum messages to retrieve
    • Returns formatted message content including text and images
  • get-messages-by-date - Filter messages by date range

    • roomId (string): Matrix room ID
    • startDate (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 count

    • roomId (string): Matrix room ID
    • limit (number, default: 10): Maximum users to return
    • Returns users ranked by message activity

User Tools

  • get-user-profile - Get profile information for any user

    • targetUserId (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
GitHub에서 전체 README 보기

설치

npx @modelcontextprotocol/inspector
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →