Atlas / MCP servers / jagan-shanmugam / Mattermost Host

Mattermost HostBLOCK

mcp/jagan-shanmugam/mattermost-host

A Mattermost integration that connects to Model Context Protocol (MCP) servers, leveraging a LangGraph-based Agent.

Verdict
BLOCK
Grade
D
Trust score
69 /100
Exposed tools
10 7r · 3w · 0d
Transport
stdio
License
MIT
Stars
34
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

A Mattermost integration that connects to Model Context Protocol (MCP) servers, leveraging a LangGraph-based AI agent to provide an intelligent interface for interacting with users and executing tools directly within Mattermost.

Demo

1. Github Agent in support channel - searches the existing issues and PRs and creates a new issue if not found

2. Search internet and post to a channel using Mattermost-MCP-server

Scroll below for full demo in YouTube

Features

  • 🤖 Langgraph Agent Integration: Uses a LangGraph agent to understand user requests and orchestrate responses.
  • 🔌 MCP Server Integration: Connects to multiple MCP servers defined in mcp-servers.json.
  • 🛠️ Dynamic Tool Loading: Automatically discovers tools from connected MCP servers and makes them available to the AI agent. Converts MCP tools to langchain structured tools.
  • 💬 Thread-Aware Conversations: Maintains conversational context within Mattermost threads for coherent interactions.
  • 🔄 Intelligent Tool Use: The AI agent can decide when to use available tools (including chaining multiple calls) to fulfill user requests.
  • 🔍 MCP Capability Discovery: Allows users to list available servers, tools, resources, and prompts via direct commands.
  • #️⃣ Direct Command Interface: Interact directly with MCP servers using a command prefix (default: #).

Overview

The integration works as follows:

  1. Mattermost Connection (`mattermost_client.py`): Connects to the Mattermost server via API and WebSocket to listen for messages in a specified channel.
  2. **MCP Connections (`mcp_clien
Read from source at commit 2d4fd778af51OBSERVED · 2026-10-08
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add mattermost-mcp-host --env AZURE_OPENAI_API_KEY=${AZURE_OPENAI_API_KEY} --env MATTERMOST_TOKEN=${MATTERMOST_TOKEN} -- uvx mattermost-mcp-host
claude-desktop
{
  "mcpServers": {
    "mattermost-mcp-host": {
      "command": "uvx",
      "args": [
        "mattermost-mcp-host"
      ],
      "env": {
        "AZURE_OPENAI_API_KEY": "${AZURE_OPENAI_API_KEY}",
        "MATTERMOST_TOKEN": "${MATTERMOST_TOKEN}"
      }
    }
  }
}
03

Exposed tools (10)

7 read · 3 write · 0 destructive.

ToolRiskDescription
add-reactionwriteAdd a reaction emoji to a post
chatreadChat with Ollama model
create-project-channelwriteCreate a new channel for a project
echoreadEcho a message
generatereadGenerate text using Ollama
list_modelsreadList all available models from Ollama
pin-important-messagereadPin an important message in a channel
post-messagewritePost a message to a Mattermost channel
reversereadReverse a message
search-postsreadSearch for posts with specific keywords
04

Trust audit

BLOCKgrade D · trust 69/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
none-observed
Network
declared (5 observation(s))
Shell
declared (1 observation(s))
Dependencies
pinned
Secrets in source
none-found

Findings (6)

HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
src/mattermost_mcp_host/agent/tools.py:19
result = eval(expression, {"__builtins__": {}}, {"abs": abs, "round": round, "max": max, "min": min})
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
INFOInventory / provenance · inv.oversize · CWE-1104
demo/demo-1.gif
demo/demo-1.gif
Why it matters. 35554088 bytes not read
INFOInventory / provenance · inv.oversize · CWE-1104
demo/demo-2.gif
demo/demo-2.gif
Why it matters. 12081292 bytes not read
INFOInventory / provenance · inv.oversize · CWE-1104
demo/demo-3.gif
demo/demo-3.gif
Why it matters. 9204181 bytes not read
INFOPrompt injection · prompt.credential_read · CWE-94, CWE-1427
README.md:145
- Save the access token in the .env file
Why it matters. asks the agent to read credentials
INFOSupply chain · prompt.pipe_to_shell · CWE-829, CWE-1357
README.md:58
# curl -LsSf https://astral.sh/uv/install.sh | sh

Gates applied: no_behavioural_pass.

Audited 2026-10-08 · audit v0.4.1 · source sha 2d4fd778af51full audit observations/trust-audit/mcp-server/jagan-shanmugam__mattermost-host.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-082d4fd778af51BLOCKD69first audit
06

Questions

What is the Mattermost Host MCP server?

A Mattermost integration that connects to Model Context Protocol (MCP) servers, leveraging a LangGraph-based Agent.

What tools does Mattermost Host expose?

10 in total: 7 read-only, 3 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is Mattermost Host safe to connect to an agent?

No — not without reading the findings first. The audit graded it D (69/100) and found 1 critical or high issue in the source. Each one is listed on this page with the file and line it is on.

What credentials does Mattermost Host need?

It reads AZURE_OPENAI_API_KEY and MATTERMOST_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does Mattermost Host run?

It speaks stdio, so it runs as a local process your client starts. It is published on PyPI as mattermost-mcp-host.

How current is this page?

The grade is for one exact copy of the source (2d4fd778af51), read on 2026-10-08. The repository is watched and re-audited when it changes.

Advertisement