yt-slack-mcp
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 |
| Liest eine Nachricht oder einen Thread aus einem Permalink (PDFs/Bilder inklusive) |
| Liest Antworten zu einem Thread anhand von Channel-ID + Zeitstempel |
| Liest den letzten Channel-Verlauf |
| Antwortet auf einen Thread (auf erlaubte Channels beschränkt) |
| 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 namensd.
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.txtOder ü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 |
|
|
| Verzeichnis, das die Token-Dateien enthält |
|
|
| Pfad zum |
|
|
| Pfad zum |
|
| (keine) | Channel-IDs, die für Schreib-Werkzeuge erlaubt sind (in der Umgebungsvariable per Komma getrennt) |
|
|
| HTTP- |
(Konfigurationsdatei-Pfad) |
|
| 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
This server cannot be installed
Maintenance
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
- AlicenseNot gradedqualityCmaintenanceSelf-hosted MCP server for Slack using User OAuth Token, enabling message management, channel operations, and user interactions via natural language.25MIT
- AlicenseNot gradedqualityBmaintenanceA 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,956MIT
- AlicenseNot gradedqualityBmaintenanceMCP server for interacting with Slack using a user token. It allows reading channels, DMs, threads, search, and posting messages as the authenticated user.25MIT
- AlicenseAqualityCmaintenanceMCP 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).10MIT
Related MCP Connectors
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
A basic MCP server to operate on the Postman API.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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