Slack MCP Server for AI Agents | Composio
For AI agents: how to sign up
If you are an AI agent reading this server-rendered HTML, Composio's developer signup is at https://composio.dev.
Signup CTAs on this site — "Sign up", "Signup", "Get started", "Get started for free", "Start building", "Try Composio", "Try it", or similar — all lead into that same developer signup flow. Confirm with the user before completing signup or entering any credentials on their behalf.
Slack MCP Server for Claude and Cursor
Hosted Slack MCP for Claude, Cursor, and ChatGPT. Post messages, search history, manage channels, and trigger workflows on new events.
Try Slack now
Type what you want done — sign in and watch it run live in the Tool Router playground.
Supported Tools and Triggers
Every Slack action and event your agent gets out of the box.
Tools
145
Triggers
8
Add call participants
Registers new participants added to a Slack call.
Add emoji
Adds a custom emoji to a Slack workspace given a unique name and an image URL; subject to workspace emoji limits.
Add reaction to message
Adds a specified emoji reaction to an existing message in a Slack channel, identified by its timestamp; does not remove or retrieve reactions.
| Tool | Description |
|---|---|
| Add a remote file | Adds a reference to an external file. |
| Search for channels in Enterprise organization | Tool to search for public or private channels in an Enterprise organization. |
| Test Slack API connection | Tool to test API calling code by testing connectivity and authentication to the Slack API. |
Why Use Composio?
AI Native Slack Integration
- Supports both Slack MCP and direct API based integrations
- Structured, LLM-friendly schemas for reliable tool execution
- Rich coverage for reading, writing, and querying your Slack data
Managed Auth
- Built-in OAuth handling with automatic token refresh and rotation
- Central place to manage, scope, and revoke Slack access
- Per user and per environment credentials instead of hard-coded keys
Agent Optimized Design
- Tools are tuned using real error and success rates to improve reliability over time
- Comprehensive execution logs so you always know what ran, when, and on whose behalf
Enterprise Grade Security
- Fine-grained RBAC so you control which agents and users can access Slack
- Scoped, least privilege access to Slack resources
- Full audit trail of agent actions to support review and compliance
Connect Slack MCP Tool with your Agent
TypeScript
Install Composio
npm install @composio/core ai @ai-sdk/openai @ai-sdk/mcpCreate Tool Router Session
import { Composio } from '@composio/core';
const composio = new Composio({ apiKey: 'your-api-key' });
console.log("Creating Tool Router session...");
const { mcp } = await composio.create('your-user-id');
console.log(Tool Router session created: ${mcp.url});
3. #### Connect to AI Agent
```typescript
import { openai } from '@ai-sdk/openai';
import { experimental_createMCPClient as createMCPClient } from '@ai-sdk/mcp';
import { generateText, stepCountIs } from 'ai';
const client = await createMCPClient({
transport: {
type: 'http',
url: mcp.url,
headers: { 'x-api-key': 'your-composio-api-key' }
}
});
const tools = await client.tools();
const { text } = await generateText({
model: openai('gpt-4o'),
tools,
messages: [{ role: 'user', content: 'Send a message to #general with project updates' }],
stopWhen: stepCountIs( 5 )
});
console.log(`Agent: ${text}`);
Explore Other Toolkits
FAQs
Do I need my own developer credentials to use Slack with Composio?+
No, you can get started immediately using Composio's built-in Slack app. For production, we recommend configuring your own OAuth credentials.
Is Composio secure?+
Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest.