n8n Integration with Flow Nexus via MCP
- Dominant language
- TypeScript
- Stars
- 72.6k
- Forks
- 8.6k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 85
Description
## 🚀 n8n Integration Implementation
### Overview
Implemented n8n integration with Flow Nexus using the MCP (Model Context Protocol) for workflow orchestration and automation.
### ✅ Completed Tasks
- [x] Created n8n module structure in `/mcp/flow-nexus-sse/n8n/`
- [x] Configured Docker container with n8n and MCP support
- [x] Implemented MCP integration hooks for workflow conversion
- [x] Created validation scripts for testing integration
- [x] Successfully authenticated with Flow Nexus SSE server (ruv@ruv.net)
- [x] Created and executed test workflows via MCP tools
- [x] 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
```toml
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
- [n8n Documentation](https://docs.n8n.io)
- [MCP Protocol Spec](https://mcp-protocol.org)
- [Flow Nexus GitHub](https://github.com/ruvnet/claude-flow)
---
🤖 Generated with Claude Code
Contributor guide
Assessment
This issue has not been assessed yet.