- Glide to n8n MCP Adapter
Glide to n8n MCP Adapter
Glide to n8n MCP Adapter
This repository contains an MCP (Model Context Protocol) server that connects Glide API requests to n8n workflows. It allows AI assistants like Claude, GPT-4, and others to trigger n8n workflows and interact with Glide apps through a standard interface.
Features
- Bridges Glide API operations to n8n workflows
- Provides tools for discovering and managing available n8n workflows
- Supports executing n8n workflows with parameters
- Offers specialized tools for common Glide operations
- Works with both standard stdin/stdout MCP protocol and HTTP APIs
- Includes Docker support for easy deployment
- Integrates with Claude Desktop and other MCP clients
Overview
This adapter serves as a bridge between three components:
- AI Assistants (Claude, GPT-4, etc.) using the MCP protocol
- n8n Workflows using the Workflow Management API
- Glide Apps using the Glide API
It allows AI assistants to perform operations on Glide apps by leveraging n8n workflows, providing a seamless integration between these platforms.
Prerequisites
- n8n instance with the MCP workflow running
- The webhook URL for the n8n MCP workflow
- Python 3.9+ (if running without Docker)
- Docker and Docker Compose (optional, for containerized deployment)
Quick Start
Option 1: Using Docker Compose (Recommended)
-
Clone this repository:
git clone https://github.com/mows21/glide-n8n-mcp-adapter.git cd glide-n8n-mcp-adapter -
Copy
.env.exampleto.envand fill in your n8n webhook URL:cp .env.example .env # Edit .env with your actual n8n webhook URL -
Build and run with Docker Compose:
docker-compose up -d
Option 2: Manual Setup
-
Clone this repository:
git clone https://github.com/mows21/glide-n8n-mcp-adapter.git cd glide-n8n-mcp-adapter -
Create a virtual environment and install dependencies:
python -m venv venv source venv/bin/activate # On Windows, use: venv\Scripts\activate pip install -r requirements.txt -
Copy
.env.exampleto.envand configure:cp .env.example .env # Edit .env with your actual n8n webhook URL -
Run the adapter:
# For stdin/stdout mode (default MCP protocol) python glide_n8n_adapter.py # Or for HTTP mode HTTP_ADAPTER=true python http_adapter.py
n8n Configuration
This adapter requires an n8n instance with:
- An MCP server workflow using the provided n8n workflow JSON
- The webhook URL for the MCP server workflow (set in your
.envfile) - Workflows for specific Glide operations (optional, can be configured in
.env)
Setting up the n8n MCP Server Workflow
- In your n8n instance, import the workflow JSON provided in this repository
- Activate the workflow and note the webhook URL
- Update your
.envfile with the webhook URL
Available Tools
n8n Workflow Management
list_workflows: Lists all available workflows in n8nsearch_workflows: Searches for workflows in n8nadd_workflow: Adds workflows to the available poolremove_workflow: Removes workflows from the available poolexecute_workflow: Executes a workflow from the available pool
Glide API Operations
get_glide_rows: Get rows from a Glide tablecreate_glide_rows: Create new rows in a Glide tableupdate_glide_row: Update an existing row in a Glide tabledelete_glide_row: Delete a row from a Glide table
Integration with AI Assistants
Claude Desktop
-
Make sure the MCP server is running with HTTP adapter enabled:
HTTP_ADAPTER=true -
Configure Claude Desktop to use the server:
- Copy the
claude-config.jsonfile to your Claude Desktop configuration directory - Restart Claude Desktop
- Copy the
Other MCP Clients
For other MCP clients, use the appropriate configuration method for that client, pointing to:
- HTTP mode:
http://localhost:3000/mcp(or your deployed URL) - Stdin/stdout mode: The command to run the server (
python glide_n8n_adapter.py)
Custom n8n Workflows for Glide
To create custom n8n workflows for Glide operations:
- Create a new workflow in n8n
- Add an "Execute Workflow Trigger" node as the first node
- Define the input schema to match the parameters needed for the Glide operation
- Implement the Glide API calls using HTTP Request nodes
- Tag the workflow with "mcp" so it can be discovered
- Deploy and activate the workflow
Environment Variables
Configure your .env file with these settings:
N8N_WEBHOOK_URL: The webhook URL for your n8n MCP server workflowHTTP_ADAPTER: Set to "true" to enable HTTP mode, "false" for stdin/stdout modePORT: Port for HTTP adapter (default: 3000)GLIDE_GET_ROWS_WORKFLOW_ID: ID of the workflow for getting rows (optional)GLIDE_CREATE_ROWS_WORKFLOW_ID: ID of the workflow for creating rows (optional)GLIDE_UPDATE_ROW_WORKFLOW_ID: ID of the workflow for updating rows (optional)GLIDE_DELETE_ROW_WORKFLOW_ID: ID of the workflow for deleting rows (optional)
Troubleshooting
Common issues:
- Connection errors: Check that your n8n instance is running and the webhook URL is correct
- Missing workflows: Ensure workflows are properly tagged and active in n8n
- Parameter errors: Verify that the workflow input schema matches the expected parameters
- HTTP adapter issues: Check that Flask is running on the correct port and the endpoint is accessible
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT
Acknowledgements
This project was inspired by: