Slack MCP Server
슬랙-mcp-서버
Slack API에 접근하기 위한 MCP(Model Context Protocol) 서버입니다. 이 서버를 통해 AI 어시스턴트는 표준화된 인터페이스를 통해 Slack API와 상호 작용할 수 있습니다.
특징
사용 가능한 도구:
slack_list_channels- 페이지 번호를 사용하여 작업 공간의 공개 채널을 나열합니다.slack_post_message- Slack 채널에 새 메시지를 게시합니다.slack_reply_to_thread- Slack에서 특정 메시지 스레드에 답장slack_add_reaction- 메시지에 반응 이모티콘 추가slack_get_channel_history- 채널의 최근 메시지 가져오기slack_get_thread_replies- 메시지 스레드의 모든 답글을 가져옵니다.slack_get_users- 작업 공간에 있는 모든 사용자의 기본 프로필 정보를 검색합니다.slack_get_user_profile- 사용자 프로필 정보 가져오기slack_search_messages- 작업 공간에서 메시지 검색
Related MCP server: Slack MCP Server
빠른 시작
설치
지엑스피1
참고: 이제 GitHub 레지스트리에 호스팅되므로 PAT가 필요합니다.
구성
다음 환경 변수를 설정해야 합니다.
SLACK_BOT_TOKEN: Slack Bot 사용자 OAuth 토큰SLACK_USER_TOKEN: Slack 사용자 OAuth 토큰(메시지 검색 등 일부 기능에 필요)
다음 환경 변수를 설정하려면 .env 파일을 만들 수도 있습니다.
SLACK_BOT_TOKEN=xoxb-your-bot-token
SLACK_USER_TOKEN=xoxp-your-user-token용법
MCP 서버를 시작합니다
곧장:
npx @ubie-oss/slack-mcp-server또는, node로 설치된 모듈을 실행합니다.
node node_modules/.bin/slack-mcp-server클라이언트에 대한 MCP 구성 JSON을 편집하세요.
{
"slack": {
"command": "npx",
"args": [
"-y",
"@ubie-oss/slack-mcp-server"
],
"env": {
"NPM_CONFIG_//npm.pkg.github.com/:_authToken": "<your-github-pat>",
"SLACK_BOT_TOKEN": "<your-bot-token>",
"SLACK_USER_TOKEN": "<your-user-token>"
}
}
}구현 패턴
이 서버는 다음과 같은 구현 패턴을 채택합니다.
Zod 스키마를 사용하여 요청/응답 정의
요청 스키마: 입력 매개변수 정의
응답 스키마: 필수 필드로 제한된 응답 정의
구현 흐름:
Zod 스키마로 요청 검증
Slack WebAPI 호출
필수 필드로 제한하기 위해 Zod 스키마로 응답 구문 분석
JSON으로 반환
예를 들어, slack_list_channels 구현은 ListChannelsRequestSchema 로 요청을 구문 분석하고, slackClient.conversations.list 호출하고, ListChannelsResponseSchema 로 구문 분석된 응답을 반환합니다.
개발
사용 가능한 스크립트
npm run dev- 핫 리로딩을 사용하여 개발 모드로 서버 시작npm run build- 프로덕션을 위한 프로젝트 빌드npm run start- 프로덕션 서버 시작npm run lint- 린팅 검사 실행(ESLint 및 Prettier)npm run fix- 린팅 문제를 자동으로 수정합니다
기여하다
저장소를 포크하세요
기능 브랜치를 생성하세요
테스트 및 린팅 실행:
npm run lint변경 사항을 커밋하세요
지점으로 밀어 넣기
풀 리퀘스트 만들기
Available Tools
11 toolsslack_add_reactionA
Add a reaction emoji to a message
Inputs: reaction (required), timestamp (required), channel_id (required).
slack_get_channel_historyA
Get messages from a channel in chronological order. Use this when: 1) You need the latest conversation flow without specific filters, 2) You want ALL messages including bot/automation messages, 3) You need to browse messages sequentially with pagination. Do NOT use if you have specific search criteria (user, keywords, dates) - use slack_search_messages instead.
Inputs: channel_id (required), limit, cursor.
slack_get_thread_repliesB
Get all replies in a message thread
Inputs: thread_ts (required), channel_id (required), limit, cursor.
slack_get_user_profilesB
Get multiple users profile information in bulk
Inputs: user_ids (required).
slack_get_usersB
Retrieve basic profile information of all users in the workspace
Inputs: limit, cursor.
slack_list_channelsA
List public channels in the workspace with pagination
Inputs: limit, cursor.
slack_post_messageC
Post a new message to a Slack channel
Inputs: text (required), channel_id (required), format.
slack_reply_to_threadC
Reply to a specific message thread in Slack
Inputs: text (required), thread_ts (required), channel_id (required), format.
slack_search_channelsA
Search for channels by partial name match. Use this when you need to find channels containing specific keywords in their names. Returns up to the specified limit of matching channels.
Inputs: query (required), limit, include_archived.
slack_search_messagesA
Search for messages with specific criteria/filters. Use this when: 1) You need to find messages from a specific user, 2) You need messages from a specific date range, 3) You need to search by keywords, 4) You want to filter by channel. This tool is optimized for targeted searches. For general channel browsing without filters, use slack_get_channel_history instead.
Inputs: on, page, sort, after, +8 more.
slack_search_usersA
Search for users by partial name match across username, display name, and real name. Use this when you need to find users containing specific keywords in their names. Returns up to the specified limit of matching users.
Inputs: query (required), limit, include_bots.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Most tools target distinct actions (post, reply, react, list, search), and the history-vs-search-messages pair is explicitly disambiguated in the descriptions. The main overlap is slack_get_users (all users, basic info) versus slack_get_user_profiles (bulk profile info) versus slack_search_users, where the boundary between the first two is unclear.
All tools use a uniform slack_<verb>_<noun> snake_case convention (slack_post_message, slack_list_channels, slack_search_users), with verbs chosen sensibly for the action. No mixed casing or inconsistent prefixes.
Eleven tools is well within a reasonable range for a Slack integration and each tool maps to a recognizable Slack operation. Nothing feels padded or missing at the count level.
Core read/write workflows (post, reply, react, read history/threads, search, list channels/users) are covered, but the message lifecycle is incomplete: no update_message, delete_message, or remove_reaction, and there is no direct-message or channel-management (create/join) coverage. These are notable gaps that would force agents into dead ends for common Slack tasks.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Hosted Slack MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
A Model Context Protocol server for Wix AI tools
Related MCP Servers
- AlicenseBqualityDmaintenanceA 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.920 npm2Apache 2.0
- FlicenseNot gradedqualityDmaintenanceA 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-
- AlicenseNot gradedqualityDmaintenanceA simple Model Context Protocol server for Slack integration that enables messaging, channel management, and workspace search capabilities.MIT
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables LLMs to interact with Slack workspaces through OAuth 2.0 authentication. It provides tools for listing channels and posting messages while supporting secure token persistence and dynamic client registration.-