kChat MCP Server

$npx -y @infomaniak/mcp-server-kchat
README.md

Enables interaction with the kChat platform to manage channels and messages.

kChat MCP Server

MCP Server for the kChat API.

Tools

  1. kchat_list_channels

    • List public channels
    • Optional inputs:
      • limit (number, default: 100, max: 200): Maximum number of channels to return
      • page (number, default: 0): Pagination page
    • Returns: List of channels with their IDs and information
  2. kchat_post_message

    • Post a new message to a kChat channel
    • Required inputs:
      • channel_id (string): The ID of the channel to post to
      • text (string): The message text to post
    • Returns: Message post
  3. kchat_reply_to_thread

    • Reply to a specific message thread
    • Required inputs:
      • channel_id (string): The channel containing the thread
      • thread_id (string): The parent message ID
      • text (string): The reply text
    • Returns: Message post
  4. kchat_add_reaction

    • Add an emoji reaction to a message
    • Required inputs:
      • post_id (string): The message ID
      • reaction (string): Emoji name without colons
    • Returns: Reaction
  5. kchat_get_channel_history

    • Get recent messages from a channel
    • Required inputs:
      • channel_id (string): The channel ID
    • Optional inputs:
      • limit (number, default: 10): Number of messages to retrieve
    • Returns: List of messages with their content and metadata
  6. kchat_get_thread_replies

    • Get all replies in a message thread
    • Required inputs:
      • thread_id (string): The parent message ID
    • Returns: List of replies with their content and metadata
  7. kchat_get_users

    • Get list of workspace users with basic profile information
    • Optional inputs:
      • limit (number, default: 100, max: 100): Maximum number of users to return
      • page (number, default: 0): Pagination page
    • Returns: List of users with their basic profiles
  8. kchat_get_user_profile

    • Get detailed profile information for a specific user
    • Required inputs:
      • user_id (string): The user's ID
    • Returns: Detailed user profile information
  9. kchat_send_direct_message

    • Send a direct message to a user by username
    • Required inputs:
      • username (string): The username of the user to send the message to
      • text (string): The message text to send
    • Returns: Message post

Setup

  1. Create a kChat token linked to your user:

    Create a kChat token linked to a bot:

    • Visit your kChat webapp and click on New > Integrations > Bot accounts > Add bot accounts
  2. Get your kChat team name from your kChat url (eg. https://your-team.kchat.infomaniak.com/your-team/channels/town-square url have your-team team)

Usage with Claude Desktop

Add the following to your claude_desktop_config.json:

NPX
{
  "mcpServers": {
    "kchat": {
      "command": "npx",
      "args": [
        "-y",
        "@infomaniak/mcp-server-kchat"
      ],
      "env": {
        "KCHAT_TOKEN": "your-token",
        "KCHAT_TEAM_NAME": "your-team"
      }
    }
  }
}
docker
{
  "mcpServers": {
    "kchat": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "KCHAT_TOKEN",
        "-e",
        "KCHAT_TEAM_NAME",
        "infomaniak/mcp-server-kchat"
      ],
      "env": {
        "KCHAT_TOKEN": "your-token",
        "KCHAT_TEAM_NAME": "your-team"
      }
    }
  }
}

Environment Variables

  1. KCHAT_TOKEN: Required. Your kChat token.
  2. KCHAT_TEAM_NAME: Required. Your kChat team unique name.

Troubleshooting

If you encounter permission errors, verify that:

  1. All required scopes are added to your kChat token
  2. The token and team name are correctly copied to your configuration

Build

Docker build:

docker build -t infomaniak/mcp-server-kchat -f Dockerfile .

License

This MCP server is licensed under the MIT License.

Tools (9)

kchat_list_channelsList public channels with pagination support.
kchat_post_messagePost a new message to a specific kChat channel.
kchat_reply_to_threadReply to a specific message thread within a channel.
kchat_add_reactionAdd an emoji reaction to a specific message.
kchat_get_channel_historyRetrieve recent messages and metadata from a channel.
kchat_get_thread_repliesGet all replies associated with a parent message thread.
kchat_get_usersGet a list of workspace users and their basic profile information.
kchat_get_user_profileGet detailed profile information for a specific user ID.
kchat_send_direct_messageSend a direct message to a user by their username.

Environment Variables

KCHAT_TOKENrequiredYour kChat API token (user or bot scope).
KCHAT_TEAM_NAMErequiredYour kChat team unique name from the URL.

Configuration

claude_desktop_config.json
{"mcpServers": {"kchat": {"command": "npx", "args": ["-y", "@infomaniak/mcp-server-kchat"], "env": {"KCHAT_TOKEN": "your-token", "KCHAT_TEAM_NAME": "your-team"}}}}

Try it

List all the public channels in my kChat workspace.
Post a message to the 'general' channel saying 'Hello team, I am using Claude via MCP!'
Get the last 10 messages from the channel with ID 'xyz123'.
Send a direct message to @john.doe asking for the project update.
Add a 'thumbsup' reaction to the message with ID 'msg_789'.

Frequently Asked Questions

What are the key features of kChat?

Channel management including listing public channels and retrieving message history.. Full messaging capabilities including posting new messages, replying to threads, and direct messaging.. Interactive features like adding emoji reactions to specific posts.. User directory access to retrieve workspace profiles and detailed user information..

What can I use kChat for?

Automating daily standup posts or status updates to specific kChat channels.. Summarizing long kChat thread discussions using Claude's reasoning capabilities.. Quickly finding user contact information or profiles within a large workspace.. Monitoring channel history to provide context-aware assistance for team queries..

How do I install kChat?

Install kChat by running: npx -y @infomaniak/mcp-server-kchat

What MCP clients work with kChat?

kChat works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Use kChat with Conare

Manage MCP servers visually, upload persistent context, and never start from zero with Claude Code & Codex.

Try Free