Skip to main content
Glama
Slack MCP Server

Slack MCP Server

김팔복TV의 Slack MCP Server 예제

이 저장소는 김팔복TV에서 사용하는 Slack MCP(Model Context Protocol) Server의 예제 코드입니다. Slack 워크스페이스와 연동하여 다양한 채널/메시지/사용자 관련 기능을 제공합니다.

주요 기능

  • 워크스페이스의 공개 또는 사전 정의된 채널 목록 조회

  • 채널에 메시지 게시 및 스레드 답장

  • 메시지에 이모지 반응 추가

  • 채널 메시지 히스토리 및 스레드 답글 조회

  • 워크스페이스 사용자 및 프로필 정보 조회

Related MCP server: MCP Server for Slack

설치 및 빌드

{
  "mcpServers": {
    "kimpalbok-slack-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "kimpalbok-slack-mcp-server"
      ]
    },
    "env": {
      "SLACK_BOT_TOKEN": "xoxb-...",
      "SLACK_TEAM_ID": "T12345678"
    }
  }
}

환경 변수 설정

실행 전 아래 환경 변수를 반드시 설정해야 합니다.

  • SLACK_BOT_TOKEN: Slack 봇 토큰 (예: xoxb-...)

  • SLACK_TEAM_ID: Slack 워크스페이스 팀 ID (예: T12345678)

  • (선택) SLACK_CHANNEL_IDS: 사전 정의된 채널 ID 목록 (쉼표로 구분)

예시:

export SLACK_BOT_TOKEN=xoxb-...
export SLACK_TEAM_ID=T12345678
export SLACK_CHANNEL_IDS=C12345678,C23456789

Slack 봇 설정

앱 및 봇 설정 링크 https://api.slack.com/apps

  • "OAuth & Permissions" 메뉴에서 "Bot User OAuth Token"을 참고하세요.

  • "OAuth & Permissions" 메뉴에서 "Scopes"에서 권한을 추가하세요.

  • SLACK_TEAM_ID 확인 방법
    https://apps.slack.com 으로 접속 후 브라우저에서 실행해보세요.
    URL의 "T..."로 시작하는 문자열이 TEAM_ID입니다.

사용 예시

서버는 MCP 프로토콜을 통해 다양한 도구(tool)를 제공합니다.
아래는 지원하는 주요 도구와 설명입니다.

도구 이름

설명

slack_list_channels

워크스페이스의 공개 또는 사전 정의된 채널 목록 조회

slack_post_message

채널에 새 메시지 게시

slack_reply_to_thread

특정 메시지 스레드에 답장

slack_add_reaction

메시지에 이모지 반응 추가

slack_get_channel_history

채널에서 최근 메시지 가져오기

slack_get_thread_replies

메시지 스레드의 모든 답장 가져오기

slack_get_users

워크스페이스의 모든 사용자와 기본 프로필 정보 가져오기

slack_get_user_profile

특정 사용자의 상세 프로필 정보 가져오기

각 도구의 입력 파라미터와 반환값은 코드의 Tool 정의 및 TypeScript 타입을 참고하세요.

참고

  • 본 서버는 MCP(Model Context Protocol) 기반의 서버로, 표준 입력/출력(stdio) 기반 트랜스포트로 동작합니다.

  • 실제 Slack API 연동을 위해서는 올바른 권한의 Slack 봇 토큰이 필요합니다.


문의: 김팔복TV

Available Tools

8 tools
slack_add_reactionC

메시지에 이모지 반응 추가

Inputs: channel_id (required), timestamp (required), reaction (required).

slack_get_channel_historyC

채널에서 최근 메시지 가져오기

Inputs: channel_id (required), limit.

slack_get_thread_repliesC

메시지 스레드의 모든 답장 가져오기

Inputs: channel_id (required), thread_ts (required).

slack_get_user_profileC

특정 사용자의 상세 프로필 정보 가져오기

Inputs: user_id (required).

slack_get_usersC

워크스페이스의 모든 사용자와 기본 프로필 정보 가져오기

Inputs: cursor, limit.

slack_list_channelsA

workspace의 public 또는 pre-defined된 채널을 페이지네이션과 함께 목록으로 표시

Inputs: limit, cursor.

slack_post_messageC

Slack 채널에 새 메시지 게시

Inputs: channel_id (required), text (required).

slack_reply_to_threadC

Slack에서 특정 메시지 스레드에 답장

Inputs: channel_id (required), thread_ts (required), text (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 8 tools

    Disambiguation5/5

    Every tool has a clearly distinct purpose targeting specific Slack operations: adding reactions, retrieving channel history, getting thread replies, fetching user profiles, listing users, listing channels, posting messages, and replying to threads. There is no overlap or ambiguity between these functions.

    Naming Consistency5/5

    All tools follow a consistent 'slack_verb_noun' pattern with snake_case throughout, such as slack_add_reaction, slack_get_channel_history, and slack_post_message. This predictable naming makes it easy for agents to understand and select the right tool.

    Tool Count5/5

    With 8 tools, this server is well-scoped for a Slack integration, covering core messaging, user management, and channel operations without being overwhelming. Each tool serves a clear and necessary function in the domain.

    Completeness4/5

    The toolset provides strong coverage for core Slack workflows like messaging, reactions, threads, and user/channel listing. Minor gaps exist, such as updating or deleting messages, but agents can work around these with the available tools for most common tasks.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables interaction with Slack workspaces as a user, supporting channel listing, message posting, threading, reactions, and user management via the Slack API.
      8
      11
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      A Model Context Protocol server implementation that enables AI assistants to interact with Slack workspaces, allowing them to browse channels, send messages, reply to threads, add reactions, and retrieve user information.
      9
      20 npm
      2
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      A server implementing Model Context Protocol that enables AI assistants to interact with Slack API through a standardized interface, providing tools for messaging, channel management, user information retrieval, and more.
      11
      109
      Apache 2.0
    • F
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that integrates with Slack API, allowing users to send messages, view channel history, manage channels, send direct messages, and retrieve user lists from Slack workspaces.
      1
      -