Mattermost MCP Server

by kakehashi-inc
Verified

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.

Integrations

  • Connects to Mattermost API endpoints to retrieve and process team and channel information, enabling real-time message monitoring and interaction with specific channels within Mattermost teams.

mattermost-mcp-服务器

该项目实现了一个用于 Mattermost 集成的模型上下文协议 (MCP) 服务器。它连接到 Mattermost API 端点以检索和处理各种信息,并通过标准 MCP 传输提供这些信息。

特征

  • 连接到 Mattermost API 端点
  • 支持多种传输模式:
    • SSE(服务器发送事件)
    • 标准 I/O
  • 实时消息处理
  • 团队和渠道特定监控
  • 基于令牌的安全身份验证

要求

  • Node.js >= 22
  • npm >= 10
  • dotenvx

设置

  1. 克隆此存储库:
git clone https://github.com/kakehashi-inc/mattermost-mcp-server.git cd mattermost-mcp-server
  1. 安装依赖项:
npm install
  1. 设置环境变量:
# Create .env file cp .env.example .env # Encrypt your .env file (optional but recommended for production) dotenvx encrypt

所需的环境变量:

  • MCP_PORT :SSE 传输模式的端口号(默认值:8201)
  • MATTERMOST_ENDPOINT :您的 Mattermost 服务器 URL
  • MATTERMOST_TOKEN :您的 Mattermost 身份验证令牌
  • MATTERMOST_TEAM_ID :要监控的团队的 ID
  • MATTERMOST_CHANNELS :要监控的通道名称的逗号分隔列表
  1. 构建服务器:
npm run build

用法

该服务器可以以两种传输模式运行:

SSE 传输模式

npm start

标准 I/O 传输模式

npm start -- --stdio

发展

  • npm run dev :使用热重载以开发模式启动服务器
  • npm run lint :运行 ESLint
  • npm run format :使用 Prettier 格式化代码
  • npm test :运行测试
  • npm run inspect :运行 MCP 检查器

参考

执照

麻省理工学院

-
security - not tested
A
license - permissive license
-
quality - not tested

连接到 Mattermost 的模型上下文协议服务器,允许 AI 模型通过 SSE 或标准 I/O 传输模式实时监控和处理来自特定团队和渠道的消息。

  1. Features
    1. Requirements
      1. Setup
        1. Usage
          1. SSE Transport Mode
          2. Standard I/O Transport Mode
        2. Development
          1. References
            1. License
              ID: ylyho1bgvr