Skip to main content
Glama
piekstra

Slack MCP Server

by piekstra

create_channel

Create new Slack channels for team communication by specifying a name and privacy setting to organize workspace discussions.

Instructions

Create a new Slack channel.

Args: name: Name for the new channel is_private: Whether the channel should be private

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
is_privateNo

Implementation Reference

  • The MCP tool handler for 'create_channel', decorated with @mcp.tool(). It instantiates SlackClient and delegates to its create_channel method, returning JSON response.
    @mcp.tool() async def create_channel(name: str, is_private: bool = False) -> str: """ Create a new Slack channel. Args: name: Name for the new channel is_private: Whether the channel should be private """ try: client = SlackClient() result = await client.create_channel(name, is_private) return json.dumps(result, indent=2) except Exception as e: return json.dumps({"error": str(e)}, indent=2)
  • SlackClient helper method that performs the actual Slack API call to create a channel using conversations.create endpoint.
    async def create_channel(self, name: str, is_private: bool = False) -> Dict[str, Any]: """Create a new channel.""" data = {"name": name, "is_private": is_private} return await self._make_request("POST", "conversations.create", json_data=data)
  • The @mcp.tool() decorator registers the create_channel function as an MCP tool.
    @mcp.tool()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/piekstra/slack-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server