Slack MCP Server

Slack MCP Server

Contribute to Chandrakant0110/slack-mcp development by creating an account on GitHub.

Chandrakant0110

Remote Shell Execution
AI Integration Systems
Visit Server

README

Slack MCP (Model Context Protocol) Server

This is a Slack MCP server implementation that provides various Slack API functionalities through the Model Context Protocol. It allows AI models to interact with Slack through a standardized interface.

Features

  • List public channels
  • Post messages
  • Reply to threads
  • Add reactions
  • Get channel history
  • Get thread replies
  • List users
  • Get user profiles

Prerequisites

  • Node.js (v16 or higher)
  • npm or yarn
  • A Slack workspace with admin access
  • A Slack Bot Token
  • Your Slack Team ID

Installation

  1. Clone this repository
  2. Install dependencies:
npm install
# or
yarn install
  1. Build the TypeScript code:
npm run build
# or
yarn build

Configuration

  1. Open index.ts and replace the placeholder values:
public static readonly BOT_TOKEN = "enter-your-bot-token-here";
public static readonly TEAM_ID = "enter-your-team-id-here";

Replace these with your actual Slack Bot Token and Team ID.

Usage

Running the Server

After building the project, you can run the server:

node dist/index.js

Setting up in Cursor

To use this MCP server in Cursor:

  1. Open Cursor settings
  2. Navigate to the "Model Context Protocol" section
  3. Add a new tool with the following configuration:
    • Name: slack
    • Command: node /path/to/your/dist/index.js
    • Working Directory: /path/to/your/project

Replace /path/to/your with the actual path to your project directory.

Available Tools

  1. slack_list_channels

    • Lists public channels in the workspace
    • Optional parameters: limit, cursor
  2. slack_post_message

    • Posts a message to a channel
    • Required parameters: channel_id, text
  3. slack_reply_to_thread

    • Replies to a message thread
    • Required parameters: channel_id, thread_ts, text
  4. slack_add_reaction

    • Adds an emoji reaction to a message
    • Required parameters: channel_id, timestamp, reaction
  5. slack_get_channel_history

    • Gets recent messages from a channel
    • Required parameters: channel_id
    • Optional parameters: limit
  6. slack_get_thread_replies

    • Gets all replies in a thread
    • Required parameters: channel_id, thread_ts
  7. slack_get_users

    • Lists all users in the workspace
    • Optional parameters: limit, cursor
  8. slack_get_user_profile

    • Gets detailed profile information for a user
    • Required parameters: user_id

Development

To modify the server:

  1. Make changes to index.ts
  2. Rebuild the project:
npm run build
# or
yarn build

Security Notes

  • Never commit your actual Slack Bot Token or Team ID to version control
  • Consider using environment variables for production deployments
  • Ensure your Slack Bot has the necessary OAuth scopes for the actions you want to perform

Contributing

Feel free to submit issues and pull requests for improvements.

License

MIT

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
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
Qdrant Server

Qdrant Server

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

Official
Featured
AIO-MCP Server

AIO-MCP Server

🚀 All-in-one MCP server with AI search, RAG, and multi-service integrations (GitLab/Jira/Confluence/YouTube) for AI-enhanced development workflows. Folk from

Featured
Local
React MCP

React MCP

react-mcp integrates with Claude Desktop, enabling the creation and modification of React apps based on user prompts

Featured
Local
Atlassian Integration

Atlassian Integration

Model Context Protocol (MCP) server for Atlassian Cloud products (Confluence and Jira). This integration is designed specifically for Atlassian Cloud instances and does not support Atlassian Server or Data Center deployments.

Featured
Any OpenAI Compatible API Integrations

Any OpenAI Compatible API Integrations

Integrate Claude with Any OpenAI SDK Compatible Chat Completion API - OpenAI, Perplexity, Groq, xAI, PyroPrompts and more.

Featured
Exa MCP

Exa MCP

A Model Context Protocol server that enables AI assistants like Claude to perform real-time web searches using the Exa AI Search API in a safe and controlled manner.

Featured
MySQL Server

MySQL Server

Allows AI assistants to list tables, read data, and execute SQL queries through a controlled interface, making database exploration and analysis safer and more structured.

Featured