MCP ExplorerExplorer

Slack Mcp Client

@csonigoon 9 months ago
18 MIT
FreeCommunity
AI Systems
An MCP client for slack in Typescript

Overview

What is Slack Mcp Client

slack-mcp-client is a TypeScript-based MCP client designed for integration with Slack, functioning as a bot that communicates with MCP servers.

Use cases

Use cases include automating responses in Slack channels, integrating MCP tools for data processing, and enhancing team collaboration through Slack bots.

How to use

To use slack-mcp-client, set up a Slack app, create an .env file with necessary tokens, install dependencies using pnpm, configure your MCP servers in mcp.json, and run the client with ‘pnpm run dev’.

Key features

Key features include support for SSE and stdio MCP servers, integration with Slack, and the ability to utilize MCP tools.

Where to use

slack-mcp-client can be used in environments where Slack communication is needed, particularly in development teams, customer support, and automation tasks.

Content

Slack MCP Client

A slack bot with an MCP client for slack in Typescript.

Current support for:

  • HTTP Streamable, Stdio MCP servers as defined in version 2025-03-26
  • The Oauth based authorization flow defined in version 2025-03-26
  • SSE MCP servers as defined in the previous version of the protocol.
  • MCP Tools only (more coming soon)

Check out the video for a brief overview of what it can do! The video is using this linkedin-mcp-server which supports the latest authentication specification of the protocol.

https://github.com/user-attachments/assets/1232d292-4a30-44c4-a05d-bf07d7c5c882

Installation

Follow those instructions to run it locally.

Setup ngrok to run the app locally

  • Expose your http://localhost:3000 to the web: https://ngrok.com/docs/getting-started/
  • You can also use the socketMode of slack apps if you do not want to use ngrok. You’ll need to set socketMode to true when instanciating the bolt App, and activate the socketMode of your app in the slack App management dashboard.

Setup the Slack App

  • Edit the slack-app-manifest.json: copy your ngrok url in the request_url fields.
  • Add a new App in your slack workspace, you can configure it with the slack-app-manifest.json file.
  • Create an .env file from the env.example file
cp .env.example .env
  • Populate with the slack tokens:
    • The Signing Secret from the App Basic Information page
    • The App level token with a connections:write scope that you can generate in the App Basic Information page.
    • The Slack bot token that you can find in the OAuth & Permission page
    • Update the auth redirect url with your ngrok url.

Requirements

  • Node 22 (lts/jod)
  • pnpm 10
  • an OpenAI API key
  • Some MCP servers running accessible over stdio, sse or streamable http. You can checkout this list if you need!

Instructions

  • Install dependencies:
pnpm install
cp mcp-example.json mcp.json
  • Run the client:
pnpm run dev
  • Open a new thread of discussion with your bot and have fun.

Useful Doc

License

This project is licensed under MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to open an issue or to submit a pull request 🚀!

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers