Back to Home
Sreenav14 icon

Slack_mcp_server

by Sreenav14

Overview

A Micro-Controller Platform (MCP) server for integrating with Slack, allowing users to interact with Slack channels and send messages via a WebSocket interface.

Installation

Run Command
uvicorn app.main:app --host 0.0.0.0 --port 8000

Environment Variables

  • DATABASE_URL
  • SLACK_CLIENT_ID
  • SLACK_CLIENT_SECRET
  • APP_SECRET_KEY
  • SLACK_REDIRECT_URI

Security Notes

The authentication mechanism for the WebSocket (`app/auth.py`) is explicitly marked as 'dev-only' and relies on a hardcoded `DEV_SESSION_TOKEN`. This makes the server highly insecure if deployed in a production environment or exposed to the internet, as anyone with this token can impersonate `DEV_USER_ID`. The Slack OAuth flow also assumes `DEV_USER_ID` for the logged-in user. While environment variables are used for sensitive API keys (`SLACK_CLIENT_ID`, `SLACK_CLIENT_SECRET`, `APP_SECRET_KEY`), the core authentication for the WebSocket and OAuth initiation needs significant enhancement for production use cases. No direct 'eval' or obfuscation was found.

Similar Servers

Stats

Interest Score0
Security Score4
Cost ClassLow
Stars0
Forks0
Last Update2025-12-13

Tags

SlackAPIWebSocketFastAPIOAuth