Mattermost Agents Plugin 
Self-hosted AI agents for Mattermost that act on your behalf through tools and MCP servers, plus a built-in Mattermost MCP server for external AI clients such as Claude Code, Claude Desktop, Cursor, and VS Code.

Mattermost Agents (plugin ID mattermost-ai) adds AI agents to a Mattermost server. Talk to an agent in the Agents workspace, the Agents pane, a direct message, or a channel. Agents search and post in Mattermost, call external tools through the Model Context Protocol (MCP), and create files and interactive HTML artifacts using your permissions. You choose the LLM, including on-premises and self-hosted models so conversations and data stay in your environment.
Key features
- Sovereign AI: Connect on-premises and self-hosted models (Ollama, vLLM, and OpenAI-compatible servers) for air-gapped or private deployments, or choose OpenAI, Anthropic, AWS Bedrock, Azure OpenAI, Google Gemini, Vertex AI, Cohere (including Cohere North), and Mistral. See Sovereign AI deployments and Provider configuration.
- Tools and MCP: Use built-in Mattermost tools, remote MCP servers with per-user OAuth or service accounts, and tools registered by other Mattermost plugins. See Use tools and approve actions.
- Built-in Mattermost MCP server: Connect Claude Code, Claude Desktop, Cursor, VS Code, or any streamable HTTP MCP client to
/plugins/mattermost-ai/mcp-server/mcpusing OAuth or a personal access token, with over 100 tools running under the signed-in user's permissions. See Mattermost MCP server. - Governance and observability: Per-tool approval policies, user/team/channel and attribute-based access controls, delegated settings access, server audit logging, token usage logs, and OpenTelemetry tracing. See the Admin guide.
- Summaries, search, and meetings: Summarize threads, channels, unread messages, and Mattermost Calls or Zoom recordings, and search with keyword and semantic search. See Summaries and AI search and Meeting summaries.
- Files and HTML artifacts: Read attachments, analyze images with vision models, attach generated text files, and render sandboxed interactive HTML artifacts in the conversation. See Secure AI-generated links and HTML.
- Dedicated Agents workspace: Create and manage multiple agents with custom instructions, models, version history, and conversation history from the Agents product view. See Use Mattermost Agents.
- Channels and Skills: @mention agents or configure channel auto-reply with private/shared tool results, and save, pin, share, or auto-load reusable Skills.
Some features depend on your Mattermost license level. See License requirements.
Documentation
Product documentation lives in docs/ and is published on docs.mattermost.com (User guide, Admin guide).
For users
- Use Mattermost Agents: Start chats, create agents, attach files, and find every feature
- Personal AI assistant workflows: Day-to-day workflows across Mattermost and MCP servers
- Use tools and approve actions: Approve tool calls and connect accounts to MCP providers
- Use agents in channels: Channel @mentions, tool sharing, and auto-reply
- Summaries and AI search: Thread/channel summaries and AI search
- Meeting summaries: Calls and Zoom transcript summaries
- Skills: Save, pin, share, and auto-load reusable instructions
- Mattermost MCP server: Connect Claude Code, Claude Desktop, Cursor, and VS Code to Mattermost
- What agents can see and keep: Context scope, permissions, and storage
For admins
- Admin guide: Requirements, quick start, settings map, delegated access, and licensing
- LLM services, Providers, and AWS Bedrock setup
- Create and manage agents and Access control
- MCP integrations and Tool approval and credentials
- Channel settings, Web search, and Semantic search
- AI output security, Data handling, and Sovereign AI deployments
- Monitor Agents, Back up and automate, and Troubleshooting
- Upgrade from Agents 1.x
For developers
- Mattermost MCP tool reference: All 124 built-in tools
- LLM Bridge for plugins and Bridge Go client: Call agents and LLM services from another plugin
- Plugin MCP Go SDK: Expose MCP tools from your Mattermost plugin
Installation and quick start
Check the system requirements in the Admin guide before installing.
- Download the latest release from the releases page (or the experimental latest master build).
- Upload and enable the plugin in System Console > Plugins > Plugin Management.
- Open Agents from the product switcher, go to Settings > AI services, and select Add an AI Service.
- Select All agents > Create agent, choose a username and service, and save.
- Start a conversation from the Agents page, the Agents pane, or a direct message.
See the Admin guide for full configuration details.
Development
Requires Go 1.27+ and Node.js 24.11+. Follow the Mattermost Server and Plugin setup guides, then build and deploy to a local or remote server:
export MM_SERVICESETTINGS_SITEURL=http://localhost:8065
export MM_ADMIN_USERNAME=<username>
export MM_ADMIN_PASSWORD=<password>
make deploy
Common commands (make help lists all targets):
make check: Run linters, unit tests, and drift checksmake test: Run Go and webapp unit testsmake e2e: Run Playwright end-to-end testsmake evals: Run prompt evaluations (seecmd/evalviewer/README.md)
License
This repository is licensed under Apache-2, except for the enterprise directory which is licensed under the Mattermost Source Available License. See Mattermost Source Available License to learn more.
