A Chrome extension that extracts your Slack xoxc token and xoxd cookie with one click — useful for local tools that need Slack API access (e.g., MCP servers).
- Open
chrome://extensions/ - Enable Developer mode (top-right toggle)
- Click Load unpacked and select this directory
- Navigate to your Slack workspace in Chrome (must be on a
*.slack.com/client/...URL) - Click the extension icon in your toolbar
- It automatically extracts:
- The
xoxctoken fromlocalStorage - The
dcookie fromslack.com
- The
- Click "Copy shell command to update files"
- Paste in your terminal — it writes the values to
~/.SLACK-XOXCand~/.SLACK-XOXD
Slack's browser session tokens (xoxc + xoxd cookie) are required by tools like slack-mcp-server that interact with Slack on your behalf. These tokens rotate periodically and need manual extraction from Chrome DevTools. This extension makes that a one-click operation.
- This extension only activates on
*.slack.compages - Tokens are never sent anywhere — they're only displayed locally and copied to your clipboard
- Review the source code yourself; it's ~80 lines of JS