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 returns missing_scope (e.g. set_status without users.profile:write).

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

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.8
File Size Uploaded Provenance
slack_pat_mcp-0.1.8.tar.gz 11.2 kB With provenance Details

Built distribution (wheel)

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

Total release size: 22.6 kB

Release files / slack_pat_mcp-0.1.8.tar.gz

Download URL slack_pat_mcp-0.1.8.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1f5f233b90899ea9f6a490d7db6e88eeb7a4700f7ddf60ffe546a3c05f6d1c3d
BLAKE2b-256 checksum
How to use checksums
1934e0659a13d85acc01fc74ac81b9ef30bb86b6ddf43fa9fcdfad865935d9d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 12, 2026.

Transparency log

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

Download URL slack_pat_mcp-0.1.8-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bfcaa0384c088b5fc0021d12a1cb2154a9289613a8939b10843d4fa50409a078
BLAKE2b-256 checksum
How to use checksums
7c5a38fb8a59d79abb512a381f966d1973445394f6a987a988e7be3c146cbdce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 12, 2026.

Transparency log

Security for slack-pat-mcp 0.1.8

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.8.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 12, 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