Skip to main content

Mattermost Agents admin guide

Servers without a license get one agent and one LLM service, in direct messages. See License requirements.

Set up Mattermost Agents (plugin mattermost-ai): connect LLMs, create agents, connect MCP servers and tools, and control access, approval, and licensing.

An agent is a Mattermost bot backed by an LLM that you choose, including a model that runs on your own infrastructure. Agents act through tools: the built-in Mattermost tools, remote MCP servers, and tools registered by other plugins. The plugin also ships a built-in Mattermost MCP server for external AI clients such as Claude Code and Cursor.

How the pieces fit​

  1. An LLM service holds the connection to a provider: type, credentials, default model, and optional fallback. You configure services in the Agents settings.
  2. An agent is a bot with a name, instructions, a model, access rules, and tool grants. Agents use a service. You create them on the Agents page.
  3. Tools give an agent abilities. Admins decide which tools exist, which need approval, and which users can reach each MCP server.
  4. Users talk to agents in direct messages, the Agents pane, and channels. Every tool call runs with the permissions of the person who asked, unless an agent uses a shared service account for external MCP servers. Tools from plugin-registered servers receive the requester's identity, and the source plugin enforces its own permissions. Credentials in a remote server's regular Headers are also shared by every user. See Tool approval and credentials.

Custom instructions can't grant or restrict access. Use the agent's Access tab, MCP access policies, and tool approval policies.

Requirements​

RequirementDetail
Mattermost Serverv12.0.0 or later.
Site URLSite URL must be set under System Console > Environment > Web Server. The plugin doesn't activate without it.
DatabaseThe Mattermost PostgreSQL database. Agents creates its own tables and runs migrations on start.
pgvectorOnly for semantic search. PostgreSQL needs the pgvector extension.
LLM accessNetwork access from the Mattermost Server to your LLM provider, and credentials.
Outbound proxyLLM provider traffic follows the HTTP_PROXY and HTTPS_PROXY environment variables of the Mattermost Server process.

Mattermost Server can ship with Agents pre-installed. Check System Console > Plugins > Plugin Management. To install or upgrade, download a release .tar.gz from the releases page, select Upload Plugin, and enable it. Set Enable Plugin to True under System Console > Plugins > Agents if needed.

Quick start​

  1. Open Agents from the product switcher, select Settings, and on AI services select Add an AI Service. Choose a Service type, enter the credentials and a Default model, and save. See Configure LLM services and Provider configuration. For a self-hosted model, see Sovereign AI deployments.
  2. Open the Agents page from the product switcher (grid icon). Select Create agent, choose a username, the service, and optional instructions. See Create and manage agents.
  3. Back in Agents > Settings > General, pick the Default bot. Users who haven't chosen an agent get this one, and so do features that don't let users choose, such as meeting summaries. If the default agent becomes unavailable, those features fail until you pick another. Mattermost never substitutes a different agent.
  4. Send the agent a direct message to test it.
  5. Optionally add MCP servers, web search, or semantic search, and set access controls.

Admin tasks​

I want toGo to
Connect an LLM provider, set fallbacks and token limitsConfigure LLM services, Provider configuration, AWS Bedrock
Create agents, delegate agent management, export and import agentsCreate and manage agents
Restrict who can use an agent, service, or MCP serverControl who can use agents
Connect remote MCP servers and let agents use toolsConnect agents to MCP servers
Decide which tool calls need approvalTool approval and credentials
Control tools, auto-reply, and web search in channelsControl agents in channels
Let external AI clients use MattermostExternal client endpoint
Give agents web searchWeb search
Turn on semantic searchSet up semantic search
Control links and HTML in AI outputSecure AI-generated links and HTML
Know what is sent to the LLM and what is storedData handling
Track usage, tracing, and audit eventsMonitor Agents
Back up Agents or automate configurationBack up and automate
Run fully self-hosted or air-gappedSovereign AI deployments
Fix a problemTroubleshooting
Upgrade from Agents 1.xUpgrade from Agents 1.x

For developers and integrators, see the Mattermost MCP server for connecting Claude Code or Cursor, the tool reference, and the LLM Bridge for plugins.

Delegate settings access​

System admins can always view and change the Agents settings. To let other people in, go to System Console > Plugins > Agents, add them under Settings access, and select Save:

  • Read and write access: can view and change every Agents setting, including API keys, run reindexing, and author service and MCP server access policies. They can also turn on service account authentication for agents they manage. Because they choose which AI services and MCP servers agents use, they can send what users say to agents, including private messages, to a service they control. Grant this only to people you would trust as an Agents system admin. They can't change who has access or the legacy agents defined in the plugin configuration.
  • Agent managers: can edit and delete every agent, as the manage_others_agent permission allows, without any access to the settings.

People with read and write access see Settings in the Agents sidebar. Access is per user; Mattermost's delegated admin roles don't grant it. Only a system admin can change the lists.

Plugin settings​

Everything is under Agents > Settings, in the General, AI services, MCP servers, Embedding search, Web search, and Debug sections. System Console > Plugins > Agents has an Open Agents settings button and the Settings access lists below. The plugin stores its configuration, and agents, in its own database tables. See Back up and automate.

PanelSettingConfig keyDefaultDetails
AI ServicesServicesservicesnoneConfigure LLM services
AI BotsLimit agent version history, Versions to keep per agentagentVersionsToKeepOff (0, keep all). Turning it on sets 50.Create and manage agents
AI FunctionsDefault botdefaultBotUserIDThe first agent, until you pick oneCreate and manage agents
AI FunctionsRender AI-generated linksallowUnsafeLinksOffSecure AI-generated links and HTML
AI FunctionsAllowed Link Domains (csv)allowedLinkDomainsEmpty (any domain, when links are on)Secure AI-generated links and HTML
AI FunctionsEnable HTML artifacts (experimental)enableHTMLArtifactsOffSecure AI-generated links and HTML
AI FunctionsEnable Channel Mention Tool Calling (experimental)enableChannelMentionToolCallingOffControl agents in channels
AI FunctionsEnable ambient auto-replies (experimental)enableAmbientAutoReplyOffControl agents in channels
AI FunctionsAllow native web search in channelsallowNativeWebSearchInChannelsOffControl agents in channels
DebugTrace Output, OpenTelemetry Endpoint, Use TLS for OTLP Export, OTLP Export HeaderstelemetryOutput, openTelemetryEndpoint, openTelemetryTLS, openTelemetryHeadersOffMonitor Agents
DebugEnable Token Usage LoggingenableTokenUsageLoggingOffMonitor Agents
Embedding Search (experimental)Embedding settings and reindex controlsembeddingSearchConfigOffSet up semantic search
Web SearchBuilt-in web searchwebSearchOffWeb search
Model Context Protocol (MCP)Servers, tools, HTTP endpoint, idle timeoutmcpHTTP endpoint off, idle timeout 30 minutesConnect agents to MCP servers

License requirements​

The plugin distinguishes four license levels: Free (no license), Professional, Enterprise, and Enterprise Advanced. Each level includes everything below it. The Entry license behaves as Enterprise. Legacy E10 licenses count as Professional and E20 licenses as Enterprise. A development server (EnableDeveloper and EnableTesting both on) enables every capability.

CapabilityFreeProfessionalEnterpriseEnterprise Advanced
Agents13UnlimitedUnlimited
LLM services11MultipleMultiple, with fallback chains
Direct messages with an agentYesYesYesYes
Vision and document attachmentsYesYesYesYes
Personal skillsYesYesYesYes
Built-in Mattermost toolsRead-onlyRead-onlyRead and writeRead and write
Agents in channels (@mention)NoYesYesYes
Thread, channel, and unread summariesNoYesYesYes
Provider-native web searchNoYesYesYes
Agent access controls (users, teams, channels)NoYesYesYes
Token usage loggingNoYesYesYes
Built-in web search (Brave, Google, SearXNG)NoNoYesYes
Tool approval policiesNoNoYesYes
Remote and external MCP servers, HTTP MCP endpointNoNoYesYes
MCP service account authenticationNoNoYesYes
Semantic search and AI searchNoNoYesYes
Meeting summariesNoNoYesYes
Shared skillsNoNoYesYes
Channel auto-replyNoNoNoYes
Attribute-based access controlNoNoNoYes

Limits by level​

  • Agent cap. Configuration-file bots and user-created agents share one pool. Over the cap, the plugin activates configuration-file bots first, then user-created agents oldest first. The rest stay stored but inactive, marked Inactive on the Agents page and named in the server log. Creating an agent over the cap fails with a message naming the level that raises it.
  • One service below Enterprise. Free and Professional use only the first service in the list. Agents that use another service are inactive and don't count toward the agent cap. LLM Bridge calls reach only the first service.
  • HTTP MCP endpoint. What happens to an endpoint that is already on after a downgrade is in External client endpoint.
  • Fallback chains. Followed at Enterprise Advanced only. Below that, a stored fallback stays in the configuration but requests use the primary service.
  • Write tools. Tools that change something in Mattermost (post, react, edit, create channels, and similar) are absent from the tool list below Enterprise, and calls return a licensing message.
  • Approval policies. Below Enterprise, built-in Mattermost tools use the product defaults and every other tool that has a policy asks first. Tools without a policy are listed in Approval policies. A stricter policy you set earlier still applies. A disabled tool stays disabled.

At every level​

  • Reading configuration is never blocked.
  • Turning something off is never blocked. You can disable, clear, or delete a gated setting after a license downgrade.
  • License changes apply without restarting the plugin.
  • A System Console or REST API request denied for licensing returns HTTP 403 with an error message and a license_required field set to professional, enterprise, or enterprise_advanced. LLM Bridge completions, MCP tools, and channel mentions report licensing differently. See LLM Bridge.