How MCP tools in Mattermost Agents connect agents to internal systems
MCP tools let a Mattermost agent call systems outside Mattermost, such as a ticketing platform, a file store or a records database, through a Model Context Protocol server. A team needs them when people already ask questions in Mattermost that depend on data living somewhere else, for example asking the agent for the status of a support ticket or the latest version of a document. Each MCP server exposes a set of tools, and the agent can call those tools to answer a request. The main decision is which internal systems are worth exposing at all, because every connected system becomes a path that an agent, and anyone who can talk to that agent, can reach.
The researched facts for this page do not cover MCP configuration, so the settings, field names and option labels described here should be treated as decisions to make, not as steps to copy. Confirm the exact options in the Agents plugin admin console and in the documentation for your Mattermost version, because the plugin and its settings change between releases. Before you touch those options, write down for each candidate system which identity the MCP server will use, whether that identity is read-only, and which users or bots should reach it. Those answers drive every later choice about tool access, approval and call limits.
Plan for the agent to be the party that acts, not the user. A tool call made on a user's request may run with a service credential that can see far more than that user could, so confirm how the MCP server authenticates and whether it can apply the requesting user's own permissions. Test this with a non-privileged test account and a dedicated test record before any production data is connected. Keep the credentials for each MCP server in a secrets store you control, rotate them on a schedule your security team sets, and record which tools were called, by whom and against which records, so that an incident review can reconstruct what the agent did.
Which tool access settings fit which agent
This table compares the MCP tool access options for Mattermost Agents: per-agent enablement, automatic and selected access, dynamic loading, approval and call limits. Read each row for when the option fits, the risk it reduces and what it asks of your team to run. Confirm each setting name and default in the version you deploy before you write the access policy.
| Setting | When it fits | Risk it reduces | What it costs to operate |
|---|---|---|---|
| Per-agent tool enablement | Each agent has one job, such as a support triage bot or a release notes bot, and needs only the systems that job touches | Limits what a single agent can reach if its prompt is manipulated or its model misuses a tool | Someone must map each agent to its purpose and review the mapping when roles change |
| Automatic tool access | Low-risk, read-only servers on a trusted internal network where users accept the agent acting without a pause | Reduces friction and interruptions for routine lookups | Least review effort, but a wrong or overbroad server exposes everything it exposes to every user of that agent |
| Selected tool access | Agents that can change records, send messages or open tickets, so a human or policy chooses which tools are available for each request | Keeps write and administrative tools out of reach unless someone has deliberately selected them | Users need guidance on which tools to pick, and selections need periodic review |
| Dynamic tool loading | Large MCP servers with many tools where loading everything into every conversation would be slow or confusing for the model | Reduces the number of tools the model can see at once, which narrows the choices available to it | Adds a loading and discovery step to test, and you must confirm how loaded tools are scoped and cleared between sessions |
| Tool approval | Actions with external effects, such as sending email, writing to production systems or changing permissions | Puts a person between the model's request and the effect, which catches misuse and mistaken calls | Approvers must be named, reachable and trained, and approval queues become a support load during busy periods |
| Tool-call limits | Any agent that runs unattended or can loop, including agents with many tools or slow downstream systems | Caps runaway loops, repeated calls to a costly API and bulk actions triggered by a single prompt | Limits must be tuned against real workflows, otherwise legitimate tasks fail and users open workarounds |
| Read-only MCP servers combined with approval | Agents that answer questions from internal systems but could be asked to act on them later | Separates information access from action, so a misused prompt cannot change data without approval | Two configurations to keep in sync across upgrades and tool changes |
How a tool call moves from the agent to your internal system
The request starts with a user message in a channel, which the Agents bot picks up on the Mattermost server. The server sends the prompt to the LLM provider you configured, and if the model asks for a tool, the call is routed to an MCP server you run, which queries the internal system and returns the result along the same path. Approval and call limits sit on the Mattermost side, before any tool runs. Confirm with your provider what data leaves your boundary at each hop, because that depends on the provider you choose.
Request and return path for an agent tool call, with trust boundaries and the points where approval and limits apply.
Setting up MCP servers for one agent in sequence
This sequence brings one MCP server online for one Mattermost agent with read-only access, so each control is proven on a small surface before more tools or agents are added.
Confirm server version and plan
The platform owner checks the Mattermost server version and plan that include the Agents plugin, and confirms the plugin is present and enabled on the test server. Confirm the version and plan entitlements against the Mattermost server releases page and pricing page, not from memory, because support windows and plan features change. The step is done when the admin console shows the Agents plugin running and the team can name the server version and plan in writing for the change record.
Confirm the LLM provider and network path
The platform and network teams confirm which LLM provider the test agent will call and the exact network route from the Mattermost server to that provider, including any outbound proxy and hostname allowlist. Confirm with the provider's documentation and your network team which hostnames and ports are required. The step is done when a test request to the provider succeeds from the Mattermost server and a blocked destination fails as expected.
Register one internal MCP server read-only
An administrator registers a single internal MCP server that exposes a narrow, read-only set of tools, such as a lookup against a non-sensitive internal system. The server should run on infrastructure you control, with its own service credential scoped to read access only. Confirm the exact registration fields in the current Mattermost Agents documentation for your version. The step is done when the server appears in the configuration with its tool list visible and a manual call returns expected data.
Enable tools for one test agent
The administrator enables the MCP tools for one test agent only, leaving other bots and users unchanged. Choose the tool access mode deliberately: automatic access lets the agent call tools without a per-call choice, while selected access limits the agent to named tools. For the first run, prefer selected access so every enabled tool is an explicit decision. The step is done when the test agent lists only the approved read-only tools and no others.
Test approval and call limits
The test team sends prompts that should trigger a tool call, then prompts that try to reach a tool that is not enabled, and prompts that request repeated calls to test the call limit. Confirm that tool approval prompts appear where configured, that a disallowed tool call is denied, and that the agent stops at the configured call limit. Record each result with the prompt used. The step is done when every expected outcome is observed and documented, and any unexpected behavior blocks the next step.
Review logs and confirm evidence
The operations team reviews the server logs and any audit output for the test calls, confirming that each tool invocation, approval decision and denial is recorded with the agent identity and timestamp. Check that credentials do not appear in log lines and that the log destination is retained under your logging policy. The step is done when a reviewer can trace one test prompt through to its tool call from the logs alone.
Expand only after sign-off
Before adding tools, servers or agents, the platform owner and security reviewer sign off on the test results and the configuration as a written record. Expansion then happens one change at a time, repeating the approval, limit and log checks for each new tool or agent. Confirm that the sign-off covers the Mattermost version and any upgrade planned for later. The step is done when the signed record exists and the next change has its own test plan.
Which risks MCP tools add to an agent deployment
An MCP tool gives an agent a path from chat into your internal systems, so each tool inherits the permissions, secrets and data exposure of the system behind it. The cards below pair each risk with the control to plan and the check to run in your own environment before enabling tools for users.
Over-broad tool permissions
An MCP server often exposes more operations than a given bot needs, such as reading and writing tickets when only reads are required. Plan least-privilege scope per agent and per MCP server, so each bot can call only the tools its channels and users justify. Verify that the service account behind each server has the narrowest rights the target system allows, and test that a bot cannot reach tools it was never enabled for. Confirm which tool set each bot actually loads, not only what the server advertises.
Prompt injection through message content
Text in a channel, a pasted document or a tool response can contain instructions that try to make the agent call a tool with attacker-chosen arguments. Plan approval for write or sensitive actions and treat tool output as untrusted input. Test with crafted messages in a non-production channel that ask the agent to call tools it should refuse, and confirm the attempt is blocked or routed to an approver.
Credential handling for MCP servers
MCP servers authenticate to internal systems with API keys, tokens or service accounts, and those credentials can end up in configuration files, logs or prompts if handled carelessly. Plan secrets storage in a dedicated secrets manager with rotation and named owners. Verify that credentials are not visible to admins who do not need them, that they are excluded from logs, and that revoking one server's credential does not affect others.
Approval bypass
An approval step only protects you if every path to a tool goes through it. Automatic tool access, a tool enabled on one bot but not another, or a server reachable through a second route can skip the intended gate. Plan the approval policy per tool and per bot, and document which tools run automatically. Verify with a test matrix that every write-capable tool requires approval from the expected approver and that changes to approval settings are restricted to admins.
Data leaving the boundary through the LLM provider
Tool results are sent to the model provider as context, so an internal record pulled by a tool may leave your network even if the MCP server stays inside it. Plan which tools may return data to which model backend, and where self-hosted models fit. Confirm the provider's data handling terms for your use, check the network path the agent uses, and review which tool outputs contain personal or regulated data before enabling them.
Weak audit trails
If a tool call is not logged with the requesting user, the bot, the tool, the arguments and the outcome, an incident review cannot reconstruct what the agent did. Plan logging for every tool invocation and approval decision, and send it to a store your security team controls. Verify that logs capture approvals and denials, that retention matches your records policy, and that a test action can be traced end to end from channel message to system change.
Operating MCP tools after launch: limits, logs and upgrades
Day-two work on MCP tools starts with an access review. List every agent, the MCP servers and tools it can reach, who requested each grant, and whether the business still needs it. Remove tools that no longer have an owner, and check that narrowly scoped bots have not gained tools through later edits. Next, tune tool-call limits from observed use. Pull call logs per agent over a normal period, look for runs that hit the ceiling, and look for limits set so high that a looping agent would not be stopped. Review the approval queue on a fixed schedule, checking how long requests wait and who approved what. Rotate MCP server credentials on a schedule and after any staff change, then confirm each agent still connects.
Upgrades are the main source of surprise. Mattermost releases server versions in binary form on the 16th of each month, so v11.11 (released 2026-09-16, support ending 2026-12-15) and v12.0 (released 2026-10-16, support ending 2027-01-15) each arrived on a fixed date. Teams on an Extended Support Release change less often: v11.7 was released 2026-05-15 with support ending 2027-05-15, while v10.11 reached end of life on 2026-08-15. Between releases, plugin behavior can change in ways that affect tool loading, approval prompts, limit enforcement and how tool results reach the model. Check the Mattermost server releases page and the release notes for the Agents plugin version bundled with each server version before scheduling an upgrade.
That is why a staging test belongs in the plan. Staging should mirror production: the same plugin version, the same agent definitions, the same limits, and MCP servers backed by test data or read-only accounts. Replay a fixed set of prompts that exercises each tool and each approval path. Confirm that tools load as expected, that approvals still gate the calls that should be gated, that limits trigger, and that logs still record each call with enough detail to investigate. Record the results and hold the production upgrade until they match. Test the rollback path as well, because reverting a plugin change in production is harder than discarding a failed staging run.
What to confirm about MCP tool support in your version
MCP tool behavior in Mattermost Agents depends on the plugin version you run and how your environment handles outbound traffic. The items below are the ones to settle in writing before you design tool access, because each one changes what your approval and control model can promise.
Supported MCP transports and server types
Confirm which MCP transports the Agents plugin in your version can connect to, and which server types it accepts, such as locally run servers versus remote HTTP servers. Transport support decides where each tool server can run, whether it can sit inside your network, and what authentication it can use. Ask the vendor for the exact list for your installed version, then test one internal server in a non-production environment before you plan around it.
Dynamic tool loading availability
Confirm whether your version can load tool definitions from an MCP server at runtime rather than requiring a fixed list configured in advance. Dynamic loading affects how quickly new internal tools become available to agents and how much change control you need when a server adds or renames a tool. Check the vendor documentation for your version and verify in a test environment that a changed tool list is picked up as you expect.
How tool approvals are recorded
Confirm whether an approval decision for a tool call is stored, who it is attributed to, how long it is kept, and whether it can be exported for review. Approvals matter most when an agent writes to a ticketing, HR or finance system, and an auditor may ask who allowed a specific action. Ask the vendor where approval records live and whether they appear in server logs or only in the chat thread.
Scope of tool-call limits
Confirm whether a tool-call limit applies to a single agent, to a bot, or to the whole server, and whether it counts calls per user, per conversation or per time window. A global limit can starve one team's agent, while a per-agent limit can be bypassed if several agents share the same tool server. Test the limit with two agents using the same tool to see how the counter behaves before you rely on it for cost or abuse control.
Operation inside an air-gapped network
Confirm whether the MCP client, the tool servers and any model or embedding calls can all run without outbound internet access, and which hostnames or ports they must reach. Some MCP servers fetch packages or call external APIs on startup, which breaks an isolated network. Ask the vendor for the network requirements for your version, and verify the full tool path in a network segment that mirrors production before you accept the design.
Credential handling for tool servers
Confirm how the plugin stores and passes credentials to MCP servers, whether secrets are visible to administrators or to agents, and whether each server can use a separate service account. Tool servers often hold database or API tokens that reach far beyond a chat user's own permissions. Ask the vendor how secrets are encrypted at rest and whether you can scope a credential to a single tool server.
How deployment environment changes MCP tool work
On a single Mattermost server, the Agents plugin and its MCP connections run on the same host that serves users. Every outbound call to an MCP server leaves from one machine, so one set of firewall rules, DNS settings and proxy settings governs all tool access. The trade-off is that the host is also a single point of failure for both chat and tool calls, and any change to network rules affects every agent at once.
- Egress path: All MCP endpoints are reached from one host, so a single outbound allowlist or proxy rule covers every tool server. Confirm that rule is written per endpoint, not per agent.
- Credentials: Tokens and keys for MCP servers are stored with the server configuration. Confirm where they are written on disk and who can read the configuration file and the admin console.
- Logs: Tool-call records and server logs are written to the same host. Decide retention, rotation and read access before any tool is enabled for a production agent.
- Recovery: Restoring the server restores tool configuration, but the MCP servers it calls must be restored separately. Map that dependency in the runbook.
- Effort drivers: Effort is driven mainly by the number of MCP servers and the approval rules set for each agent, not by the topology.
Before enabling tools, check which single host can reach each MCP endpoint and where its tool-call logs are written and rotated.
A high availability cluster has redundant application servers, redundant database servers and redundant load balancers, and it is available only on the Enterprise and Enterprise Advanced plans. Each application server can open its own connections to MCP servers, so the network design must cover every node, including nodes added later. The high availability cluster documentation requires shared file storage on Amazon S3, an S3-compatible service or NAS mounted on each node. Local file system storage will not work correctly and risks corrupting files.
- Egress from every node: Each application server makes outbound calls, so allowlists and proxies must permit every node's address and any node added during scaling.
- Shared storage: The shared storage mount is a cluster prerequisite. Confirm that any file that a tool reads or writes goes through that shared path, not local disk.
- Credential distribution: Tool credentials must be identical on every node and rotated in one controlled change. Plan a secrets store that updates all nodes together.
- Log correlation: Tool-call logs are spread across nodes. Centralize them so one conversation can be followed from request to tool result, even after a failover.
- Plan level: The pricing page places high availability on Enterprise and Enterprise Advanced. Ask Mattermost to confirm in writing that the MCP features you need are included at that level.
Before go-live, confirm the shared storage mount on each node, test egress from every node, and verify that a tool call handled after failover produces the same audit trail.
An air-gapped deployment is available on the Enterprise Advanced plan according to the pricing page. Without an internet route, MCP servers, internal APIs and any model endpoint must sit inside the same isolated boundary. Work shifts from allowing outbound destinations to mapping every internal path, so each agent reaches only the systems it has been approved to use. Internal DNS, certificate trust and the transfer process for software updates become central to the design.
- Network paths: Map each required path from the Mattermost servers to each MCP server and internal system, and deny everything else. Document any path that depends on a service outside the boundary.
- Software transfer: Plugin updates, MCP server packages and their dependencies arrive through an approved transfer process. Agree the cadence and approval steps before the first tool is enabled.
- Secrets: Store tool credentials in an internal secrets service that is reachable only inside the boundary. Confirm that no tool depends on an external vault or key service.
- Audit logs: Keep tool-call logs inside the boundary and forward them to the internal monitoring platform your security team already uses.
- Effort drivers: Effort rises with the number of internal systems, the complexity of certificate chains, and how often approved transfers are scheduled.
Before designing the connection map, ask Mattermost which Agents and MCP capabilities work fully offline in your version and plan.
Questions teams ask before enabling MCP tools
What drives the cost of MCP tool work in Mattermost Agents?
The main cost driver is how many internal systems the agents must reach and how much each one needs to be reviewed. Each MCP server you connect requires its own decisions about what the tool can read, what it can change, which credentials it uses and which agents may call it. Connecting a read-only knowledge source is far less work than connecting a ticketing or finance system that can write data. Other cost drivers include the number of distinct agents and bots, whether you need tool approval flows, how much logging and testing you want before go-live, and whether your MCP servers already exist or must be built. Ask any partner to price the work per system and per permission level, and to separate one-time build and test effort from any recurring support.
How long does a first MCP tool rollout take?
No duration was established for this work, so treat any timeline you receive as a question to answer rather than a fact. The length depends on the number of internal systems in scope, whether the MCP servers are ready, how many permission rules must be agreed with system owners, and how much testing the security team expects before users see the tools. A rollout limited to one read-only tool on a test environment moves faster than a rollout that covers several write-capable systems across production. Ask for a written plan with milestones, the systems included, and the decisions that must be made by your team before each milestone.
What does the work need from our team?
Your team provides the decisions and access that only your organization can give. That includes named owners for each internal system the agents will reach, the business rules for which users and agents may use which tools, the credentials or service accounts that tools will run under, and the network paths from the Mattermost server to each MCP endpoint. Security and compliance staff should define the approval and tool-call limits they expect, and an administrator must be able to change Agents plugin settings on a test server. Requesting these inputs early usually prevents the largest delays, because most rework comes from unclear ownership or permissions rather than from configuration.
Can our own team set up MCP tools without outside help?
Yes, a team with Mattermost administration, identity and API experience can enable MCP tools in-house, provided it has the time and the security review capacity. The configuration itself is a small part of the work. The harder parts are deciding least-privilege tool access for each agent, testing prompt injection and misuse paths, checking that tool results do not expose data users should not see, and keeping that configuration correct through upgrades. Outside help is most useful for an independent review of tool permissions, for building or hardening MCP servers, or for a fixed-scope rollout with written acceptance tests. Whichever route you take, confirm the current behavior of each setting against the Mattermost documentation for your server version.
Does changing the LLM provider affect our MCP tools?
It can. Tool definitions are passed to the model, and different providers and models vary in how they choose, format and sequence tool calls, so a tool that works well with one model may behave differently with another. A change of provider can also alter how many tool calls an agent makes, how it handles errors and which data leaves your boundary. Before switching, retest each agent and tool combination on the new model, review the limits and approval settings, and confirm where the provider processes requests. Check the Mattermost Agents documentation for the provider you plan to use, because supported options and per-bot configuration can differ.
How is an AI security review of MCP tool access scoped?
A review of tool access is scoped by the agents, tools and systems in play, not by the number of Mattermost users. A typical scope covers each MCP server and the permissions it holds, the agent-to-tool mapping, whether tools run automatically or wait for user selection or approval, the tool-call limits, the credentials and secrets involved, the logging of tool calls, and the network path from the server to each endpoint. Testing covers prompt injection that tries to trigger unintended tool calls, attempts to reach tools an agent should not use, and data exposure through tool output. The deliverable should be a findings report with fixes and a retest. DeployOpen runs this kind of AI agent rollout security review, and the scope is agreed in writing before work starts.
Which MCP tool settings should we confirm before go-live?
Confirm the settings that control who can use tools and how far an agent can act without a person. Check which tools are enabled for each agent, whether dynamic tool loading is on, whether automatic tool access is limited to read-only systems, and whether tool approval is required for write actions. Confirm the tool-call limit, the credentials each MCP server uses, and whether those credentials are scoped to the minimum the agent needs. Also verify that outbound connections from the Mattermost server reach only approved endpoints. Record the exact version of Mattermost and the Agents plugin you tested, since configuration options can change between releases.
How DeployOpen scopes and delivers MCP tool work
DeployOpen plans and delivers MCP tool connections for Mattermost Agents inside infrastructure you control, from the agent permissions and tool approval design through to a documented, supported setup. Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
How we scope
- Inventory the internal systems each agent should reach and the MCP servers that expose them
- Map which tools run automatically and which require a user or admin to select them
- Define tool-call limits, approval rules and the agents and channels each tool is enabled for
- Agree the written scope, deliverables and timeline before any configuration begins
How we build
- Deploy and configure the MCP servers and connections inside your own network or cloud account
- Set per-agent tool enablement, dynamic tool loading and approval settings to the agreed design
- Test tool permissions, credential handling and call limits against your documented requirements
- Review admin settings and SSO integration for the Agents plugin before go-live
How we hand over
- Provide configuration records for each agent, its tools, approval rules and call limits
- Document the MCP server build, credential locations and rollback steps for your operators
- Deliver a test record showing which tool behaviors were verified and any open items
- Walk your administrators through daily operation, changes and how to request a new tool
How we support
- Offer ongoing support, upgrades and continuous testing for MCP tools as a retainer
- Retest tool permissions and approval rules after Mattermost or MCP server upgrades
- Review new tool requests against the agreed scope before they are enabled for agents
- Confirm with your security team which retainer activities and evidence formats suit your review cycle

