Skip to main content Switch to mobile version mattermost-mcp 2.4.11 Mattermost Team Collaboration MCP Server and Agent for Agentic AI!
pip install mattermost-mcp==2.4.11 Copy PIP instructions
Documentation — Installation, deployment, and usage across the API, CLI, MCP, and A2A agent interfaces are maintained in the official documentation.
Mattermost enterprise messaging collaboration server. Built with the highest architectural standards, incorporating dynamic facades, custom API routing, and FastMCP tool decoration.
Mattermost MCP provides a high-performance, model-optimized interface to Mattermost capabilities. It isolates the model from underlying API transport complexity, ensuring safe, idempotent, and highly traceable system interactions.
Dynamic Facade Orchestration: Integrates multi-inheritance clients cleanly under a single facade.
Battle-Tested Resilience: Out-of-the-box credential authentication, connection polling, and request retry strategies.
FastMCP Declarative Tools: Fast, native schema registration with full inline validation.
Complete Test Intent Diversity: Deep, automated unit, integration, and mock tests ensuring high code coverage.
Dynamic Tool Selection & Visibility
The operator can configure tool filtering via multiple input channels:
CLI Arguments: Pass --tools or --toolsets (or their disabled counterparts --disabled-tools and --disabled-toolsets) during startup.
Environment Variables: Define standard environment variables: MCP_ENABLED_TOOLS / MCP_DISABLED_TOOLS
MCP_ENABLED_TAGS / MCP_DISABLED_TAGS
HTTP SSE Request Headers: Pass custom headers during transport initialization: x-mcp-enabled-tools / x-mcp-disabled-tools
x-mcp-enabled-tags / x-mcp-disabled-tags
HTTP SSE Request Query Parameters: Append query parameters directly to the operator's transport connection URL: ?tools=tool1,tool2
When query strings or parameters are provided, an LLM-free Knowledge Graph resolution layer (using DynamicToolOrchestrator) matches query intents against known tool tags, names, or descriptions, with safe fallback and automated 24-hour background cache refreshing.
The following declarative FastMCP tools are registered and available to upstream AI agents:
57 intent tool(s) · 0 operation(s). Call an operation as act(action='
See docs/overview.md or docs/concepts.md for deeper operational examples.
MCP Configuration Examples
Install the connector-focused [mcp] extra. Examples use mattermost-mcp[mcp] to add FastMCP / FastAPI through scion-sdk; the required Scion SDK core still carries medulla[full]. The [agent-runtime] extra additionally enables model orchestration.
stdio Transport (local IDEs — Cursor, Claude Desktop, VS Code)
{ "mcpServers": { "mattermost-mcp": { "command": "uvx", "args": [ "--from", "mattermost-mcp[mcp]", "mattermost-mcp" ], "env": { "ACCESS_CONTROLTOOL": "True", "ACTIONSTOOL": "True", "AGENTSTOOL": "True", "AUDIT_LOGGINGTOOL": "True", "BOARDSTOOL": "True", "BOOKMARKSTOOL": "True", "BOTSTOOL": "True", "BRANDTOOL": "True", "CHANNELSTOOL": "True", "CLOUDTOOL": "True", "CLUSTERTOOL": "True", "COMMANDSTOOL": "True", "COMPLIANCETOOL": "True", "CONTENT_FLAGGINGTOOL": "True", "CUSTOM_PROFILE_ATTRIBUTESTOOL": "True", "DATARETENTIONTOOL": "True", "ELASTICSEARCHTOOL": "True", "EMOJITOOL": "True", "EXPORTSTOOL": "True", "FILESTOOL": "True", "GROUPSTOOL": "True", "IMPORTSTOOL": "True", "IP_FILTERSTOOL": "True", "JOBSTOOL": "True", "KGTOOL": "True", "LDAPTOOL": "True", "LIMITSTOOL": "True", "LOGSTOOL": "True", "MATTERMOST_MCP_BASE_URL": "http://localhost:8065", "MATTERMOST_MCP_PACKAGE_DIR": "./mattermost_mcp", "MATTERMOST_MCP_PASSWORD": "mattermost_password", "MATTERMOST_MCP_USERNAME": "mattermost_username", "MATTERMOST_TOKEN": "mattermost_api_access_token", "MATTERMOST_URL": "http://localhost:8065", "METRICSTOOL": "True", "OAUTHTOOL": "True", "OUTGOING_OAUTH_CONNECTIONSTOOL": "True", "PERMISSIONSTOOL": "True", "PLUGINSTOOL": "True", "POSTSTOOL": "True", "PREFERENCESTOOL": "True", "PROPERTIESTOOL": "True", "REACTIONSTOOL": "True", "RECAPSTOOL": "True", "REMOTECLUSTERSTOOL": "True", "REPORTSTOOL": "True", "ROLESTOOL": "True", "SAMLTOOL": "True", "SCHEDULED_POSTTOOL": "True", "SCHEMESTOOL": "True", "SERVICE_TERMSTOOL": "True", "SHAREDCHANNELSTOOL": "True", "STATUSTOOL": "True", "SYSTEMTOOL": "True", "TEAMSTOOL": "True", "UPLOADSTOOL": "True", "USAGETOOL": "True", "USERSTOOL": "True", "VIEWSTOOL": "True", "WEBHOOKSTOOL": "True" } } } } Runtime references require an alias-aware launcher such as Arbora. Other launchers must omit those entries and inject the resolved values through their own runtime secret boundary.
Streamable-HTTP Transport (networked / production)
{ "mcpServers": { "mattermost-mcp": { "url": "http://localhost:8000/mattermost-mcp/mcp" } } } Run a reviewed container image as a least-privilege stdio child (no listener or published port):
docker run -i --rm \ --read-only \ --cap-drop=ALL \ --security-opt=no-new-privileges \ --pids-limit=256 \ --tmpfs /tmp:rw,noexec,nosuid,nodev,size=64m \ -e TRANSPORT=stdio \ -e ACCESS_CONTROLTOOL=True \ -e ACTIONSTOOL=True \ -e AGENTSTOOL=True \ -e AUDIT_LOGGINGTOOL=True \ -e BOARDSTOOL=True \ -e BOOKMARKSTOOL=True \ -e BOTSTOOL=True \ -e BRANDTOOL=True \ -e CHANNELSTOOL=True \ -e CLOUDTOOL=True \ -e CLUSTERTOOL=True \ -e COMMANDSTOOL=True \ -e COMPLIANCETOOL=True \ -e CONTENT_FLAGGINGTOOL=True \ -e CUSTOM_PROFILE_ATTRIBUTESTOOL=True \ -e DATARETENTIONTOOL=True \ -e ELASTICSEARCHTOOL=True \ -e EMOJITOOL=True \ -e EXPORTSTOOL=True \ -e FILESTOOL=True \ -e GROUPSTOOL=True \ -e IMPORTSTOOL=True \ -e IP_FILTERSTOOL=True \ -e JOBSTOOL=True \ -e KGTOOL=True \ -e LDAPTOOL=True \ -e LIMITSTOOL=True \ -e LOGSTOOL=True \ -e MATTERMOST_MCP_BASE_URL=http://localhost:8065 \ -e MATTERMOST_MCP_PACKAGE_DIR=./mattermost_mcp \ -e MATTERMOST_MCP_PASSWORD=mattermost_password \ -e MATTERMOST_MCP_USERNAME=mattermost_username \ -e MATTERMOST_TOKEN=mattermost_api_access_token \ -e MATTERMOST_URL=http://localhost:8065 \ -e METRICSTOOL=True \ -e OAUTHTOOL=True \ -e OUTGOING_OAUTH_CONNECTIONSTOOL=True \ -e PERMISSIONSTOOL=True \ -e PLUGINSTOOL=True \ -e POSTSTOOL=True \ -e PREFERENCESTOOL=True \ -e PROPERTIESTOOL=True \ -e REACTIONSTOOL=True \ -e RECAPSTOOL=True \ -e REMOTECLUSTERSTOOL=True \ -e REPORTSTOOL=True \ -e ROLESTOOL=True \ -e SAMLTOOL=True \ -e SCHEDULED_POSTTOOL=True \ -e SCHEMESTOOL=True \ -e SERVICE_TERMSTOOL=True \ -e SHAREDCHANNELSTOOL=True \ -e STATUSTOOL=True \ -e SYSTEMTOOL=True \ -e TEAMSTOOL=True \ -e UPLOADSTOOL=True \ -e USAGETOOL=True \ -e USERSTOOL=True \ -e VIEWSTOOL=True \ -e WEBHOOKSTOOL=True \ registry.example.invalid/mattermost-mcp@sha256:
Auto-generated from the code-read env surface (package vars) — do not edit.
This package uses the standardized Meristem dynamic facade architecture:
graph TD User([User Agent]) --> Server[FastMCP Server] Server --> Facade[Api Dynamic Facade] Facade --> ClientBase[ApiClientBase] Facade --> Auth[Credentials Auth Handler] ClientBase --> Service([External Service API]) Deployment
Bare-Metal (Standard pip)
Set up the operator's Python virtual environment (>= 3.10).
Install the package: pip install .[all]
Export credentials: export MATTERMOST_URL="http://localhost:8065"
Run: python -m mattermost_mcp.mcp_server
Container (Docker Compose)
A standard compose structure is provided inside the docker/ folder. Build and deploy:
docker compose -f docker/compose.yml up --build -d Additional Deployment Options
mattermost-mcp can run as a local stdio process or container, or behind a remote network boundary. The Deployment guide carries the detailed transport contract.
Local container — launch a reviewed immutable image as a least-privilege stdio child with no listener or published port.
Remote URL — connect through an operator-supplied authenticated HTTPS ingress. Keep its URL, outbound identity references, trust profile, and exact MCP_ALLOWED_HOSTS in AgentConfig.
Environment Variables
Package environment variables
Inherited scion-sdk variables (apply to every connector)
68 package + 23 inherited variable(s). Auto-generated from .env.example + the shared scion-sdk set — do not edit.
Every variable the server reads. A local template is provided inside .env.example — copy it to .env and fill in the operator's endpoint/credentials.
Connection & Credentials
MCP server / transport
Each action-routed tool can be disabled individually via its toggle env var (set to false). The full list is in the MCP Tools table above (e.g. CHANNELSTOOL, POSTSTOOL, USERSTOOL, TEAMSTOOL).
Pick the extra that matches what the operator want to run:
# Connector-focused MCP server (includes the shared graph engine) uv pip install "mattermost-mcp[mcp]" # Agent runtime (adds model orchestration to the shared graph engine) # Everything (development) uv pip install "mattermost-mcp[all]" # or: python -m pip install "mattermost-mcp[all]" Container images (:mcp)
One multi-stage docker/Dockerfile builds the MCP-only image (--target mcp):
docker build --target mcp -t example/mattermost-mcp:mcp docker/ # connector-focused MCP server agent (immutable agent digest) with a co-located :mcp sidecar.
Knowledge-graph database (medulla)
Scion SDK core dependency (medulla[full]). The [mcp] extra keeps deployments can use the bundled engine. For production or shared state, run medulla as a dedicated database service and configure the runtime to use it. Deployment recipes (single-node + Raft HA), connection configuration, and architecture diagrams are documented in the medulla deployment guide.
The operator can start the FastMCP server in stdio mode via Python module execution:
import asyncio from mattermost_mcp.mcp_server import get_mcp_instance async def main(): mcp = get_mcp_instance() # Execute stdio loop or launch server print("MCP Server ready.") if __name__ == "__main__": asyncio.run(main()) For direct shell start, run:
python -m mattermost_mcp.mcp_server Tool names: v2.2.x to v2.3.0+
Up to v2.2.x this server served 57 tools: 53 action-routed group tools named mattermost_mcp_
Types come from the official Mattermost API v4 OpenAPI source (mattermost/mattermost api/v4/source, published at api.mattermost.com) at v11.11.1, which is the deployed server's version. A body field whose name is a Python keyword (from) keeps its name in the tool schema through a pydantic field alias (scion-sdk 0.3.8); the client receives it as from_ and sends from.
The complete documentation is published as the official documentation site and is the recommended reference for installation, deployment, and day-to-day operation.
Please audit all code changes against the repository's contribution and review requirements, and run:
pre-commit run --all-files License
This project is licensed under the MIT License. See the LICENSE file for complete details.
Deploy with scion-sdk-deployment
Provision this package with the consolidated scion-sdk-deployment workflow. It selects an installed-package, editable-source, or immutable-container path; records only runtime secret and TLS-profile references in AgentConfig; and runs doctor, registration, policy, observability, and rollback gates. Ask your agent to "deploy mattermost-mcp with scion-sdk-deployment".
The repository embeds no deployment profile, credential value, certificate path, or environment-specific endpoint. Supply those at runtime through AgentConfig and the configured secret provider.
Governed capability contract
This package ships a compact canonical skill surface with specialist procedures kept as referenced workflows. The current MCP tools, skill metadata, connector_manifest.yml, ontology, mappings, shapes, fixtures, migrations, tool-schema fingerprints, and certification metadata form one versioned capability contract. Validate them together; do not rely on stale tool names or historical per-task skill wrappers.
Runtime endpoints, credentials, certificate trust, tenant identity, retention, and observability policy are deployment inputs and are never packaged values. See Configuration, trust, and privacy before enabling a network transport, connector ingestion, Arbora delegation, or trace export.
Released: Dec 4, 2026
Author: Repository Maintainers
Development Status 4 - Beta
License OSI Approved :: MIT License
Operating System POSIX :: Linux
Programming Language Python :: 3
Release files for mattermost-mcp 2.4.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 369.2 kB
Release files / mattermost_mcp-2.4.11.tar.gz
Release files / mattermost_mcp-2.4.11-py3-none-any.whl
Security for mattermost-mcp 2.4.11
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Nov 13, 2026 2 release files No provenance
Dec 4, 2026 2 release files No provenance
Nov 12, 2026 2 release files No provenance
Oct 31, 2026 2 release files No provenance
Oct 30, 2026 2 release files No provenance
Oct 26, 2026 2 release files No provenance
Oct 23, 2026 2 release files No provenance
Oct 18, 2026 2 release files No provenance
Oct 18, 2026 1 release file No provenance
Jul 2, 2026 2 release files No provenance
Jun 17, 2026 2 release files No provenance
Jun 13, 2026 2 release files No provenance
Jun 10, 2026 2 release files No provenance
Jun 6, 2026 2 release files No provenance
Jun 4, 2026 2 release files No provenance
Jun 1, 2026 2 release files No provenance
May 31, 2026 2 release files No provenance
May 29, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from 1274d9b











