Skip to content

n8n Integration with Flow Nexus via MCPΒ #754

@ruvnet

Description

@ruvnet

πŸš€ n8n Integration Implementation

Overview

Implemented n8n integration with Flow Nexus using the MCP (Model Context Protocol) for workflow orchestration and automation.

βœ… Completed Tasks

  • Created n8n module structure in /mcp/flow-nexus-sse/n8n/
  • Configured Docker container with n8n and MCP support
  • Implemented MCP integration hooks for workflow conversion
  • Created validation scripts for testing integration
  • Successfully authenticated with Flow Nexus SSE server ([email protected])
  • Created and executed test workflows via MCP tools
  • Generated comprehensive documentation

πŸ“ Implementation Files

  • Dockerfile: Custom n8n image with MCP community nodes
  • fly.toml: Fly.io deployment configuration
  • mcp-integration.js: MCP integration hook for n8n
  • run-validation.js: Validation script with authentication
  • workflows/: Sample n8n workflows for testing

πŸ”§ Configuration

app = "n8n-flow-nexus"
primary_region = "iad"
[env]
  N8N_PROTOCOL = "https"
  FLOW_NEXUS_URL = "https://mcp-flow-nexus.ruv.io"
  MCP_PROTOCOL_VERSION = "2025-06-18"

πŸ§ͺ Testing Results

  • βœ… Authentication with Flow Nexus SSE server successful
  • βœ… Workflow creation via MCP tools working
  • βœ… Workflow execution initiated successfully
  • ⚠️ Workflow status check requires table migration
  • ⚠️ Fly.io deployment has lease conflict (needs resolution)

πŸ“š Documentation

Created comprehensive documentation at /docs/workflows/n8n-integration.md covering:

  • Architecture overview
  • Setup instructions
  • Usage examples
  • Troubleshooting guide

πŸ› Known Issues

  1. Fly.io Deployment Lease: Machine ID 148e7557a23ed8 has an active lease that needs to expire or be released
  2. MCP Endpoint Discovery: The /mcp endpoint returns empty tools list when accessed directly (works via MCP tools)
  3. Workflow Status Table: Missing workflow_system.workflow_executions table in schema

πŸ”„ Next Steps

  • Resolve Fly.io deployment lease issue
  • Complete deployment to production
  • Set up n8n webhook nodes for SSE events
  • Create more complex workflow templates
  • Implement bi-directional sync between n8n and Flow Nexus

🎯 Success Metrics

  • Successfully authenticated with Flow Nexus
  • Created workflow ID: 7993052f-afec-4317-937a-48e85aedcd67
  • Workflow execution initiated and running
  • MCP tools integration functional

πŸ“Š Technical Stack

  • n8n: Workflow automation platform
  • MCP: Model Context Protocol for AI integration
  • Flow Nexus SSE: Server-sent events for real-time updates
  • Docker: Containerization
  • Fly.io: Cloud deployment platform

πŸ”— Related Resources


πŸ€– Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions