Skip to main content
Glama
yentsun

yt-slack-mcp

by yentsun

yt-slack-mcp

Slack용 MCP 서버 — permalink, 스레드, 채널 기록 읽기; 스레드에 답글 달기; 리액션 추가하기.

Model Context Protocol 사양을 구현합니다: stdio 전송으로 실행되며, JSON-RPC 2.0을 사용하고, initialize에서 프로토콜 버전을 협상하며, tools 기능을 광고하고, 각 도구를 JSON Schema로 설명합니다. 프로토콜 버전 협상은 @modelcontextprotocol/sdkServer 클래스가 처리하며, 기본값은 최신 지원 버전입니다.

도구

도구

설명

slack_read_permalink

permalink에서 메시지 또는 스레드 읽기 (PDF/이미지 포함)

slack_get_replies

채널 ID + 타임스탬프로 스레드의 답글 읽기

slack_get_history

최근 채널 기록 읽기

slack_reply_to_thread

스레드에 답글 달기 (허용된 채널로 제한)

slack_add_reaction

리액션 추가 (허용된 채널로 제한)

읽기 도구는 비공개 Slack 브라우저 세션 API(xoxc / xoxd 토큰)를 사용하므로 비공개 파일 내용을 가져올 수 있습니다 — PDF는 다운로드되어 텍스트로 추출되고(최대 50페이지 / 100k자), 이미지는 인라인으로 반환됩니다.

Related MCP server: Slack MCP Server

설정

1. 브라우저 세션 토큰 얻기

  • xoxc: Slack 웹 localStorage 토큰 (로그인된 브라우저 세션에서).

  • xoxd: d라는 이름의 Slack 쿠키.

Slack이 세션을 회전/무효화할 때 이 토큰들을 새로 고쳐야 할 수 있습니다.

2. 비밀 파일 배치

각 토큰을 한 줄짜리 파일로 저장하세요:

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

또는 구성 파일이나 환경 변수로 경로를 재정의할 수 있습니다.

3. (선택 사항) 허용된 쓰기 채널 및 경로 구성

모든 구성은 ~/.config/yt-slack-mcp/config.json의 JSON 구성 파일에 넣을 수 있습니다 (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"
}

기본적으로 쓰기 도구(slack_reply_to_thread, slack_add_reaction)는 잠겨 있습니다 — 어떤 채널도 쓰기 가능하지 않습니다. 모든 필드는 선택 사항이며, 파일이 없으면 기본값을 의미합니다. 환경 변수는 항상 구성 파일보다 우선합니다.

구성

구성 해석 순서: 내장 기본값 → 구성 파일 → 환경 변수.

구성 파일 키

환경 변수

기본값

설명

secretsDir

SLACK_MCP_SECRETS_DIR

~/.config/opencode/secrets

토큰 파일이 있는 디렉터리

xoxcPath

SLACK_MCP_XOXC_PATH

$SECRETS_DIR/slack-xoxc.txt

xoxc 토큰 경로

xoxdPath

SLACK_MCP_XOXD_PATH

$SECRETS_DIR/slack-xoxd.txt

xoxd 토큰 경로

allowedWriteChannels

SLACK_MCP_ALLOWED_WRITE_CHANNELS

(없음)

쓰기 도구에 허용된 채널 ID (환경 변수에서는 쉼표로 구분)

userAgent

SLACK_MCP_USER_AGENT

Mozilla/5.0

HTTP User-Agent 헤더

(구성 파일 경로)

SLACK_MCP_CONFIG

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

JSON 구성 파일 경로

MCP 호스트 구성

opencode

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

Claude Desktop

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

라이선스

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