npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

slack-mcp

v1.0.3

Published

Integrate the Slack Web API into agentic workflows via MCP

Readme

Slack MCP Server

Integrate the Slack Web API into agentic workflows via MCP.

Tools

  1. search_messages
  2. get_message_thread

Setup

Access Token

Create a Slack app and obtain a User OAuth Token (starts with xoxp-). Ensure the authorized user is a member of the channels you want to search.

Required environment variables (can be set in your shell or a .env file):

  • SLACK_AUTH_USER_TOKEN (starts with xoxp-)
  • SLACK_SEARCH_CHANNELS (comma-separated channel names without '#' with no leading or trailing spaces)

Example .env:

SLACK_AUTH_USER_TOKEN=xoxp-...
SLACK_SEARCH_CHANNELS=general,random

Slack Scopes

Grant the following user token scopes to your Slack app (choose public and/or private based on your needs):

  • search:read
  • channels:history (public) and/or groups:history (private) (read messages and other content in a user’s public channels)
  • channels:read / groups:read (view basic information about public channels in a workspace)
  • channels:history (read messages and other content in a user’s public channels)
  • links:read (view URLs in messages)
  • search:read (search a workspace’s content)
  • search:read.private (search a workspace's content in private channels)
  • search:read.public (search a workspace's content in public channels)
  • search:read.users (search a workspace's users)
  • users.profile:read (view a user’s profile information)

Usage with Claude Desktop

To use this with Claude Desktop, add the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "slack": {
      "command": "npx",
      "args": [
        "-y",
        "@tomgutt/slack-mcp"
      ],
      "env": {
        "SLACK_AUTH_USER_TOKEN": "xoxp-...",
        "SLACK_SEARCH_CHANNELS": "general,random"
      }
    }
  }
}

NPX

If published, you can run it directly via NPX (example shown in the Claude configuration above).

Run locally

Build:

npm run build

Use the mcp inspector:

npm run inspector

Test a tool without inspector

./run-test.sh

Tool Inputs

  • search_messages: { query: string, messageCount?: number, includeThreads?: boolean, threadCount?: number, sortMessages?: "mostRelevant" | "latest" | "oldest" }
  • get_message_thread: { channelId: string, ts: string, threadCount?: number }

All tools restrict results to SLACK_SEARCH_CHANNELS. sortMessages is only used for search_messages.

Changes to original

  • Implements Slack message search with optional thread inclusion and paging
  • Adds lightweight response shaping to reduce token usage
  • Provides a channel allow-list via SLACK_SEARCH_CHANNELS

License

This MCP server is licensed under the MIT License. See LICENSE for details.