{
  "openapi": "3.0.1",
  "info": {
    "title": "Slack MCP Server",
    "description": "MCP server for Slack workspaces. Read channel history, search messages, fetch thread replies, list users and channels, and post messages. Supports OAuth, Bot, and browser token authentication. Based on korotovsky/slack-mcp-server with 600+ GitHub stars.",
    "version": "1.0",
    "x-build-id": "jQthrhPshTEfLrXaY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/constant_quadruped~slack-mcp-server/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-constant_quadruped-slack-mcp-server",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/constant_quadruped~slack-mcp-server/runs": {
      "post": {
        "operationId": "runs-sync-constant_quadruped-slack-mcp-server",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/constant_quadruped~slack-mcp-server/run-sync": {
      "post": {
        "operationId": "run-sync-constant_quadruped-slack-mcp-server",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "action"
        ],
        "properties": {
          "authMode": {
            "title": "Authentication Mode",
            "enum": [
              "oauth",
              "bot",
              "browser"
            ],
            "type": "string",
            "description": "Choose how to authenticate with Slack",
            "default": "oauth"
          },
          "xoxpToken": {
            "title": "User OAuth Token (xoxp)",
            "type": "string",
            "description": "Slack User OAuth token starting with xoxp-. Get from api.slack.com/apps"
          },
          "xoxbToken": {
            "title": "Bot Token (xoxb)",
            "type": "string",
            "description": "Slack Bot token starting with xoxb-. Limited: cannot search messages"
          },
          "xoxcToken": {
            "title": "Browser Token (xoxc)",
            "type": "string",
            "description": "Browser token from Slack web app. Extract from browser DevTools"
          },
          "xoxdToken": {
            "title": "Browser Cookie (xoxd)",
            "type": "string",
            "description": "Browser cookie token. Required when using xoxc token"
          },
          "action": {
            "title": "Action",
            "enum": [
              "conversations_history",
              "conversations_replies",
              "conversations_add_message",
              "conversations_search_messages",
              "channels_list",
              "list_users",
              "list_channels"
            ],
            "type": "string",
            "description": "MCP tool to execute",
            "default": "channels_list"
          },
          "channelId": {
            "title": "Channel ID or Name",
            "type": "string",
            "description": "Channel ID (C01234567) or name (#general, @username for DMs)"
          },
          "threadTs": {
            "title": "Thread Timestamp",
            "type": "string",
            "description": "Thread timestamp for replies (format: 1234567890.123456)"
          },
          "limit": {
            "title": "Limit",
            "type": "string",
            "description": "For history: time range (1d, 7d, 1m) or count. For list/search: max results",
            "default": "1d"
          },
          "channelTypes": {
            "title": "Channel Types",
            "type": "string",
            "description": "Types of channels to list (comma-separated)",
            "default": "public_channel,private_channel"
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "default",
              "popularity"
            ],
            "type": "string",
            "description": "Sort channels by popularity (member count) or default",
            "default": "default"
          },
          "searchQuery": {
            "title": "Search Query",
            "type": "string",
            "description": "Text to search for, or Slack message URL"
          },
          "filterInChannel": {
            "title": "Filter: In Channel",
            "type": "string",
            "description": "Search only in this channel"
          },
          "filterFromUser": {
            "title": "Filter: From User",
            "type": "string",
            "description": "Messages from this user"
          },
          "filterWithUser": {
            "title": "Filter: With User",
            "type": "string",
            "description": "Conversations with this user"
          },
          "filterDateAfter": {
            "title": "Filter: After Date",
            "type": "string",
            "description": "Messages after this date (YYYY-MM-DD)"
          },
          "filterDateBefore": {
            "title": "Filter: Before Date",
            "type": "string",
            "description": "Messages before this date (YYYY-MM-DD)"
          },
          "filterThreadsOnly": {
            "title": "Filter: Threads Only",
            "type": "boolean",
            "description": "Only return threaded messages",
            "default": false
          },
          "messageText": {
            "title": "Message Text",
            "type": "string",
            "description": "Message content to post (Markdown supported)"
          },
          "messageContentType": {
            "title": "Content Type",
            "enum": [
              "text/markdown",
              "text/plain"
            ],
            "type": "string",
            "description": "Message format",
            "default": "text/markdown"
          },
          "enableMessagePosting": {
            "title": "Enable Message Posting",
            "type": "boolean",
            "description": "Allow posting messages (disabled by default for safety)",
            "default": false
          },
          "allowedPostingChannels": {
            "title": "Allowed Posting Channels",
            "type": "string",
            "description": "Comma-separated channel IDs where posting is allowed (leave empty for all)"
          },
          "includeActivityMessages": {
            "title": "Include Activity Messages",
            "type": "boolean",
            "description": "Include join/leave and other activity messages",
            "default": false
          },
          "proxyUrl": {
            "title": "Proxy URL",
            "type": "string",
            "description": "Route requests through a proxy (http://host:port)"
          },
          "logLevel": {
            "title": "Log Level",
            "enum": [
              "debug",
              "info",
              "warn",
              "error"
            ],
            "type": "string",
            "description": "Logging verbosity",
            "default": "info"
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}