slack-mcp-browser-auth

Installation
SKILL.md

Slack MCP via Browser Session Tokens

Connect an MCP client to Slack with no Slack app and no admin approval by reusing your logged-in browser session: a xoxc- token (from localStorage) plus the d cookie (xoxd-). Uses korotovsky/slack-mcp-server.

Decision: browser tokens vs an app token.

  • xoxc/xoxd (browser): instant, zero approval, but session-bound — breaks on logout/rotation, and needs the Enterprise-Grid spoofing below. Best for personal/dev use.
  • xoxp (user) or xoxb (bot) app token: durable, no cookie, Grid-safe, but requires creating a Slack app and (usually) workspace-admin install approval. Prefer this if you can get it. Token priority in the server: xoxp > xoxb > xoxc+xoxd.

This skill covers the browser-token path; the app-token path is just "create app → add scopes → install → copy xoxp-" then the same install command.

The one non-obvious fix: Enterprise Grid invalid_auth

On Enterprise Grid (large orgs), a valid xoxc+xoxd pair (confirmed by auth.test) still fails the MCP server with invalid_auth on boot. Slack flags the non-browser-looking request (the server's startup user-cache call triggers it — see issue #86). Fix = make the server look like a real browser:

SLACK_MCP_CUSTOM_TLS=true
SLACK_MCP_USER_AGENT="<exact UA of the browser you extracted tokens from>"
Installs
3
GitHub Stars
1
First Seen
Jul 29, 2026