Logo di MCP Server Mattermost

MCP Server Mattermost

Organizzazione
cloud-ru-tech

MCP server for Mattermost — let Claude, Cursor, and other AI assistants work with channels, messages, and files

Autorecloud-ru-tech
Repositorymcp-server-mattermost
LinguaPython
Fork
11
Stelle
48
Strumenti disponibili
0
Tipo di trasportostdio, streamable-http
Categorie
LicenzaMIT
Link
  • Collega gli strumenti ai flussi di lavoro IA

    MCP Server Mattermost mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • 0 strumenti disponibili

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni quando forniti dal server.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse open source

    48 stelle e 11 fork nel repository collegato.

mcp-server-mattermost

Let AI assistants read, search, and post in your Mattermost workspace

39 tools · Channels · Messages · Reactions · Threads · Files · Users

MCP Server PyPI version Docker Pulls Tests Python 3.10+ License: MIT Docs

Features

Channels — list, create, join, manage channels and DMs Messages — send, search, edit, delete with rich attachments Reactions & Threads — emoji reactions, pins, full thread history Users & Teams — lookup, search, status Files — upload, metadata, download links Bookmarks — save links and files in channels (Entry+ edition)

Example Queries

Once configured, you can ask your AI assistant:

  • "List all channels and find where the deployment discussion is happening"
  • "What did I miss in #engineering since yesterday morning?"
  • "Show me my unread channels and summarize the threads I was mentioned in"
  • "Send a build status alert to #engineering with a red attachment"
  • "Search for messages about the outage last week and summarize"
  • "Summarize this thread and post the key decisions"
  • "Find who worked on the authentication bug last week"
  • "Upload the report.pdf to #general and share the link"

Available Tools

ToolDescriptionKey Parameters
list_public_channelsList public channels in a teamteam_id ✓
list_my_channelsList your channels with unread countsteam_id ✓, only_unread
get_channelGet channel details by IDchannel_id ✓
get_channel_by_nameGet channel by nameteam_id, channel_name ✓
create_channelCreate a new channelteam_id, name, display_name ✓
join_channelJoin a public channelchannel_id ✓
leave_channelLeave a channelchannel_id ✓
mark_channel_viewedMark a channel as viewed (reset unread counters)channel_id ✓
get_channel_membersList channel memberschannel_id ✓
add_user_to_channelAdd user to channelchannel_id, user_id ✓
create_direct_channelCreate DM channeluser_id_1, user_id_2 ✓
ToolDescriptionKey Parameters
post_messageSend a message to a channelchannel_id, message ✓, attachments
get_channel_messagesGet messages: recent, unread window, or since timestampchannel_id ✓, unread_only, since
search_messagesSearch messages by termteam_id, terms ✓
update_messageEdit a messagepost_id, message ✓, attachments
delete_messageDelete a messagepost_id ✓
ToolDescriptionKey Parameters
add_reactionAdd emoji reactionpost_id, emoji_name ✓
remove_reactionRemove emoji reactionpost_id, emoji_name ✓
get_reactionsGet all reactions on a postpost_id ✓
pin_messagePin a messagepost_id ✓
unpin_messageUnpin a messagepost_id ✓
get_threadGet thread messagespost_id ✓
ToolDescriptionKey Parameters
get_meGet current user info—
get_userGet user by IDuser_id ✓
get_user_by_usernameGet user by usernameusername ✓
search_usersSearch usersterm ✓
get_user_statusGet online statususer_id ✓
ToolDescriptionKey Parameters
list_teamsList your teams—
get_teamGet team detailsteam_id ✓
get_team_membersList team membersteam_id ✓
ToolDescriptionKey Parameters
upload_fileUpload a filechannel_id, file_path ✓
get_file_infoGet file metadatafile_id ✓
get_file_linkGet download linkfile_id ✓
download_fileSave a file attachment locallyfile_id, destination_dir ✓

Note: Requires Entry, Professional, Enterprise, or Enterprise Advanced edition (not available in Team Edition). Minimum version: v10.1.

ToolDescriptionKey Parameters
list_bookmarksList channel bookmarkschannel_id ✓
create_bookmarkCreate link or file bookmarkchannel_id, display_name, bookmark_type ✓
update_bookmarkUpdate bookmark propertieschannel_id, bookmark_id ✓
delete_bookmarkDelete a bookmarkchannel_id, bookmark_id ✓
update_bookmark_sort_orderReorder bookmarkchannel_id, bookmark_id, new_sort_order ✓

Quick Start

  1. Get a Mattermost bot token
  2. Add to your MCP client config:
json
{
  "mcpServers": {
    "mattermost": {
      "command": "uvx",
      "args": ["mcp-server-mattermost"],
      "env": {
        "MATTERMOST_URL": "https://your-server.com",
        "MATTERMOST_TOKEN": "your-token"
      }
    }
  }
}
  1. Restart your client

Full setup guide — Claude Desktop, Cursor, Claude Code, Opencode, Docker, pip

Configuration

VariableRequiredDefaultDescription
MATTERMOST_URLYes—Mattermost server URL
MATTERMOST_AUTH_MODENostatic_tokenAuth mode: static_token, client_token, or oauth_proxy
MATTERMOST_TOKENConditional—Bot or personal token. Required for static_token.
MATTERMOST_TIMEOUTNo30Request timeout in seconds
MATTERMOST_MAX_RETRIESNo3Max retry attempts
MATTERMOST_VERIFY_SSLNotrueVerify SSL certificates
MATTERMOST_MAX_CONNECTIONSNo100Max HTTP connections in the shared pool
MATTERMOST_MAX_KEEPALIVE_CONNECTIONSNo20Max idle keepalive connections, clamped to max connections
MATTERMOST_KEEPALIVE_EXPIRYNo30.0Idle keepalive connection lifetime in seconds
MATTERMOST_EXTRA_CA_CERTSNo—Path to extra PEM CAs appended to the default trust store
MATTERMOST_LOG_LEVELNoINFOLogging level
MATTERMOST_LOG_FORMATNojsonLog output format: json or text
MATTERMOST_API_VERSIONNov4Mattermost API version

For client_token and oauth_proxy modes — including Mattermost OAuth App registration, all MATTERMOST_OAUTH_* settings, and MCP client connection — see Authentication.

Docker

Stdio mode (default)

bash
docker run -i --rm \
  -e MATTERMOST_URL=https://your-mattermost.com \
  -e MATTERMOST_TOKEN=your-token \
  legard/mcp-server-mattermost
json
{
  "mcpServers": {
    "mattermost": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-e", "MATTERMOST_URL=https://your-mattermost.com",
        "-e", "MATTERMOST_TOKEN=your-token",
        "legard/mcp-server-mattermost"
      ]
    }
  }
}

HTTP mode (production)

For networked HTTP use per-client auth. static_token over HTTP serves an unauthenticated endpoint acting with the shared token (the server starts but logs a loud warning) — see Authentication → HTTP transport.

bash
docker run -d -p 8000:8000 \
  -e MCP_TRANSPORT=http \
  -e MCP_HOST=0.0.0.0 \
  -e MATTERMOST_AUTH_MODE=client_token \
  -e MATTERMOST_URL=https://your-mattermost.com \
  -e MATTERMOST_HTTP_HOST_ORIGIN_PROTECTION=auto \
  -e MATTERMOST_HTTP_ALLOWED_HOSTS=mcp.example.com \
  legard/mcp-server-mattermost

client_token means each MCP client authenticates with its own Mattermost token, sent as Authorization: Bearer <token> — a client configured without one gets 401. The two MATTERMOST_HTTP_* variables turn on Host/Origin (DNS-rebinding) protection, which is off by default; see HTTP transport security.

Health check: curl http://localhost:8000/health

HTTP mode with Mattermost OAuth proxy

Register a Mattermost OAuth 2.0 Application first:

Mattermost fieldProduction value
Is TrustedYes
Is Public ClientNo
Callback URLshttps://mcp.example.com/oauth/callback/mm

Then run the MCP server:

bash
docker run -d -p 8000:8000 \
  -e MCP_TRANSPORT=http \
  -e MCP_HOST=0.0.0.0 \
  -e MATTERMOST_AUTH_MODE=oauth_proxy \
  -e MATTERMOST_URL=https://mattermost.internal \
  -e MATTERMOST_OAUTH_MATTERMOST_PUBLIC_URL=https://mattermost.example.com \
  -e MATTERMOST_OAUTH_MCP_PUBLIC_URL=https://mcp.example.com \
  -e MATTERMOST_OAUTH_CLIENT_ID=your-mattermost-oauth-app-id \
  -e MATTERMOST_OAUTH_CLIENT_TYPE=confidential \
  -e MATTERMOST_OAUTH_CLIENT_SECRET=your-mattermost-oauth-app-secret \
  legard/mcp-server-mattermost

If your Mattermost login uses Keycloak SSO, users authenticate through Keycloak inside the Mattermost OAuth login flow. The MCP server does not need a Keycloak client.

Connect Claude Code with Dynamic Client Registration:

bash
claude mcp add --transport http mattermost https://mcp.example.com/mcp

Do not pass --client-id for this server; the MCP client registers with the MCP server, and the MCP server uses the fixed Mattermost OAuth App upstream.

Environment Variables (Docker)

VariableDefaultDescription
MCP_TRANSPORTstdioTransport: stdio or http
MCP_HOST127.0.0.1HTTP bind host (use 0.0.0.0 in Docker)
MCP_PORT8000HTTP port

Documentation

📖 mcp-server-mattermost.readthedocs.io

Development

bash
# Clone and install
git clone https://github.com/cloud-ru-tech/mcp-server-mattermost
cd mcp-server-mattermost
uv sync --dev

# Run unit tests
uv run pytest

# Run integration tests (requires Docker or external Mattermost)
uv run pytest tests/integration -v

# Type checking
uv run mypy src/

# Linting
uv run ruff check src/ tests/

# Run locally
MATTERMOST_URL=https://... MATTERMOST_TOKEN=... uv run mcp-server-mattermost

Integration Tests

Integration tests run against a real Mattermost server via Docker (Testcontainers) or external server.

bash
# With Docker (Testcontainers) — automatic setup
uv run pytest tests/integration -v

# Against external Mattermost server
export MATTERMOST_URL=https://your-server.com
export MATTERMOST_TOKEN=your-bot-token
uv run pytest tests/integration -v

# Run specific test module
uv run pytest tests/integration/test_channels.py -v

Integration tests are excluded from the default pytest run. Unit tests run with:

bash
uv run pytest  # Unit tests only

Debugging

Use the MCP Inspector to debug:

bash
npx @modelcontextprotocol/inspector uvx mcp-server-mattermost

Contributing

Contributions welcome! See CONTRIBUTING.md for guidelines.

License

MIT — see LICENSE for details.


Built with FastMCP · Mattermost API v4

Installazione

TypingMind
{
  "mcpServers": {
    "mcp-server-mattermost": {
      "command": "uvx",
      "args": [
        "mcp-server-mattermost"
      ]
    }
  }
}

Usa MCP MCP Server Mattermost con più modelli IA

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso MCP Server Mattermost, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Puoi eseguire MCP localmente sul tuo dispositivo o connetterti all'URL di un server MCP remoto.

Opzione 1: usa il connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura MCP.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura MCP e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con Questo dispositivo selezionato
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi MCP Server Mattermost come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di MCP Server Mattermost.
  4. Salva l'elenco dei server.
  5. Aggiorna per verificare che il connettore sia ancora pronto.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "mcp-server-mattermost": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di MCP Server Mattermost, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di MCP Server Mattermost.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare MCP Server Mattermost per aiutarmi con questa attività?
MCP Server Mattermost
Certo. Ho letto.
Ecco cosa ho trovato con MCP Server Mattermost.

Opzione 2: aggiungi l'URL di un server MCP

Usa questo metodo se MCP Server Mattermost è già ospitato in remoto o se il tuo team vuole un unico connettore condiviso accessibile a più utenti.

1

Apri Connettori MCP

In TypingMind, vai su Plugin, apri Connettori MCP e scegli Aggiungi URL.

  1. Apri TypingMind nel tuo browser.
  2. Vai a Plugin.
  3. Apri Connettori MCP.
  4. Fai clic su Aggiungi URL.
Modulo di TypingMind per aggiungere l'URL di un server MCP personalizzato
2

Incolla l'URL del server

Inserisci l'URL del server MCP fornito dal provider nel campo URL del server. Aggiungi un nome per la connessione, una descrizione, un'icona, header HTTP personalizzati o le impostazioni del client OAuth se richiesti dal server.

  1. Incolla l'URL del server MCP fornito dal provider nel campo URL del server.
  2. Inserisci un nome per la connessione a MCP Server Mattermost.
  3. Aggiungi una descrizione e un'icona per riconoscere più facilmente la connessione.
  4. Aggiungi header HTTP personalizzati o i dati del client OAuth se il server richiede l'autenticazione.
3

Crea la connessione

Fai clic su Crea connessione, poi torna all'elenco dei plugin e verifica che la nuova connessione MCP sia attiva.

  1. Fai clic su Crea connessione.
  2. Torna all'elenco dei connettori MCP.
  3. Verifica che la connessione MCP Server Mattermost risulti attiva.
  4. Aggiorna l'elenco dei plugin se la connessione non appare subito.
4

Cambia modello senza riconnetterti

Avvia una chat con il tuo modello preferito, abilita gli strumenti di MCP Server Mattermost dalla sezione Plugin e passa a un altro modello quando serve. La connessione MCP rimane disponibile nell'area di lavoro di TypingMind.

  1. Avvia una nuova chat in TypingMind.
  2. Seleziona il modello IA che vuoi usare.
  3. Abilita gli strumenti di MCP Server Mattermost dalla sezione Plugin.
  4. Chiedi al modello di usare lo strumento quando serve.
  5. Passa a un altro modello IA e riutilizza la stessa connessione MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare MCP Server Mattermost per aiutarmi con questa attività?
MCP Server Mattermost
Certo. Ho letto.
Ecco cosa ho trovato con MCP Server Mattermost.

Domande frequenti

A cosa serve il server MCP MCP Server Mattermost?

MCP Server Mattermost è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare MCP Server Mattermost MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare MCP Server Mattermost con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP MCP Server Mattermost con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando MCP Server Mattermost, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego MCP Server Mattermost MCP a TypingMind?

Puoi collegare MCP Server Mattermost a TypingMind con il connettore MCP locale oppure aggiungendo l'URL di un server MCP remoto. Usa il connettore locale quando il server deve accedere a file, app o risorse private sul tuo dispositivo; usa invece l'URL del server quando il server MCP è ospitato in remoto.

Quali strumenti offre MCP Server Mattermost MCP in TypingMind?

MCP Server Mattermost mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare MCP Server Mattermost MCP?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se MCP Server Mattermost richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇