Slack API key, OAuth and MCP

Post, read and search Slack messages, and react to workspace events. The API key is created in 4 steps et voyage dans l'en-tête de chaque appel. OAuth is used when the access must act on behalf of other accounts. An official MCP server (mcp.slack.com) connects it to Claude, ChatGPT or Le Chat.

Communication and collaboration · Team messaging

Slack

Post, read and search Slack messages, and react to workspace events.

  • REST API
  • Key or personal token
  • OAuth
  • Official MCP server
  1. 1

    Ouvrez api.slack.com/apps, Créer une application, à partir de zéro.

  2. 2

    OAuth et autorisations : ajoutez les portées du bot (chat:write, channels:read, channels:history…).

  3. 3

    Installez l'application dans l'espace : copiez le jeton de bot, qui commence par xoxb-.

  4. 4

    Invitez le bot dans les canaux qu'il doit lire : /invite @nom-du-bot.

Send with every call
Authorization: Bearer xoxb-…
Test the key
curl -X POST https://slack.com/api/auth.test \
  -H "Authorization: Bearer $SLACK_CLE"

Worth knowing. To post only to a channel, an incoming webhook is enough, though it can’t read anything.

Your questions about Slack.

Where do you create a Slack API key?

Ouvrez api.slack.com/apps, Créer une application, à partir de zéro. OAuth et autorisations : ajoutez les portées du bot (chat:write, channels:read, channels:history…). Installez l'application dans l'espace : copiez le jeton de bot, qui commence par xoxb-. Invitez le bot dans les canaux qu'il doit lire : /invite @nom-du-bot.

How do you check that Slack access works?

With a call that changes nothing, on the REST API of Slack, l'en-tête Authorization: … en place. The “API key” tab gives the command to copy. A 200 response confirms the key; a 401 or 403 error means it is wrong, expired or too restricted.

Do you need OAuth with Slack?

Only if the access must act on behalf of accounts other than yours. To install the app in other workspaces: public distribution and the OAuth v2 flow at https://slack.com/oauth/v2/authorize.

Does Slack have an official MCP server?

Official MCP server. Its address: https://mcp.slack.com/mcp. Available to everyone since 17 February 2026, with real-time search that respects each user’s permissions. The “MCP server” tab explains how to add it in Claude, ChatGPT or Le Chat.

What precautions should you take with Slack access?

To post only to a channel, an incoming webhook is enough, though it can’t read anything.