Cover image
Try Now
2025-04-02

MCP server for Slack channel administration (create, rename, archive)

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

Slack Admin MCP Server

這是一個自訂的 Model Context Protocol (MCP) 伺服器,用於執行 Slack 頻道的管理操作。

功能

提供以下工具:

  • slack_create_channel:建立新的 Slack 頻道 (公開或私密)。
  • slack_rename_channel:重新命名現有的 Slack 頻道。
  • slack_archive_channel:封存現有的 Slack 頻道。

設定

  1. 取得 Slack Bot Token

    • 前往 https://api.slack.com/apps 建立或選擇一個 Slack App。
    • 在 "OAuth & Permissions" > "Bot Token Scopes" 中,確保至少加入以下權限:
      • channels:manage (建立/封存/重新命名公開頻道)
      • groups:write (建立/封存/重新命名私密頻道)
      • channels:read (讀取頻道資訊)
      • groups:read (讀取私密頻道資訊)
    • 重新安裝 App 到您的工作區以使權限生效。
    • 複製產生的 "Bot User OAuth Token" (以 xoxb- 開頭)。
  2. 設定 MCP

    • 將此伺服器加入您的 MCP 設定檔 (例如 cline_mcp_settings.json)。
    • 確保 command, args, options.cwd, env.NODE_PATH 指向正確的路徑。
    • env 中設定 SLACK_BOT_TOKEN 為您取得的 Token。
    "slack-admin-mcp": {
      "command": "cmd", // 或 node 的完整路徑
      "args": [
        "/c",
        "node", // 如果 command 是 cmd
        "D:\\Github_Project\\slack-admin-mcp\\build\\index.js" // 確認路徑正確
      ],
      "options": {
        "cwd": "D:\\Github_Project\\slack-admin-mcp" // 確認路徑正確
      },
      "env": {
        "SLACK_BOT_TOKEN": "YOUR_SLACK_BOT_TOKEN_HERE", // 替換成您的 Token
        "NODE_PATH": "D:\\Github_Project\\slack-admin-mcp\\node_modules" // 確認路徑正確
      },
      "disabled": false,
      "autoApprove": []
    }
    

開發

  • 安裝依賴:npm install
  • 建置:npm run build
  • 監看變更並自動建置:npm run watch

使用

透過支援 MCP 的客戶端 (例如 Cline),使用 use_mcp_tool 指令呼叫以下工具:

  • slack_create_channel (參數: name, is_private (可選, 預設 false))
  • slack_rename_channel (參數: channel_id, new_name)
  • slack_archive_channel (參數: channel_id)

相关推荐

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://reddgr.com
  • Delivers concise Python code and interprets non-English comments

  • 林乔安妮
  • A fashion stylist GPT offering outfit suggestions for various scenarios.

  • 1Panel-dev
  • 💬 MaxKB is a ready-to-use AI chatbot that integrates Retrieval-Augmented Generation (RAG) pipelines, supports robust workflows, and provides advanced MCP tool-use capabilities.

  • GLips
  • MCP server to provide Figma layout information to AI coding agents like Cursor

  • open-webui
  • User-friendly AI Interface (Supports Ollama, OpenAI API, ...)

  • Mintplex-Labs
  • The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.

  • ShrimpingIt
  • Micropython I2C-based manipulation of the MCP series GPIO expander, derived from Adafruit_MCP230xx

  • Dhravya
  • Collection of apple-native tools for the model context protocol.

    Reviews

    3 (1)
    Avatar
    user_jnJBRusT
    2025-04-17

    As a dedicated user of the slack-admin-mcp application, I must say it's an exceptional tool for Slack workspace management. The intuitive interface and robust feature set crafted by xiujiang1987 make it incredibly efficient and user-friendly. It's a must-have for any Slack admin looking to streamline their operations. Highly recommended! Check it out at https://github.com/xiujiang1987/slack-admin-mcp.