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.

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, usergroups:read

Metadata

Release files for slack-pat-mcp 0.1.7

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

Built distribution (wheel)

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

Total release size: 21.7 kB

Release files / slack_pat_mcp-0.1.7.tar.gz

Download URL slack_pat_mcp-0.1.7.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6b41aa14b15c77fc6c2486d4cd754eed3e29c71dc34070738f80208bd5982d6d
BLAKE2b-256 checksum
How to use checksums
6f73203b8dbbb702eeca647f76842d0084dd4c0227666d85ca15c3d7bd2c8009
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 9, 2026.

Transparency log

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

Download URL slack_pat_mcp-0.1.7-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf0662400cf94c7cdee3ed1be2d4a01f06b5ff7b7e1d54f5dcb531c051d80f36
BLAKE2b-256 checksum
How to use checksums
674ac80683917a706851c0fe0542732fce095df48b1b8a69b5d48d84f027df10
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 9, 2026.

Transparency log

Security for slack-pat-mcp 0.1.7

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.7.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 9, 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