Mattermost MCP Server

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-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

  1. Clone this repository:
git clone https://github.com/kakehashi-inc/mattermost-mcp-server.git cd mattermost-mcp-server
  1. Install dependencies:
npm install
  1. Set up your environment variables:
# 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 URL
  • MATTERMOST_TOKEN: Your Mattermost authentication token
  • MATTERMOST_TEAM_ID: The ID of the team to monitor
  • MATTERMOST_CHANNELS: Comma-separated list of channel names to monitor
  1. Build the server:
npm run build

Usage

The server can be run in two transport modes:

SSE Transport Mode

npm start

Standard I/O Transport Mode

npm start -- --stdio

Development

  • npm run dev: Start the server in development mode with hot reload
  • npm run lint: Run ESLint
  • npm run format: Format code using Prettier
  • npm test: Run tests
  • npm run inspect: Run MCP inspector

References

License

MIT

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

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.

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.

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

              Related MCP Servers

              • -
                security
                F
                license
                -
                quality
                A Model Context Protocol server that provides AI assistants with structured access to your Logseq knowledge graph, enabling retrieval, searching, analysis, and creation of content within your personal knowledge base.
                Last updated -
                19
                TypeScript
                • Apple
              • -
                security
                A
                license
                -
                quality
                A Model Context Protocol server that provides seamless interaction with Workato's API through custom AI tools, enabling management of recipes, connections, connectors, folders, and activity logs.
                Last updated -
                TypeScript
                MIT License
                • Apple
                • Linux
              • -
                security
                F
                license
                -
                quality
                A Model Context Protocol server that connects AI assistants like Claude to Notion workspaces, enabling them to view, search, create, and update Notion databases, pages, and content blocks.
                Last updated -
                275
                JavaScript
                • Apple
              • -
                security
                F
                license
                -
                quality
                A demonstration implementation of the Model Context Protocol server that facilitates communication between AI models and external tools while maintaining context awareness.
                Last updated -
                Python
                • Linux
                • Apple

              View all related MCP servers

              ID: ylyho1bgvr