FastAlert MCP Server is the official Model Context Protocol (MCP) server for FastAlert. It enables AI agents (such as Claude, ChatGPT, Cursor) to directly list your channels and send notifications through the FastAlert API.
Key Capabilities
- Channel Discovery: List all your channels, with optional filtering by name.
- Send Notifications: Send rich messages to one or more channels, and messages can include a title, content, actions, and images.
Available Tools The MCP server provides the following tools, which AI assistants can call to perform specific operations.
- list_channels Returns the list of available FastAlert channels. Input parameters:
- name (string, optional): A search term used to filter channels by name. Output supports both structured JSON (default) and human-readable text forms.
- send_message Sends a notification message to one or more channels. Input parameters:
- channel-uuid (string, required): The unique identifier of the target channel.
- title (string, required): The title of the alert notification.
- content (string, required): The body content of the notification.
- action (string, optional): The action type ('call', 'email', 'website', 'image').
- action_value (string, optional): The value of the action (for example, a URL or phone number).
- image (string, optional): The URL or identifier of the image to include.
Integration with LLMs Configure in Cursor:
- Go to Settings -> MCP.
- Click Add New MCP Server.
- Name: FastAlert
- Command: npx -y fastalert-mcp-server
- Env: Add API_KEY.
Configure in ChatGPT:
- Go to Settings -> Integrations.
- Click Add MCP Server.
- Use your server's hosted URL (for example https://mcp.fastalert.now/mcp)。
- Follow the OAuth prompts.
Configure in Claude: Open claude_desktop_config.json and add the corresponding entry.
Setup and Development
- Node: Version 18 or higher is recommended.
- API_KEY: A valid FastAlert API Key is required for authentication.
Local Installation
- Clone the repository.
- Copy the example environment file: cp .env.example .env
- Configure the environment variables in .env.
- Install dependencies: npm install
- Build the project: npm run build
- Run the inspector test: npm run inspector
- Run locally: npm start
Configuration (Environment Variables) The corresponding environment variables should be configured in the .env file.
Contributing Contributions are welcome! Please feel free to submit a Pull Request.
License This project is licensed under the MIT License.