MCP Server for Slack

by z9905080
Verified

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Provides distribution of the MCP server package through the npm registry, allowing users to install and use the server for Slack integration.

  • Displays dynamic version badge for the package in the README, showing current npm version information.

  • Enables AI assistants to interact with Slack workspaces by listing channels, sending messages, replying to threads, adding reactions, retrieving channel history, getting thread replies, and accessing user information.

Slack용 MCP 서버

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

개요

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

  • 채널 나열 및 탐색
  • 채널에 메시지 보내기
  • 스레드에 답장하기
  • 메시지에 반응 추가
  • 채널 기록 검색
  • 스레드 답변 받기
  • 사용자 목록 및 사용자 프로필 검색

설치

지엑스피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

-
security - not tested
A
license - permissive license
-
quality - not tested

AI 어시스턴트가 Slack 작업 공간과 상호 작용하여 채널을 탐색하고, 메시지를 보내고, 스레드에 답장하고, 반응을 추가하고, 사용자 정보를 검색할 수 있도록 하는 모델 컨텍스트 프로토콜 서버 구현입니다.

  1. Overview
    1. Installation
      1. Prerequisites
        1. Configuration
          1. Usage
            1. Running as a CLI Tool
            2. Using in Your Code
          2. Available Tools
            1. License
              1. Author
                1. Repository
                  ID: 7h6mcq8ux9