Skip to main content
Glama
kakehashi-inc

Mattermost MCP Server

mattermost-mcp-服务器

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

特征

  • 连接到 Mattermost API 端点

  • 支持多种传输模式:

    • SSE(服务器发送事件)

    • 标准 I/O

  • 实时消息处理

  • 团队和渠道特定监控

  • 基于令牌的安全身份验证

Related MCP server: Mattermost MCP Server

要求

  • 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 检查器

参考

执照

麻省理工学院

Available Tools

1 tool

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 1 tool updatev1.0.0
    • First observedmattermost_search

TDQS

B3.1/5.0

Scored across 1 tool

Disambiguation5/5

With only one tool, there is no possibility of ambiguity or overlap between tools. The tool's purpose is clearly defined as fetching messages with optional search, leaving no room for confusion or misselection.

Naming Consistency5/5

A single tool inherently has perfect naming consistency, as there are no other tools to compare against. The name 'mattermost_search' follows a clear and descriptive pattern, but consistency cannot be assessed across a set of one.

Tool Count2/5

A single tool is too few for a server named 'Mattermost MCP Server', which implies broader functionality for interacting with Mattermost (e.g., posting messages, managing channels, users). This minimal toolset feels thin and incomplete for the apparent scope.

Completeness2/5

The tool surface is severely incomplete for a Mattermost integration. While 'mattermost_search' covers fetching messages, there are obvious gaps such as creating messages, managing channels, handling users, or other core Mattermost operations, which will likely cause agent failures in typical workflows.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers