productivity
Slack MCP Integration for Claude Agent SDK
Connect Slack to Claude Agent SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Slack to Claude Agent SDK
Give Claude Agent SDK workflows access to KosmoKrator integrations through a local MCP server.
Add a KosmoKrator stdio MCP server to the Claude Agent SDK options. The gateway is local, scoped to this integration, and starts with
--write=deny so Claude Agent SDK can inspect read-capable tools without receiving write access by default.
Slack MCP Config for Claude Agent SDK
Use a narrow integration list so the agent does not load unrelated tools.
{
"mcpServers": {
"kosmokrator-slack": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=slack",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=slack --write=deny Why Use KosmoKrator Here
Expose only Slack instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Slack Tools Visible to Claude Agent SDK
Claude Agent SDK sees stable MCP tool names generated from the Slack integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__slack__slack_send_message | slack.slack_send_message | Write | Send a message to a Slack channel or DM. Supports text, blocks, and thread replies. |
integration__slack__slack_update_message | slack.slack_update_message | Write | Update an existing Slack message. |
integration__slack__slack_delete_message | slack.slack_delete_message | Write | Delete a message from a Slack channel. |
integration__slack__slack_get_message | slack.slack_get_message | Read | Get a specific message by its timestamp. Optionally fetch a message within a thread. |
integration__slack__slack_search_messages | slack.slack_search_messages | Read | Search for messages across all Slack channels and DMs. |
integration__slack__slack_get_permalink | slack.slack_get_permalink | Read | Get a permalink URL for a specific Slack message. |
integration__slack__slack_get_channel_history | slack.slack_get_channel_history | Read | Get message history for a Slack channel. Supports pagination with cursors. |
integration__slack__slack_get_thread_replies | slack.slack_get_thread_replies | Read | Get all replies in a Slack message thread. |
integration__slack__slack_list_channels | slack.slack_list_channels | Read | List all Slack channels the bot has access to. |
integration__slack__slack_get_channel | slack.slack_get_channel | Read | Get detailed information about a Slack channel. |
integration__slack__slack_create_channel | slack.slack_create_channel | Write | Create a new Slack channel. |
integration__slack__slack_set_topic | slack.slack_set_topic | Write | Set the topic for a Slack channel. |
integration__slack__slack_set_purpose | slack.slack_set_purpose | Write | Set the purpose for a Slack channel. |
integration__slack__slack_archive_channel | slack.slack_archive_channel | Write | Archive a Slack channel. |
integration__slack__slack_invite_to_channel | slack.slack_invite_to_channel | Write | Invite one or more users to a Slack channel. |
integration__slack__slack_upload_file | slack.slack_upload_file | Write | Upload a file to Slack using the modern external upload flow. The file content is posted to a channel or as a thread reply. |
integration__slack__slack_list_files | slack.slack_list_files | Read | List files in Slack, optionally filtered by channel, user, or file type. |
integration__slack__slack_get_file | slack.slack_get_file | Read | Get detailed information about a Slack file. |
integration__slack__slack_list_users | slack.slack_list_users | Read | List all users in the Slack workspace. |
integration__slack__slack_get_user | slack.slack_get_user | Read | Get detailed information about a Slack user by their user ID. |
integration__slack__slack_find_user_by_email | slack.slack_find_user_by_email | Read | Look up a Slack user by their email address. |
integration__slack__slack_add_reaction | slack.slack_add_reaction | Write | Add an emoji reaction to a Slack message. |
integration__slack__slack_remove_reaction | slack.slack_remove_reaction | Write | Remove an emoji reaction from a Slack message. |
integration__slack__slack_list_usergroups | slack.slack_list_usergroups | Read | List all usergroups in the Slack workspace. |
integration__slack__slack_update_usergroup_members | slack.slack_update_usergroup_members | Write | Update the members of a Slack usergroup. |