MCP Slack Python

MCP Slack Python

An MCP server that enables interaction with Slack workspaces through tools for managing channels, sending messages, and retrieving user profiles. It leverages the Slack API and FastMCP to provide functionalities like message history lookup and reaction management.

Category
Visit Server

README

MCP Slack Python

Slack API를 활용한 MCP(Model Context Protocol) 서버입니다. FastMCP를 사용하여 Slack 워크스페이스와 상호작용할 수 있는 다양한 도구를 제공합니다.

기능

  • 채널 목록 조회 - 워크스페이스의 모든 채널 목록 가져오기
  • 메시지 전송 - 채널에 메시지 보내기 (스레드 답글 지원)
  • 메시지 조회 - 채널의 최근 메시지 가져오기
  • 리액션 추가 - 메시지에 이모지 리액션 달기
  • 스레드 답글 조회 - 특정 메시지의 스레드 답글 가져오기
  • 사용자 목록 조회 - 워크스페이스의 모든 사용자 목록 가져오기
  • 사용자 프로필 조회 - 특정 사용자의 상세 정보 가져오기

설치

단독 프로젝트로 사용

uv sync

다른 uv 프로젝트에서 사용

# 로컬 패키지로 추가
uv add ./mcp-slack-python

환경 설정

환경 변수로 Slack Bot 토큰을 설정합니다:

export SLACK_BOT_TOKEN=xoxb-your-bot-token

Slack Bot 토큰 발급 방법

  1. Slack API에서 새 앱 생성
  2. OAuth & Permissions에서 Bot Token Scopes 추가:
    • channels:read - 채널 목록 조회
    • channels:history - 채널 메시지 조회
    • chat:write - 메시지 전송
    • reactions:write - 리액션 추가
    • users:read - 사용자 정보 조회
  3. 워크스페이스에 앱 설치
  4. Bot User OAuth Token 복사

실행

python main.py

MCP 도구 목록

도구 설명
slack_list_channels 워크스페이스의 채널 목록 조회
slack_send_message 채널에 메시지 전송
slack_get_messages 채널의 최근 메시지 조회
slack_add_reaction 메시지에 리액션 추가
slack_get_thread_replies 스레드 답글 조회
slack_get_users 사용자 목록 조회
slack_get_user_profile 사용자 프로필 조회

라이선스

MIT License

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured