Skip to main content
Glama
yentsun

yt-slack-mcp

by yentsun

yt-slack-mcp

MCP-Server für Slack — Permalinks, Threads und Channel-Verlauf lesen; auf Threads antworten; Reaktionen hinzufügen.

Implementiert die Spezifikation des Model Context Protocol: Es läuft über den stdio-Transport, spricht JSON-RPC 2.0, verhandelt die Protokollversion bei initialize, meldet tools-Fähigkeiten und beschreibt jedes Werkzeug mit einem JSON Schema. Die Aushandlung der Protokollversion wird von der Server-Klasse des @modelcontextprotocol/sdk übernommen, die standardmäßig die neueste unterstützte Version verwendet.

Werkzeuge

Werkzeug

Beschreibung

slack_read_permalink

Liest eine Nachricht oder einen Thread aus einem Permalink (PDFs/Bilder inklusive)

slack_get_replies

Liest Antworten zu einem Thread anhand von Channel-ID + Zeitstempel

slack_get_history

Liest den letzten Channel-Verlauf

slack_reply_to_thread

Antwortet auf einen Thread (auf erlaubte Channels beschränkt)

slack_add_reaction

Fügt eine Reaktion hinzu (auf erlaubte Channels beschränkt)

Lese-Werkzeuge verwenden die private Slack-Browser-Session-API (über xoxc- / xoxd-Tokens) und können so private Dateiinhalte abrufen — PDFs werden heruntergeladen und Text extrahiert (bis zu 50 Seiten / 100k Zeichen), Bilder werden inline zurückgegeben.

Related MCP server: Slack MCP Server

Einrichtung

1. Browser-Session-Tokens abrufen

  • xoxc: localStorage-Token der Slack-Web-App (aus deiner angemeldeten Browser-Sitzung).

  • xoxd: Slack-Cookie namens d.

Diese müssen möglicherweise aktualisiert werden, wenn Slack die Sitzung rotiert/ungültig macht.

2. Die Geheimnisse ablegen

Speichere jedes Token als einzeilige Datei:

~/.config/opencode/secrets/slack-xoxc.txt
~/.config/opencode/secrets/slack-xoxd.txt

Oder überschreibe die Pfade über die Konfigurationsdatei oder Umgebungsvariablen.

3. (Optional) Erlaubte Schreibkanäle und Pfade konfigurieren

Die gesamte Konfiguration kann in einer JSON-Konfigurationsdatei unter ~/.config/yt-slack-mcp/config.json liegen (überschreibbar mit SLACK_MCP_CONFIG):

{
  "secretsDir": "~/.config/opencode/secrets",
  "xoxcPath": "~/.config/opencode/secrets/slack-xoxc.txt",
  "xoxdPath": "~/.config/opencode/secrets/slack-xoxd.txt",
  "allowedWriteChannels": ["C0123456789", "C0987654321"],
  "userAgent": "Mozilla/5.0"
}

Standardmäßig sind die Schreib-Werkzeuge (slack_reply_to_thread, slack_add_reaction) gesperrt — kein Channel ist beschreibbar. Jedes Feld ist optional; eine fehlende Datei bedeutet lediglich Standardwerte. Umgebungsvariablen überschreiben immer die Konfigurationsdatei.

Konfiguration

Reihenfolge der Konfigurationsauflösung: eingebaute Standardwerte → Konfigurationsdatei → Umgebungsvariablen.

Konfigurationsdatei-Schlüssel

Umgebungsvariable

Standard

Beschreibung

secretsDir

SLACK_MCP_SECRETS_DIR

~/.config/opencode/secrets

Verzeichnis, das die Token-Dateien enthält

xoxcPath

SLACK_MCP_XOXC_PATH

$SECRETS_DIR/slack-xoxc.txt

Pfad zum xoxc-Token

xoxdPath

SLACK_MCP_XOXD_PATH

$SECRETS_DIR/slack-xoxd.txt

Pfad zum xoxd-Token

allowedWriteChannels

SLACK_MCP_ALLOWED_WRITE_CHANNELS

(keine)

Channel-IDs, die für Schreib-Werkzeuge erlaubt sind (in der Umgebungsvariable per Komma getrennt)

userAgent

SLACK_MCP_USER_AGENT

Mozilla/5.0

HTTP-User-Agent-Header

(Konfigurationsdatei-Pfad)

SLACK_MCP_CONFIG

~/.config/yt-slack-mcp/config.json

Pfad zur JSON-Konfigurationsdatei

MCP-Host-Konfiguration

opencode

{
  "mcp": {
    "slack": {
      "type": "local",
      "command": ["npx", "yt-slack-mcp"]
    }
  }
}

Claude Desktop

{
  "mcpServers": {
    "slack": {
      "command": "npx",
      "args": ["yt-slack-mcp"]
    }
  }
}

Lizenz

MIT

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    A production-ready MCP server for the Slack API that enables searching, listing channels, reading history, inspecting users, fetching threads, and sending messages through controlled Slack tools.
    16,956
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    MCP server for interacting with Slack using a user token. It allows reading channels, DMs, threads, search, and posting messages as the authenticated user.
    25
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    MCP server that reads Slack through your own browser session, authenticating as you rather than a bot. Provides tools to search messages, retrieve channel/DM/thread history, resolve users, and post messages (write disabled by default).
    10
    MIT

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yentsun/slack-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server