Slack MCP
슬랙 MCP 서버
Slack Workspace용 모델 컨텍스트 프로토콜(MCP) 서버입니다. 이 통합은 Stdio 및 SSE 전송, 프록시 설정을 모두 지원하며 Workspace 관리자가 권한을 부여하거나 봇을 생성하거나 승인할 필요가 없습니다. 😏
기능 데모
도구
conversations_history
채널ID로 채널에서 메시지 가져오기
필수 입력 사항:
channel_id(문자열): Cxxxxxxxxxx 형식의 채널 ID입니다.cursor(문자열): 페이지 매김을 위한 커서입니다. 이전 요청에서 반환된 next_cursor 필드로 응답의 마지막 행과 열 값을 사용합니다.limit(숫자, 기본값: 28): 가져올 메시지의 제한.
반환: 타임스탬프, 사용자 ID 및 텍스트 콘텐츠가 포함된 메시지 목록
channels_list
채널 목록 가져오기
필수 입력 사항:
channel_types(배열): 가능한 채널 유형입니다. 허용된 값: 'mpim', 'im', 'public_channel', 'private_channel'.sort(문자열): 정렬 유형입니다. 허용되는 값: 'popularity' - 각 채널의 회원/참가자 수를 기준으로 정렬합니다.
반환: 채널 목록
Related MCP server: Slack MCP Server
설정 가이드
1. 인증 설정
브라우저에서 Slack을 열고 로그인하세요.
SLACK_MCP_XOXC_TOKEN 조회
브라우저의 개발자 콘솔을 엽니다.
Firefox의 경우 메뉴 막대의
Tools -> Browser Tools -> Web Developer toolsChrome에서 URL 표시줄 오른쪽에 있는 "세 개의 점" 버튼을 클릭한 다음
More Tools -> Developer Tools선택합니다.콘솔 탭으로 전환합니다.
"붙여넣기 허용"을 입력하고 ENTER를 누릅니다.
다음 스니펫을 붙여넣고 ENTER 키를 눌러 실행합니다.
JSON.parse(localStorage.localConfig_v2).teams[document.location.pathname.match(/^\/client\/([A-Z0-9]+)/)[1]].token
토큰 값은 실행된 명령 바로 뒤에 인쇄됩니다( xoxc- 로 시작). 지금은 어딘가에 저장해 두세요.
SLACK_MCP_XOXD_TOKEN 조회
"응용 프로그램" 탭으로 전환하고 왼쪽 탐색 창에서 "쿠키"를 선택하세요.
이름이
d인 쿠키를 찾으세요. 맞아요,d라는 글자만 있네요.이 쿠키의 값을 두 번 클릭합니다.
Ctrl+C 또는 Cmd+C를 눌러 값을 클립보드에 복사합니다.
나중에 보려고 저장해 두세요.
2. 설치
다음 설치 방법 중 하나를 선택하세요.
3. 구성 및 사용
명령줄 인수와 환경 변수를 사용하여 MCP 서버를 구성할 수 있습니다.
npx 사용하기
npm이 설치되어 있다면 Claude Desktop에서 slack-mcp-server 를 시작하는 가장 빠른 방법입니다.
claude_desktop_config.json 열고 mcpServers 목록에 mcp 서버를 추가합니다.
지엑스피1
{
"mcpServers": {
"slack": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"SLACK_MCP_XOXC_TOKEN=$SLACK_MCP_XOXC_TOKEN",
"-e",
"SLACK_MCP_XOXD_TOKEN=$SLACK_MCP_XOXD_TOKEN",
"ghcr.io/korotovsky/slack-mcp-server",
"mcp-server",
"--transport",
"stdio"
],
"env": {
"SLACK_MCP_XOXC_TOKEN": "xoxc-...",
"SLACK_MCP_XOXD_TOKEN": "xoxd-..."
}
}
}
}자세한 내용은 Docker를 참조하세요.
sse 전송과 함께 npx 사용:
sse 모드에서 실행하고 싶은 경우 Claude Desktop용 mcp-remote 래퍼를 사용하고 ngrok 또는 docker-compose 등을 사용하여 MCP 서버를 어딘가에 배포/노출해야 합니다.
{
"mcpServers": {
"slack": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://x.y.z.q:3001/sse",
"--header",
"Authorization: Bearer ${SLACK_MCP_SSE_API_KEY}"
],
"env": {
"SLACK_MCP_SSE_API_KEY": "my-$$e-$ecret"
}
}
}
}{
"mcpServers": {
"slack": {
"command": "C:\\Progra~1\\nodejs\\npx.cmd",
"args": [
"-y",
"mcp-remote",
"https://x.y.z.q:3001/sse",
"--header",
"Authorization: Bearer ${SLACK_MCP_SSE_API_KEY}"
],
"env": {
"SLACK_MCP_SSE_API_KEY": "my-$$e-$ecret"
}
}
}
}TLS 및 인터넷 노출
SSE에 HTTPS를 설정해야 하는 데에는 여러 가지 이유가 있습니다.
mcp-remotehttps 체계만 처리할 수 있습니다.일반적으로 인터넷에 노출된 모든 서비스에는 TLS를 사용하는 것이 좋습니다.
ngrok 사용할 수 있습니다:
ngrok http 3001그런 다음 mcp-remote 인수에 대해 엔드포인트 https://903d-xxx-xxxx-xxxx-10b4.ngrok-free.app 사용합니다.
도커 사용하기
모든 환경 변수에 대한 자세한 내용은 환경 변수를 참조하세요.
export SLACK_MCP_XOXC_TOKEN=xoxc-...
export SLACK_MCP_XOXD_TOKEN=xoxd-...
docker pull ghcr.io/korotovsky/slack-mcp-server:latest
docker run -i --rm \
-e SLACK_MCP_XOXC_TOKEN \
-e SLACK_MCP_XOXD_TOKEN \
slack-mcp-server --transport stdio또는 docker-compose 방식:
wget -O docker-compose.yml https://github.com/korotovsky/slack-mcp-server/releases/latest/download/docker-compose.yml
wget -O .env https://github.com/korotovsky/slack-mcp-server/releases/latest/download/default.env.dist
nano .env # Edit .env file with your tokens from step 1 of the setup guide
docker-compose up -d콘솔 인수
논쟁 | 필수의 ? | 설명 |
| 예 | MCP 서버에 대한 전송을 선택합니다. 가능한 값은 |
환경 변수
변하기 쉬운 | 필수의 ? | 기본 | 설명 |
| 예 |
| POST 데이터 필드 세트( |
| 예 |
| 쿠키 |
| 아니요 |
| MCP 서버가 수신할 포트 |
| 아니요 |
| MCP 서버가 수신할 호스트 |
| 아니요 |
|
|
| 아니요 |
| MCP 서버가 사용할 프록시 URL |
| 아니요 |
| 신뢰 저장소의 CA 인증서 경로 |
| 아니요 |
| 모든 안전하지 않은 요청을 신뢰하세요(권장하지 않음) |
디버깅 도구
# Run the inspector with stdio transport
npx @modelcontextprotocol/inspector go run mcp/mcp-server.go --transport stdio
# View logs
tail -n 20 -f ~/Library/Logs/Claude/mcp*.log보안
API 토큰을 공유하지 마세요
.env 파일을 안전하고 비공개로 유지하세요
특허
MIT 라이선스에 따라 배포됩니다. 라이선스 파일을 참조하세요. 이 제품은 Slack 공식 제품이 아닙니다.
Available Tools
2 toolschannels_listC
Get list of channels
Inputs: channel_types (required), sort.
conversations_historyB
Get messages from the channel by channel_id, the last row/column in the response is used as 'cursor' parameter for pagination if not empty
Inputs: channel_id (required), cursor, limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: channels_list retrieves a list of channels, while conversations_history fetches messages from a specific channel. There is no overlap in functionality, making it easy for an agent to select the correct tool based on the task.
Both tools follow a consistent snake_case naming convention, but the patterns differ slightly: channels_list uses a noun_verb format, while conversations_history uses a noun_noun format. This minor deviation prevents a perfect score, but the naming is still readable and mostly consistent.
With only 2 tools, this server feels too thin for a Slack integration, as it lacks essential operations like sending messages, managing users, or updating channel settings. The scope is severely limited, making it difficult for agents to perform comprehensive Slack-related tasks.
The tool surface is significantly incomplete for a Slack domain. While it covers listing channels and retrieving message history, it misses critical operations such as posting messages, creating channels, or handling reactions, which are core to Slack workflows and will likely cause agent failures.
Maintenance
Related MCP Connectors
Hosted Slack MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
The official MCP Server for the Mux API
One MCP server for all your work accounts: Slack, Teams, Google Chat, Jira, ClickUp, digest, tasks.
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server for posting messages to Slack channels via webhooks or bot API. Supports configurable usernames, emojis, and both webhook and bot token authentication modes.11 npmMIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server for Slack workspace integration. This server allows AI assistants to interact directly with your Slack workspace, providing tools to manage channels, send messages, list users, and upload files.1MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that connects to Slack via Socket Mode (WebSocket) and surfaces real-time message notifications through MCP tools. No public URL or ngrok needed.-
- AlicenseNot gradedqualityCmaintenanceA production-ready MCP server for the Slack API that enables searching, listing channels, reading history, inspecting users, fetching threads, and sending messages through controlled Slack tools.MIT