Labsco
masseater logo

Slack Webhook

β˜… 1

from masseater

Post messages to Slack channels using incoming webhooks.

πŸ”₯πŸ”₯βœ“ VerifiedFreeAdvanced setup

Slack Webhook MCP Server

A Model Context Protocol (MCP) server that enables LLM applications like Claude Desktop to send messages to Slack channels via incoming webhooks.

Features

  • Send plain text or markdown-formatted messages to Slack
  • Simple and secure webhook URL management
  • Built with Deno for modern TypeScript development
  • Full test coverage

Development

Available Commands

Copy & paste β€” that's it
# Run in development mode with auto-reload
deno task dev

# Run tests
deno task test

# Run tests with coverage
deno task test:coverage

# Type checking
deno task check

# Linting
deno task lint

# Format code
deno task fmt

# Build standalone executable
deno task build

Project Structure

Copy & paste β€” that's it
slack-webhook-mcp/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ index.ts                # Entry point
β”‚   β”œβ”€β”€ server.ts               # MCP server implementation
β”‚   β”œβ”€β”€ tools/
β”‚   β”‚   β”œβ”€β”€ slack_webhook.ts    # Slack webhook tool
β”‚   β”‚   └── slack_webhook_test.ts # Tool tests
β”‚   β”œβ”€β”€ types.ts                # TypeScript types
β”‚   └── index_test.ts           # Integration tests
β”œβ”€β”€ deno.json                   # Deno configuration
β”œβ”€β”€ README.md                   # This file
└── .env.example                # Environment variables example

Security

  • Never commit your .env file or webhook URLs to version control
  • Webhook URLs are validated to ensure they match Slack's format
  • All errors are handled gracefully without exposing sensitive information

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Run tests and ensure they pass (deno task test)
  4. Commit your changes (git commit -m 'Add amazing feature')
  5. Push to the branch (git push origin feature/amazing-feature)
  6. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments