Logotipo de MCP Server Mattermost

MCP Server Mattermost

Organización
cloud-ru-tech

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

Editorcloud-ru-tech
Repositoriomcp-server-mattermost
IdiomaPython
Forks
11
Estrellas
48
Herramientas disponibles
0
Tipo de transportestdio, streamable-http
Categorías
LicenciaMIT
Enlaces
  • Conecta herramientas a flujos de trabajo con IA

    MCP Server Mattermost ofrece funciones MCP que pueden usar los clientes y agentes de IA compatibles.

  • 0 herramientas disponibles

    Explora a continuación las acciones que se pueden invocar, con sus nombres y descripciones cuando el servidor los proporcione.

  • Configuración lista para copiar

    Usa los ejemplos de instalación para configurar este servidor en tu cliente MCP preferido.

  • Indicadores de interés en el código abierto

    48 estrellas y 11 forks en el repositorio enlazado.

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

Instalación

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

Usa el MCP de MCP Server Mattermost con varios modelos de IA

TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que, una vez conectado MCP Server Mattermost, puedes usarlo con distintos modelos de IA en TypingMind sin tener que configurarlo por separado para cada modelo. Puedes ejecutar MCP localmente en tu dispositivo o conectarte a la URL de un servidor MCP remoto.

Opción 1: Usa el conector local

Usa esta opción si el servidor MCP necesita acceder a archivos locales, aplicaciones o recursos privados de tu ordenador.

1

Abre los ajustes de MCP

En TypingMind, ve a Ajustes, luego a Ajustes avanzados y a Model Context Protocol, y elige Configurar conector.

  1. Abre TypingMind en tu navegador.
  2. Haz clic en el icono de Ajustes.
  3. Ve a Ajustes avanzados.
  4. Abre la sección Model Context Protocol.
  5. Haz clic en Configurar conector y elige Este dispositivo.
Pantalla de configuración del conector MCP de TypingMind con «Este dispositivo» seleccionado
2

Ejecuta el comando del conector

Elige Este dispositivo, copia el comando de TypingMind y ejecútalo en Terminal. Mantén el proceso en ejecución mientras uses MCP.

  1. Copia el comando de configuración que muestra TypingMind.
  2. Abre Terminal en macOS o Windows Terminal en Windows.
  3. Pega y ejecuta el comando.
  4. Acepta la instalación del paquete si Terminal te pide confirmación para continuar.
  5. Mantén el proceso en ejecución en la ventana de Terminal mientras uses las herramientas MCP.
3

Añade MCP Server Mattermost como servidor

Cuando el estado del conector sea «Listo», haz clic en «Edita servidores» y pega la configuración del servidor MCP.

  1. Espera hasta que el estado del conector indique «Listo».
  2. Haz clic en Edita servidores.
  3. Pega la configuración del servidor MCP de MCP Server Mattermost.
  4. Guarda la lista de servidores.
  5. Actualiza para comprobar que el conector sigue listo.
Ajustes de MCP de TypingMind con un servidor activo y el botón «Edita servidores»
{
  "mcpServers": {
    "mcp-server-mattermost": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Úsala con distintos modelos

Guarda la lista de servidores, abre Plugins, activa las herramientas MCP de MCP Server Mattermost y selecciona cualquier modelo de IA compatible en TypingMind para usar las herramientas en el chat o asignárselas a un agente de IA.

  1. Abre la página Plugins en TypingMind.
  2. Activa las herramientas MCP de MCP Server Mattermost.
  3. Inicia un chat y elige el modelo de IA que quieras usar.
  4. Usa las herramientas MCP en el chat o asígnalas a un agente de IA.
  5. Cambia a otro modelo de IA cuando lo necesites sin volver a conectar MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar MCP Server Mattermost para ayudarme con esta tarea?
MCP Server Mattermost
Claro. Lo he leído.
Esto he encontrado usando MCP Server Mattermost.

Opción 2: Añade la URL de un servidor MCP

Usa esta opción si MCP Server Mattermost ya está alojado en un servidor remoto o si tu equipo quiere un conector compartido al que puedan acceder varios usuarios.

1

Abre Conectores MCP

En TypingMind, ve a Plugins, abre Conectores MCP y elige Añadir URL.

  1. Abre TypingMind en tu navegador.
  2. Ve a Plugins.
  3. Abre Conectores MCP.
  4. Haz clic en Añadir URL.
Formulario de TypingMind para añadir la URL de un servidor MCP personalizado
2

Pega la URL del servidor

Introduce la URL del servidor MCP facilitada por el proveedor en el campo URL del servidor. Añade un nombre de conexión, una descripción, un icono, cabeceras HTTP personalizadas o la configuración del cliente OAuth si el servidor los requiere.

  1. Pega la URL del servidor MCP facilitada por el proveedor en el campo URL del servidor.
  2. Introduce un nombre para la conexión de MCP Server Mattermost.
  3. Añade una descripción y un icono si quieres que sea más fácil de identificar.
  4. Añade cabeceras HTTP personalizadas o los datos del cliente OAuth si el servidor requiere autenticación.
3

Crea la conexión

Haz clic en Crear conexión, vuelve a la lista de plugins y comprueba que la nueva conexión MCP esté activa.

  1. Haz clic en Crear conexión.
  2. Vuelve a la lista de conectores MCP.
  3. Comprueba que la conexión de MCP Server Mattermost aparezca como activa.
  4. Actualiza la lista de plugins si la conexión no aparece de inmediato.
4

Cambia de modelo sin volver a conectar

Inicia un chat con tu modelo preferido, activa las herramientas de MCP Server Mattermost desde Plugins y cambia de modelo cuando lo necesites. La conexión MCP seguirá disponible en el espacio de trabajo de TypingMind.

  1. Inicia un nuevo chat en TypingMind.
  2. Selecciona el modelo de IA que quieras usar.
  3. Activa las herramientas de MCP Server Mattermost desde Plugins.
  4. Pide al modelo que use la herramienta cuando sea necesario.
  5. Cambia a otro modelo de IA y reutiliza la misma conexión MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar MCP Server Mattermost para ayudarme con esta tarea?
MCP Server Mattermost
Claro. Lo he leído.
Esto he encontrado usando MCP Server Mattermost.

Preguntas frecuentes

¿Para qué sirve el servidor MCP MCP Server Mattermost?

MCP Server Mattermost es un servidor MCP que permite a los clientes de IA compatibles conectarse a herramientas y contexto externos. En TypingMind, basta con añadir este servidor MCP una vez para que sus herramientas estén disponibles en tu espacio de trabajo de IA.

¿Puedo usar el servidor MCP MCP Server Mattermost con varios modelos de IA en TypingMind?

Sí. TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que puedes usar MCP Server Mattermost con distintos modelos de IA, como Claude, ChatGPT, Gemini u otros que hayas configurado en TypingMind, sin configurar el servidor MCP por separado para cada modelo.

¿Por qué usar el conector MCP de MCP Server Mattermost con TypingMind?

TypingMind es una de las mejores interfaces de chat con LLM porque reúne varios modelos de IA, prompts, plugins, agentes de IA, claves de API y herramientas MCP en un solo espacio de trabajo. Con MCP Server Mattermost conectado, puedes usar sus herramientas MCP con tus modelos preferidos y mantener organizado tu flujo de trabajo de chat en TypingMind.

¿Cómo conecto el servidor MCP MCP Server Mattermost a TypingMind?

Puedes conectar MCP Server Mattermost en TypingMind con el conector MCP local o añadiendo la URL de un servidor MCP remoto. Usa el conector local cuando el servidor necesite acceder a archivos, aplicaciones o recursos privados de tu dispositivo, y una URL de servidor cuando el servidor MCP esté alojado de forma remota.

¿Qué herramientas ofrece el servidor MCP MCP Server Mattermost en TypingMind?

MCP Server Mattermost ofrece funciones MCP que puedes activar desde la página Plugins de TypingMind y usar en el chat o asignar a agentes de IA.

¿Tengo que compartir mis claves de API con TypingMind para usar el servidor MCP MCP Server Mattermost?

No. TypingMind prioriza el funcionamiento local y te permite mantener el control de tus proveedores de modelos, claves de API, prompts y configuración MCP. Si MCP Server Mattermost requiere autenticación, añade las cabeceras, los ajustes de OAuth o la configuración local necesarios para ese servidor MCP al crear la conexión.

Servidores MCP relacionados

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇