# Slack MCP Server

## Overview

The Slack MCP server connects Panther AI to your Slack workspace, providing tools to search messages and files, send messages, manage canvases, and look up user profiles.

**MCP server URL:** `https://mcp.slack.com/mcp`

## Prerequisites

* A Slack workspace
* A Slack app published to the [Slack Marketplace](https://slack.com/marketplace) or approved as an internal app for your workspace. Unlisted apps are not supported.
* Permission to install apps in your Slack workspace

## Setup

The Slack MCP server requires **manual OAuth credentials**. You will need to add the server in Panther first to obtain the redirect URL, then register an OAuth application in Slack.

1. **Add the server in Panther:**
   1. In the upper-right corner of your Panther Console, click the gear icon (**Settings**) > **Panther AI**.
   2. Navigate to the **MCP Servers** tab.
   3. Click **Add MCP Server**.
   4. Select **Slack** from the catalog.
   5. Enter a **Name** for the server (e.g., "Slack").
   6. Optionally enter a **Description**.
   7. Click **Next**. Panther will attempt to discover the server's OAuth metadata and display a **Redirect URL**. Copy this URL — you will need it in the next step.
2. **Register an OAuth application in Slack:**
   1. Go to the [Slack App Management page](https://api.slack.com/apps) and click **Create New App**.
   2. Choose **From scratch**, enter a name (e.g., "Panther AI MCP"), and select your workspace.
   3. In the left sidebar, navigate to **OAuth & Permissions**.
   4. Under **Redirect URLs**, click **Add New Redirect URL** and paste the redirect URL copied from step 1. Click **Save URLs**.
   5. Under **User Token Scopes**, add the scopes corresponding to the tools you want to allow:
      * **Search tools**: `search:read.public`, `search:read.private`, `search:read.mpim`, `search:read.im`, `search:read.files`, `search:read.users`
      * **Messaging tools**: `chat:write`, `channels:history`, `groups:history`, `mpim:history`, `im:history`
      * **Canvas tools**: `canvases:read`, `canvases:write`
      * **User tools**: `users:read`, `users:read.email`
   6. In the left sidebar, navigate to **Agents & AI Apps** and toggle **Model Context Protocol** to **On**.
   7. In the left sidebar, navigate to **Basic Information**.
   8. Under **App Credentials**, note the **Client ID** and **Client Secret**.
3. **Complete the setup in Panther:**
   1. Return to the Panther MCP server setup wizard.
   2. Enter the **OAuth Client ID** and **Client Secret** from step 2.
   3. Click **Create**.

### Connecting your account

After an admin adds the Slack server:

1. On the MCP Servers page, find **Slack** in the available servers list.
2. Click **Connect**.
3. You will be redirected to Slack's OAuth authorization page. Sign in and grant the requested permissions.
4. After authorization, you will be redirected back to Panther to configure your tool permissions.

## Learn more

* [Slack MCP Server documentation](https://docs.slack.dev/ai/slack-mcp-server/)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.panther.com/ai/mcp-integrations/slack-mcp-server.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
