Back to search
mattermost-mcp
MCP serverGitHub
An MCP server for mattermost written in Go
Safety scan
A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.
Checked today
Badge for your README
Markdown
[](/listings/hosseinmirzapur--mattermost-mcp)HTML
<a href="/listings/hosseinmirzapur--mattermost-mcp"><img src="/api/listings/hosseinmirzapur--mattermost-mcp/badge.svg" alt="findsafeskills safety rating" /></a>Install
i
What was scanned
The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.
README.md · README · 49 lines
- # mattermost-mcp
- Read-only MCP server for a self-hosted Mattermost. Lets an AI agent read channels, teams and search results using your own session token. It has no write tools.
- ## Tools
- | Tool | Purpose |
- | --- | --- |
- | `get_me` | Logged-in user profile |
- | `list_teams` | Teams you belong to |
- | `list_channels` | Channels (optional `team_id`; omit to include DMs and group messages) |
- | `get_channel_posts` | Messages in a channel, newest first (`channel_id`, `per_page`, `page`) |
- | `search_posts` | Search a team (`team_id`, `terms`, supports `in:`, `from:`, `before:`, `after:`) |
- ## Build
- ```sh
- make test
- make docker-build # image: mattermost-mcp:latest
- ```
- ## Configure
- ```sh
- cp .env.example .env # then edit .env
- ```
- - `MATTERMOST_URL`: base URL of your server, for example `https://mm.company.internal`.
- - `MATTERMOST_TOKEN`: the `MMAUTHTOKEN` cookie value from your browser (DevTools → Application → Cookies). It is equivalent to being logged in, so keep it in `.env` only. It stops working when you log out.
- ## Register with Claude Code
- Pass the env file by path so the token never appears on the command line or in shell history:
- ```sh
- claude mcp add mattermost -- docker run -i --rm \
- --env-file /home/smartinex/workspace/docker/mattermost/.env \
- mattermost-mcp:latest
- ```
- Restart Claude Code, then run `/mcp` to check that `mattermost` is connected.
- ## Notes
- - Plain `http` is refused unless `MATTERMOST_ALLOW_HTTP=1`.
- - Redirects are not followed, so the token is never sent to another host.
- - Certificates come from the image's CA bundle. If your server uses an internal CA, add it to a derived image.
- - Logs go to stderr. Stdout is reserved for the MCP protocol.
- - Your company may need to know about AI tools that read internal chat. Check policy before using this on real data.
Ratings and comments
Sign in to rate this skill.
Sign inFree to use. If it’s helped, pass it on.