Skip to main content
Glama
z9905080
by z9905080

Slack용 MCP 서버

npm 버전

AI 어시스턴트를 Slack 작업 공간과 통합하기 위한 MCP(Model Context Protocol) 서버 구현입니다.

개요

이 패키지는 AI 어시스턴트가 Slack 작업 공간과 상호 작용할 수 있도록 하는 MCP 서버를 제공합니다. 이를 통해 AI 모델은 다음과 같은 작업을 수행할 수 있습니다.

  • 채널 나열 및 탐색

  • 채널에 메시지 보내기

  • 스레드에 답장하기

  • 메시지에 반응 추가

  • 채널 기록 검색

  • 스레드 답변 받기

  • 사용자 목록 및 사용자 프로필 검색

Related MCP server: Slack MCP Server

설치

지엑스피1

npm에서 shouting-mcp-slack 패키지를 찾을 수 있습니다.

필수 조건

Slack Bot을 설정하고 필요한 자격 증명을 얻어야 합니다.

  1. Slack API 콘솔 에서 Slack 앱 만들기

  2. 다음 봇 토큰 범위를 추가합니다.

    • channels:history

    • channels:read

    • chat:write

    • reactions:write

    • users:read

    • users:read.email

  3. 작업 공간에 앱을 설치하세요

  4. 봇 사용자 OAuth 토큰을 복사하세요

구성

서버에는 다음과 같은 환경 변수가 필요합니다.

  • SLACK_BOT_TOKEN : Slack Bot 사용자 OAuth 토큰

  • SLACK_TEAM_ID : Slack 팀 ID

용법

CLI 도구로 실행

# Set environment variables export SLACK_BOT_TOKEN=xoxb-your-token export SLACK_TEAM_ID=your-team-id # Run the server mcp-server-slack

코드에서 사용

import { Server } from "@modelcontextprotocol/sdk/server/index.js"; import { SlackClient } from "shouting-mcp-slack"; // Initialize the server and client const server = new Server({...}); const slackClient = new SlackClient(process.env.SLACK_BOT_TOKEN); // Register your custom handlers // ...

사용 가능한 도구

서버는 다음과 같은 Slack 통합 도구를 제공합니다.

  • 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 : 사용자 프로필 가져오기

특허

아이에스씨

작가

shouting.hsiao@gmail.com

저장소

https://github.com/z9905080/mcp-slack

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/z9905080/mcp-slack'

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