Skip to content

johnpreed/slack-token-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slack Token Extractor

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).

Install

  1. Open chrome://extensions/
  2. Enable Developer mode (top-right toggle)
  3. Click Load unpacked and select this directory

Usage

  1. Navigate to your Slack workspace in Chrome (must be on a *.slack.com/client/... URL)
  2. Click the extension icon in your toolbar
  3. It automatically extracts:
    • The xoxc token from localStorage
    • The d cookie from slack.com
  4. Click "Copy shell command to update files"
  5. Paste in your terminal — it writes the values to ~/.SLACK-XOXC and ~/.SLACK-XOXD

Why?

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.

Security

  • This extension only activates on *.slack.com pages
  • 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

About

Chrome extension to extract Slack xoxc/xoxd tokens for local MCP servers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors