Skip to main content

slack-pat-mcp

MCP server for personal Slack access using user tokens (xoxp-). 4 tools covering channels, DMs, chat, search, and user management.

Install

uvx slack-pat-mcp

Claude Code Config

"slack": {
    "command": "uvx",
    "args": ["slack-pat-mcp"],
    "env": {
        "SLACK_USER_TOKEN": "xoxp-...",
        "SLACK_TEAM_ID": "T..."
    }
}

Tools

  • slack_channel — list, list_dms, history, thread, open_dm
  • slack_chat — post, update, delete, react_add, react_remove
  • slack_search — search messages with Slack syntax
  • slack_users — list, info, profile, usergroups, set_status
  • slack_drafts — create, list, update, delete; text is Slack mrkdwn (bold/italic/strike/code, lists, quotes, code blocks, links, mentions, emoji), converted to rich_text (needs browser session keys below)

Drafts (optional)

Slack's drafts API rejects xoxp tokens, so drafts use your browser session. In app.slack.com DevTools:

  • SLACK_XOXC_TOKEN — Console: Object.values(JSON.parse(localStorage.localConfig_v2).teams).map(t => [t.name, t.token])
  • SLACK_D_COOKIE — Application → Cookies → https://app.slack.com → d (copy as-is, URL-encoded)

These are unofficial and stop working when you sign out of Slack in that browser.

When set, they are also the fallback for any call where the xoxp token fails with a missing scope (e.g. set_status without users.profile:write) or an auth error (revoked/expired/unset token), so every tool keeps working on the browser session alone.

Required Slack OAuth Scopes (User Token)

channels:read, channels:history, groups:read, groups:history, im:read, im:history, im:write, mpim:read, mpim:history, mpim:write, chat:write, reactions:read, reactions:write, search:read, users:read, users:read.email, users.profile:read, users.profile:write, usergroups:read

Metadata

Release files for slack-pat-mcp 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for slack-pat-mcp 0.1.9
File Size Uploaded Provenance
slack_pat_mcp-0.1.9.tar.gz 11.5 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for slack-pat-mcp 0.1.9
File Interpreter ABI Platform
slack_pat_mcp-0.1.9-py3-none-any.whl Python 3 none any Details

Total release size: 23.0 kB

Release files / slack_pat_mcp-0.1.9.tar.gz

Download URL slack_pat_mcp-0.1.9.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8f631353d845531fa0531633433658d8b8b058904d324f2d2a64fff2c8e60050
BLAKE2b-256 checksum
How to use checksums
4e9ba1d1cf6adfc5b0a8344cf112d96cd4d8f73d17827764ae5ac13a0b655fd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Release files / slack_pat_mcp-0.1.9-py3-none-any.whl

Download URL slack_pat_mcp-0.1.9-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2798dc3fb76a207e6a172a0e62183ab35b7913089ab2ea6ed87ae9985a0ef979
BLAKE2b-256 checksum
How to use checksums
bb22bc27da10874a8e2c4dc1db0b32fa9bc5a69a77a427299087e104aca64c30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Security for slack-pat-mcp 0.1.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for slack_pat_mcp-0.1.9.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page