A Model Context Protocol (MCP) server for comprehensive Mattermost integration. This tool provides AI agents and automation systems with full access to Mattermost's capabilities beyond basic messaging.
- Message Management: Search, retrieve, and analyze message history
- Channel Operations: Create, manage, and monitor channels
- User & Team Management: Access user profiles, team structures, and presence
- File Operations: Upload, download, and manage file attachments
- Advanced Search: Find conversations, users, and content across your workspace
- Autonomous AI agents requiring Mattermost context and control
- Automation developers building Mattermost integrations
- Teams creating custom workflow tools
- Research applications analyzing communication patterns
pip install mattermost-mcpCreate a configuration file or set environment variables:
export MATTERMOST_URL="https://your-mattermost.example.com"
export MATTERMOST_TOKEN="your-bot-token"
export MATTERMOST_TEAM_ID="your-team-id" # optionalAdd to your Claude Desktop MCP configuration:
{
"mcpServers": {
"mattermost": {
"command": "python",
"args": ["-m", "mattermost_mcp"],
"env": {
"MATTERMOST_URL": "https://your-mattermost.example.com",
"MATTERMOST_TOKEN": "your-bot-token"
}
}
}
}list_channels- Get all accessible channelscreate_channel- Create new channelsget_channel_info- Get detailed channel informationadd_user_to_channel- Manage channel membershipset_channel_header- Update channel descriptions
search_messages- Search message history with filtersget_channel_messages- Retrieve recent messages from channelssend_message- Send messages to channelsupdate_message- Edit existing messagespin_message- Pin important messages
list_team_members- Get team member directoryget_user_profile- Access detailed user informationget_user_presence- Check online/offline statuslist_teams- Get team structure information
upload_file- Upload files to channelsdownload_file- Download shared fileslist_files- Get file listings for channelsget_file_info- Access file metadata
get_analytics- Channel and user activity analyticssearch_users- Find users by name, email, or criteriaget_channel_stats- Message counts, activity metrics
[Detailed API documentation coming soon]
- Fork the repository
- Create a feature branch
- Add tests for new functionality
- Submit a pull request
MIT License - see LICENSE file for details.
- Claude-Mattermost Bridge - Real-time message relay between Claude and Mattermost
- Mattermost API Documentation
- GitHub Issues for bug reports and feature requests
- Mattermost API documentation for API reference
- MCP specification for protocol details