Skip to content

MCP API (Model Context Protocol)

Kotbo’s MCP (Model Context Protocol) support lets you connect an external AI assistant (such as Claude.ai or ChatGPT) directly to your Discord server. The AI can then read data or carry out moderation actions, within strictly defined permissions.


MCP is an open standard that lets an AI model interact with external tools and databases. Thanks to the MCP server Kotbo exposes, your AI can become a powerful administration or community assistant, with real-time context on what is happening on your server.


To connect an AI, you need to generate dedicated credentials from the Kotbo dashboard.

  1. Go to Configuration → MCP API (Open the MCP API ↗).
  2. Click the New key button in the top right.
  3. Enter a key name so you can identify it easily (for example Claude Web, ChatGPT Staff).
  4. Configure the key’s permissions. Only tick what the intended use actually requires.
  • Server Stats: members, messages, activity.
  • Members & Messages: profiles, recent messages, reading forums and posts.
  • Sanctions: list and history.
  • Staff: staff list and profiles.
  • Tickets: list of open tickets.
  • Community: leaderboards, suggestions, events, quests, reputation, custom onboarding, clan bets and debts.
  • Economy: RPG profiles, shop, marketplace, economic leaderboards.
  • Moderation: AutoMod, banned words, auto responses, CodePolice.
  • Analytics: per-channel stats, hourly heatmap, Pulse, predictions.
  • Read automations: view automations, their run history and the catalogue of available blocks.

Sensitive permissions

Write permissions let the AI make real changes to your server. Be careful.

  • Sanction: apply or remove sanctions via the AI.
  • Manage Messages: send, edit or delete messages, and manage forums, posts and tags.
  • Manage Tickets: reply to and close tickets via the AI.
  • Manage Community: answer suggestions, manage events and giveaways, the custom onboarding pipeline, settle and void clan bets.
  • Manage Members: moderator notes, adding and removing roles, levels, invites.
  • Manage automations: create, edit, enable and delete automations.
  1. Click Generate Key.
  2. IMPORTANT: a window appears with your Client ID and your Client Secret (which starts with mcp_). Copy and store this information straight away. The Client Secret will never be shown in plain text again.

Pick your AI assistant to see the matching setup instructions:

Anthropic’s Claude supports remote MCP servers as custom connectors.

  1. Open Claude.ai and go to your settings by clicking your profile, then go to Customize → Connectors (or click the button available in Kotbo’s connection help).
  2. Click the + button, then choose Add custom connector.
  3. Enter the following details:
    • Name: Kotbo
    • URL: in the Kotbo dashboard, on the row for your MCP key, click Generate the direct Claude URL and copy it. Paste that long signed URL into Claude.
    • Note: leave the optional fields (Client ID, Client Secret, Advanced) empty when you use the direct URL.
  4. Click Add. Claude is now connected to Kotbo.

If you are building your own MCP client (for example with Google’s MCP SDKs for Gemini, or in Python/TypeScript):

Authentication works by passing the access key as a Bearer token in the header of your HTTP requests.

Example JSON configuration for an MCP server:

{
"type": "mcp_server",
"name": "Kotbo",
"url": "https://api-kotbo-url/api/mcp/YOUR_SERVER_ID",
"headers": {
"Authorization": "Bearer mcp_YOUR_CLIENT_SECRET"
}
}

(Replace mcp_YOUR_CLIENT_SECRET with the full Client Secret you copied when you created the key.)


If the AI cannot read information, or if requests are failing, you can check the logs in real time.

  1. Go to Configuration → MCP API.
  2. Next to your endpoint URL, click the Logs button.
  3. You will see every recent incoming connection, the methods called (for example listTools, callTool) and any errors the bot returned.