Slack MCP Integration
Guide for integrating Slack messaging capabilities with PraisonAI agents using MCP
Add Slack Tool to AI Agent
Quick Start
Install Dependencies
Make sure you have Node.js installed, as the MCP server requires it:
Set API Keys
Set your Slack credentials as environment variables in your terminal:
Create a file
Create a new file slack_agent.py
with
the following code:
Run the Agent
Execute your script:
Requirements
- Python 3.10 or higher
- Node.js installed on your system
- Slack Bot Token and Team ID
- OpenAI API key (for the agent’s LLM)