Gotify AI Agent Tool Server for Messaging Automation - n8n Workflow

Use this dynamic n8n workflow template to deploy a Gotify AI Tool Server via MCP. Enable your AI agents to create, delete, or retrieve Gotify messages seamlessly.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

• Users implementing AI Agents within n8n that require external tool capabilities.
• Developers seeking dynamic, API-driven notification systems.
• DevOps teams automating alert management using Gotify.
• Anyone looking for robust n8n templates for tool creation.

Overview

This specialized n8n workflow transforms the Gotify integration into a powerful, zero-configuration AI tool server, accessible via a standard Multi-Channel Protocol (MCP) endpoint. By utilizing the dedicated n8n node for MCP, this setup allows sophisticated AI agents to autonomously interact with your Gotify instance. The value provided is immense flexibility: AI models can dynamically decide to create a new message, delete an existing one, or fetch multiple messages, simply by calling the configured webhook URL. This n8n workflow is ready to deploy, streamlining the process of connecting intelligent agents to your notification infrastructure. It showcases how flexible n8n can be when building custom tools for complex AI scenarios.

How it Works

The entire automation begins with the dedicated Gotify Tool MCP Server n8n trigger node. This n8n trigger waits for structured requests originating from an AI agent or a compatible system.


  1. Trigger Reception: An AI agent sends a request (usually specifying an operation like 'create' or 'delete') to the unique webhook URL generated by the n8n trigger.

  2. Operation Mapping: The MCP mechanism routes the incoming request to the appropriate downstream Gotify Tool n8n node based on the requested resource and operation.

  3. Dynamic Parameter Filling: Each Gotify Tool n8n node utilizes the powerful ={{ $fromAI(...) }} expression. This ensures that parameters like the message content, Message_Id, or Limit are automatically extracted from the AI's structured request and passed correctly to the Gotify API.

  4. Execution: The relevant Gotify Tool n8n node executes the requested operation (Create, Delete, or Get All).

  5. Response: The result of the Gotify operation is automatically formatted and returned via the MCP trigger back to the originating AI agent, completing the n8n workflow execution.

Installation Guide


  1. Import the n8n workflow: Copy the provided JSON data and paste it into your n8n instance using the 'New' -> 'Import from JSON' function.

  2. Configure Credentials: Locate any of the Gotify Tool n8n node (e.g., 'Create a message'). You must click on the 'Gotify API' credential field and set up a valid credential connection pointing to your Gotify server with the necessary API token.

  3. Activate the n8n template: Once credentials are set, activate the workflow by toggling the 'Active' switch in the top right corner.

  4. Get Webhook URL: Click the 'Gotify Tool MCP Server' n8n trigger node and copy the displayed webhook URL. This URL is the entry point for your AI agent configuration.

  5. AI Agent Setup: Configure your AI agent (or the n8n tool node calling this server) to use the copied URL as its Gotify tool endpoint.

Node Details

Gotify Tool MCP Server (n8n trigger):
Function: Serves as the primary webhook listener for the AI tool requests, mapping incoming commands to the relevant Gotify operations.
Key Configuration: Path set to /gotify-tool-mcp.
Create a message (Gotify Tool n8n node):
Function: Handles the creation of new Gotify messages.
Key Configuration: Message body set dynamically using ={{ $fromAI('Message', , 'string') }}.
Delete a message (Gotify Tool n8n node):
Function: Executes the deletion of a specific message.
Key Configuration: Operation set to delete; Message ID pulled dynamically via ={{ $fromAI('MessageId', , 'string') }}.
Get many messages (Gotify Tool n8n node):
Function: Retrieves a list of messages from the server.
Key Configuration: Operation set to getAll; parameters like Limit and Return
All are fetched using $fromAI() to allow AI control over pagination and retrieval limits.

Related n8n Workflows

Free

Nodes: 3 Nodes
Updated: December 26 2025
View all
Created by

A hacker by nature, programmer by trade ⚒️ I'm looking to collaborate on things that save human labor 📫 How to reach me Github👇 -> Discord

Featured*