slack-user-mcp-server

slack-user-mcp-server

Enables AI agents to interact with Slack using a user token, providing full access to message search, channel history, DMs, and posting as the user.

Category
Visit Server

README

Slack User MCP Server

A personal MCP (Model Context Protocol) server that connects to Slack using your user token (xoxp-...), giving AI agents full access to your workspace — including message search, channel history, DMs, and posting as yourself.

Unlike bot-token-based Slack integrations, this server acts as you, so it can access any channel you're a member of (including private channels and DMs) and use the Slack search API.

Features

  • Search messages — Full Slack search syntax (from:me, in:#channel, has:link, date filters, etc.)
  • Channel history — Read messages from any channel, DM, or group message you're in
  • Post messages — Send messages as yourself (not as a bot)
  • User lookup — Find users by name or email
  • Thread reading — Fetch all replies in a thread
  • Auth verification — Confirm your connection and identity

Tools

Tool Description
slack_search_messages Search messages with Slack query syntax
slack_list_channels List channels (public, private, DMs)
slack_get_channel_history Read recent messages from a channel
slack_post_message Send a message as yourself
slack_lookup_user Find users by name or email
slack_get_user_info Get detailed user profile by ID
slack_get_thread Read all replies in a thread
slack_auth_test Verify your connection

Setup

1. Create a Slack App and Get a User Token

  1. Go to api.slack.com/apps and create a new app From scratch
  2. Under OAuth & Permissions, add these User Token Scopes:
    • search:read
    • channels:read, channels:history
    • groups:read, groups:history
    • im:read, im:history
    • mpim:read, mpim:history
    • users:read, users:read.email
    • chat:write
  3. Install the app to your workspace
  4. Copy the User OAuth Token (starts with xoxp-)

2. Install Dependencies and Build

cd slack-user-mcp-server
npm install
npm run build

3. Connect to Claude Desktop

Add this to your Claude Desktop config:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "slack-personal": {
      "command": "node",
      "args": ["/path/to/slack-user-mcp-server/dist/index.js"],
      "env": {
        "SLACK_USER_TOKEN": "xoxp-your-token-here"
      }
    }
  }
}

Note: If you use a Node version manager like fnm or nvm, use the full path to node instead of just "node". Find it with fnm exec --using=default -- which node or nvm which default.

4. Restart Claude Desktop

Quit and reopen Claude Desktop. The server will appear in your MCP connections.

Example Queries

Once connected, you can ask your AI assistant things like:

  • "Search for my recent Slack messages" — uses from:me
  • "What's the latest in #general?" — channel history
  • "Find messages about the Q1 budget" — full-text search
  • "Who is on the marketing team?" — user lookup
  • "Send a message to #general saying the build is green" — post as yourself

Search Syntax

The search tool supports all Slack search modifiers:

Modifier Example Description
from: from:me or from:@username Messages from a user
in: in:#channel Messages in a channel
has: has:link, has:reaction Filter by attributes
before: / after: after:2024-01-01 Date range
is: is:thread Threaded messages only

Tech Stack

  • TypeScript
  • MCP TypeScript SDK
  • Slack Web API (via fetch)
  • Zod for input validation
  • stdio transport

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured