SLACK_MCP_XOXC_TOKEN | Yes* | nil | Slack browser token (xoxc-...) |
SLACK_MCP_XOXD_TOKEN | Yes* | nil | Slack browser cookie d (xoxd-...) |
SLACK_MCP_XOXP_TOKEN | Yes* | nil | User OAuth token (xoxp-...) — alternative to xoxc/xoxd |
SLACK_MCP_XOXB_TOKEN | Yes* | nil | Bot token (xoxb-...) — alternative to xoxp/xoxc/xoxd. Bot has limited access (invited channels only, no search) |
SLACK_MCP_PORT | No | 13080 | Port for the MCP server to listen on |
SLACK_MCP_HOST | No | 127.0.0.1 | Host for the MCP server to listen on |
SLACK_MCP_API_KEY | No | nil | Bearer token for SSE and HTTP transports |
SLACK_MCP_PROXY | No | nil | Proxy URL for outgoing requests |
SLACK_MCP_USER_AGENT | No | nil | Custom User-Agent (for Enterprise Slack environments) |
SLACK_MCP_CUSTOM_TLS | No | nil | Send custom TLS-handshake to Slack servers based on SLACK_MCP_USER_AGENT or default User-Agent. (for Enterprise Slack environments) |
SLACK_MCP_SERVER_CA | No | nil | Path to CA certificate |
SLACK_MCP_SERVER_CA_TOOLKIT | No | nil | Inject HTTPToolkit CA certificate to root trust-store for MitM debugging |
SLACK_MCP_SERVER_CA_INSECURE | No | false | Trust all insecure requests (NOT RECOMMENDED) |
SLACK_MCP_ADD_MESSAGE_TOOL | No | nil | Enable message posting via conversations_add_message by setting it to true for all channels, a comma-separated list of channel IDs to whitelist specific channels, or use ! before a channel ID to allow all except specified ones. If empty, the tool is only registered when explicitly listed in SLACK_MCP_ENABLED_TOOLS. |
SLACK_MCP_ADD_MESSAGE_MARK | No | nil | When conversations_add_message is enabled (via SLACK_MCP_ADD_MESSAGE_TOOL or SLACK_MCP_ENABLED_TOOLS), setting this to true will automatically mark sent messages as read. |
SLACK_MCP_ADD_MESSAGE_UNFURLING | No | nil | Enable to let Slack unfurl posted links or set comma-separated list of domains e.g. github.com,slack.com to whitelist unfurling only for them. If text contains whitelisted and unknown domain unfurling will be disabled for security reasons. |
SLACK_MCP_USERS_CACHE | No | ~/Library/Caches/slack-mcp-server/users_cache.json (macOS)~/.cache/slack-mcp-server/users_cache.json (Linux)%LocalAppData%/slack-mcp-server/users_cache.json (Windows) | Path to the users cache file. Used to cache Slack user information to avoid repeated API calls on startup. |
SLACK_MCP_CHANNELS_CACHE | No | ~/Library/Caches/slack-mcp-server/channels_cache_v2.json (macOS)~/.cache/slack-mcp-server/channels_cache_v2.json (Linux)%LocalAppData%/slack-mcp-server/channels_cache_v2.json (Windows) | Path to the channels cache file. Used to cache Slack channel information to avoid repeated API calls on startup. |
SLACK_MCP_LOG_LEVEL | No | info | Log-level for stdout or stderr. Valid values are: debug, info, warn, error, panic and fatal |
SLACK_MCP_GOVSLACK | No | nil | Set to true to enable GovSlack mode. Routes API calls to slack-gov.com endpoints instead of slack.com for FedRAMP-compliant government workspaces. |
SLACK_MCP_ENABLED_TOOLS | No | nil | Comma-separated list of tools to register. If empty, all read-only tools and usergroups tools are registered; write tools (conversations_add_message, reactions_add, reactions_remove, attachment_get_data) require their specific env var OR must be explicitly listed here. When a write tool is listed here, it's enabled without channel restrictions. Available tools: conversations_history, conversations_replies, conversations_add_message, reactions_add, reactions_remove, attachment_get_data, conversations_search_messages, channels_list, usergroups_list, usergroups_me, usergroups_create, usergroups_update, usergroups_users_update. |