This Mattermost Model Context Protocol (MCP) server connects to Mattermost API endpoints to retrieve and process data, making it available via multiple transport modes. You can:
Fetch messages from specified or default Mattermost channels
Search messages within channels using customizable queries
Set maximum limits on the number of messages fetched per channel
Use multiple transport modes including stdio, SSE, and HTTP-stream
Establish secure connections via token-based authentication
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-server
This project implements a Model Context Protocol (MCP) server for Mattermost integration. It connects to Mattermost API endpoints to retrieve and process various information, making it available through standard MCP transports.
Features
- Connects to Mattermost API endpoints
- Supports multiple transport modes:
- SSE (Server-Sent Events)
- Standard I/O
- Real-time message processing
- Team and channel-specific monitoring
- Secure token-based authentication
Requirements
- Node.js >= 22
- npm >= 10
- dotenvx
Setup
- Clone this repository:
- Install dependencies:
- Set up your environment variables:
Required environment variables:
MCP_PORT
: Port number for SSE transport mode (default: 8201)MATTERMOST_ENDPOINT
: Your Mattermost server URLMATTERMOST_TOKEN
: Your Mattermost authentication tokenMATTERMOST_TEAM_ID
: The ID of the team to monitorMATTERMOST_CHANNELS
: Comma-separated list of channel names to monitor
- Build the server:
Usage
The server can be run in two transport modes:
SSE Transport Mode
Standard I/O Transport Mode
Development
npm run dev
: Start the server in development mode with hot reloadnpm run lint
: Run ESLintnpm run format
: Format code using Prettiernpm test
: Run testsnpm run inspect
: Run MCP inspector
References
License
MIT
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.
Tools
A Model Context Protocol server that connects to Mattermost, allowing AI models to monitor and process messages from specific teams and channels in real-time via SSE or Standard I/O transport modes.
Related MCP Servers
- AsecurityFlicenseAqualityA Model Context Protocol server that enables AI models to interact with SourceSync.ai's knowledge management platform for managing documents, ingesting content from various sources, and performing semantic searches.Last updated -2520
- -securityAlicense-qualityA server that implements the Model Context Protocol, providing a standardized way to connect AI models to different data sources and tools.Last updated -29MIT License
- -securityFlicense-qualityA basic Model Context Protocol server implementation that demonstrates core functionality including tools and resources for AI chat applications.Last updated -