Slack Search MCP Server

by takuya0206
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

  • Used as the runtime environment for the MCP server, enabling execution of the TypeScript code and providing build capabilities for creating a compiled executable.

  • Provides tools for accessing Slack's search functionality, allowing users to retrieve workspace information (users, channels), fetch messages from specific channels, get thread replies, and search through messages across the workspace.

Slack 검색 MCP 서버

Slack의 검색 기능에 접근하기 위한 도구와 리소스를 제공하는 모델 컨텍스트 프로토콜(MCP) 서버입니다. 이 서버를 통해 LLM은 Slack 작업 공간에서 사용자, 채널, 메시지 등을 검색하고 불러올 수 있습니다.

특징

도구

  1. get_users - Slack 작업 공간의 사용자 목록을 가져옵니다.
  2. get_channels - Slack 작업 공간의 채널 목록을 가져옵니다.
  3. get_channel_messages - 특정 채널에서 메시지 가져오기
  4. get_thread_replies - 스레드에서 답변 가져오기
  5. search_messages - Slack에서 메시지 검색

자원

  1. allusers:// - Slack 작업 공간의 모든 사용자를 가져옵니다.
  2. allchannels:// - Slack 작업 공간의 모든 채널을 가져옵니다.

요구 사항

  • 런타임
  • 적절한 권한이 있는 Slack API 토큰

설치

  1. 저장소를 복제합니다
  2. 종속성 설치:지엑스피1

용법

  1. Slack API 토큰을 환경 변수로 설정합니다.
    export SLACK_TOKEN=xoxb-your-token-here
  2. 서버를 실행합니다:
    bun run index.ts
    또는 컴파일된 버전을 사용하세요.
    ./dist/slack_search_function_mcp

건물

실행 파일을 빌드하려면:

bun run build

이렇게 하면 dist 디렉토리에 컴파일된 실행 파일이 생성됩니다.

MCP 구성

MCP 지원 LLM과 함께 이 서버를 사용하려면 MCP 구성에 추가하세요.

{ "mcpServers": { "slack": { "command": "/path/to/dist/slack_search_function_mcp", "env": { "SLACK_TOKEN": "xoxb-your-token-here" } } } }

도구 예제

사용자 가져오기

{ "name": "get_users", "arguments": { "limit": 10 } }

채널 가져오기

{ "name": "get_channels", "arguments": { "limit": 10, "exclude_archived": true } }

채널 메시지 받기

{ "name": "get_channel_messages", "arguments": { "channel": "C01234ABCDE", "limit": 10 } }

스레드 답변 받기

{ "name": "get_thread_replies", "arguments": { "channel": "C01234ABCDE", "thread_ts": "1234567890.123456", "limit": 10 } }

메시지 검색

{ "name": "search_messages", "arguments": { "query": "important announcement", "sort": "timestamp", "sort_dir": "desc", "count": 10 } }

리소스 예제

모든 사용자 가져오기

allusers://

모든 채널 가져오기

allchannels://

오류 처리

서버에는 다음에 대한 포괄적인 오류 처리 기능이 포함되어 있습니다.

  • Slack API 토큰이 잘못되었거나 없습니다.
  • API 속도 제한
  • 네트워크 오류
  • 잘못된 매개변수
  • 인증 실패

보안

  • Slack API 토큰은 응답에 기록되거나 노출되지 않습니다.
  • 토큰은 환경 변수를 통해 안전하게 전달됩니다.
-
security - not tested
F
license - not found
-
quality - not tested

LLM이 Slack의 검색 기능에 액세스하여 Slack 작업 공간에서 사용자, 채널, 메시지 및 스레드 답변을 검색할 수 있도록 하는 MCP 서버입니다.

  1. Features
    1. Tools
    2. Resources
  2. Requirements
    1. Installation
      1. Usage
        1. Building
          1. MCP Configuration
            1. Tool Examples
              1. Get Users
              2. Get Channels
              3. Get Channel Messages
              4. Get Thread Replies
              5. Search Messages
            2. Resource Examples
              1. Get All Users
              2. Get All Channels
            3. Error Handling
              1. Security
                ID: 8mfkeaj8ta