Required Environment Variables
Set these Slack-related variables for your deployment:SLACK_TEAM_ID
: (e.g. T01234567)
Slack Team ID for your workspace.SLACK_CHANNEL_IDS
: (e.g. C01234567, C76543210)
Comma-separated list of Slack Channel IDs to enable for the tools.SLACK_BOT_TOKEN
: (e.g. xoxb-your-bot-token)
Slack Bot token with suitable permissions.
Steps
-
Install Meshagent CLI
-
Sign Up & Authenticate
- Go to the Meshagent CLI Getting Started Guide and follow the login/auth instructions.
-
Start the MCP Slack Service Agent
- This command creates a Meshagent Room named
test
containing the Slack MCP server.
- This command creates a Meshagent Room named
-
Start the Chatbot in the Room
- This launches a chatbot inside the same Room, using the Slack toolkit.
- A browser link to the Room will be output by this command.
-
Interact with the Agent in the Room
- Visit the Room link and use the chatbot to send messages and interact with the MCP Server tools live from your browser.
Project-Level Deployment
For continuous, production-ready access in all Rooms of a Meshagent Project, create persistent services and chatbots. These automatically join every new Room within the project scope.-
Create Persistent MCP Slack Service Agent
-
Create Persistent Chatbot Service
Tools Available
Interact with Slack Workspaces using these tools (invoked by the agent or chatbot):Tool | Short Description |
---|---|
slack_add_reaction | Add a reaction emoji to a message |
slack_get_channel_history | Get recent messages from a channel |
slack_get_thread_replies | Get all replies in a message thread |
slack_get_user_profile | Get detailed profile information for a specific user |
slack_get_users | Get a list of all users in the workspace with their basic profile information |
slack_list_channels | List public or pre-defined channels in the workspace with pagination |
slack_post_message | Post a new message to a Slack channel |
slack_reply_to_thread | Reply to a specific message thread in Slack |
Tool Details
slack_add_reactionAdd a reaction emoji to a message
channel_id
(string
): ID of the channel with the messagereaction
(string
): Name of the emoji reaction (no colons)timestamp
(string
): Timestamp of the message
Get recent messages from a channel
channel_id
(string
): ID of the channellimit
(number
, optional): Number of messages (default 10)
Get all replies in a message thread
channel_id
(string
): ID of channel containing the threadthread_ts
(string
): Timestamp of the parent message (e.g.1234567890.123456
)
Get detailed profile information for a user
user_id
(string
): The user’s Slack ID
Get a list of all users in the workspace
cursor
(string
, optional): Pagination cursorlimit
(number
, optional): Maximum users (default 100, max 200)
List channels with pagination
cursor
(string
, optional): Pagination cursorlimit
(number
, optional): Maximum channels (default 100, max 200)
Post a message to a channel
channel_id
(string
): ID of the channeltext
(string
): Message text
Reply to a thread in Slack
channel_id
(string
): ID of the channeltext
(string
): Reply textthread_ts
(string
): Timestamp of parent message
Additional Resources
- Meshagent: https://www.meshagent.com/
- Read The Docs: https://docs.meshagent.com
- Meshagent MCP Slack Tool Docker Image: https://hub.docker.com/r/meshagent/mcp-slack