
Mattermost
STDIOMCP server for Mattermost integration to retrieve and process data through API endpoints
MCP server for Mattermost integration to retrieve and process data through API endpoints
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.
git clone https://github.com/kakehashi-inc/mattermost-mcp-server.git cd mattermost-mcp-server
npm install
# Create .env file cp .env.example .env # Encrypt your .env file (optional but recommended for production) dotenvx encrypt
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 monitornpm run build
The server can be run in two transport modes:
npm start
npm start -- --stdio
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 inspectorMIT