Slack MCP Server
Feature Demo
Tools
conversations_history
- Get messages from the channel by channelID
- Required inputs:
- Returns: List of messages with timestamps, user IDs, and text content
channels_list
- Get list of channels
- Required inputs:
- Returns: List of channels
Setup Guide
1. Authentication Setup
Lookup `SLACK_MCP_XOXC_TOKEN`
- Open your browser's Developer Console.
- In Firefox, under
Tools -> Browser Tools -> Web Developer tools
in the menu bar
- In Chrome, click the "three dots" button to the right of the URL Bar, then select
More Tools -> Developer Tools
- Switch to the console tab.
- Type "allow pasting" and press ENTER.
- Paste the following snippet and press ENTER to execute:
JSON.parse(localStorage.localConfig_v2).teams[document.location.pathname.match(/^\/client\/([A-Z0-9]+)/)[1]].token
xoxc-
), save it somewhere for now.Lookup `SLACK_MCP_XOXD_TOKEN`
- Switch to "Application" tab and select "Cookies" in the left navigation pane.
- Find the cookie with the name
d
. That's right, just the letterd
.
- Double-click the Value of this cookie.
- Press Ctrl+C or Cmd+C to copy it's value to clipboard.
- Save it for later.
2. Installation
2.1. Docker
2.2. Docker Compose
2.2.1 TLS and Exposing to the Internet
mcp-remote
is capable to handle only https schemes;
- it is generally a good practice to use TLS for any service exposed to the internet;
ngrok
:https://903d-xxx-xxxx-xxxx-10b4.ngrok-free.app
for your mcp-remote
argument.3. Configuration and Usage
claude_desktop_config.json
:Option 1 with `stdio` transport:
Option 2 with `sse` transport:
docker compose up -d
to launch MCP server or with your preferred method and then configure it:Option 3 with `sse` transport on Windows:
docker compose up -d
to launch MCP server or with your preferred method and then configure it:Console Arguments
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
Environment Variables
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
Debugging Tools
Security
- Never share API tokens
- Keep .env files secure and private
License
Slack MCP Server
Feature Demo
Tools
conversations_history
- Get messages from the channel by channelID
- Required inputs:
- Returns: List of messages with timestamps, user IDs, and text content
channels_list
- Get list of channels
- Required inputs:
- Returns: List of channels
Setup Guide
1. Authentication Setup
Lookup `SLACK_MCP_XOXC_TOKEN`
- Open your browser's Developer Console.
- In Firefox, under
Tools -> Browser Tools -> Web Developer tools
in the menu bar
- In Chrome, click the "three dots" button to the right of the URL Bar, then select
More Tools -> Developer Tools
- Switch to the console tab.
- Type "allow pasting" and press ENTER.
- Paste the following snippet and press ENTER to execute:
JSON.parse(localStorage.localConfig_v2).teams[document.location.pathname.match(/^\/client\/([A-Z0-9]+)/)[1]].token
xoxc-
), save it somewhere for now.Lookup `SLACK_MCP_XOXD_TOKEN`
- Switch to "Application" tab and select "Cookies" in the left navigation pane.
- Find the cookie with the name
d
. That's right, just the letterd
.
- Double-click the Value of this cookie.
- Press Ctrl+C or Cmd+C to copy it's value to clipboard.
- Save it for later.
2. Installation
2.1. Docker
2.2. Docker Compose
2.2.1 TLS and Exposing to the Internet
mcp-remote
is capable to handle only https schemes;
- it is generally a good practice to use TLS for any service exposed to the internet;
ngrok
:https://903d-xxx-xxxx-xxxx-10b4.ngrok-free.app
for your mcp-remote
argument.3. Configuration and Usage
claude_desktop_config.json
:Option 1 with `stdio` transport:
Option 2 with `sse` transport:
docker compose up -d
to launch MCP server or with your preferred method and then configure it:Option 3 with `sse` transport on Windows:
docker compose up -d
to launch MCP server or with your preferred method and then configure it:Console Arguments
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
Environment Variables
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
Debugging Tools
Security
- Never share API tokens
- Keep .env files secure and private