CORTEX-MCP-Extensions
CORTEX-MCP-Extensions provides custom MCP servers that allow Claude direct access to the CORTEX infrastructure. This repository enables interaction with services, triggering workflows, and monitoring the CORTEX ecosystem. Deployed on Terramaster NAS, it facilitates centralized management for all Claude instances.
GitHub Stars
0
User Rating
Not Rated
Forks
0
Issues
0
Views
1
Favorites
0
๐ CORTEX MCP Extensions
Custom MCP (Model Context Protocol) servers that provide Claude with direct access to CORTEX infrastructure. These extensions enable Claude to interact with services, trigger workflows, and monitor the CORTEX ecosystem.
๐ฏ Purpose & Clarification
What this repository IS:
- MCP servers that give Claude direct access to CORTEX services
- Tools deployed to Terramaster NAS for centralized Claude memory
- Single-point integration for all Claude instances across Magi machines
- Complementary to (not replacement for) n8n orchestration
What this repository is NOT:
- Not the main orchestration system (that's CORTEX-AI-Orchestrator-v2)
- Not limited to single-machine use (deployed centrally on NAS)
- Not a replacement for n8n workflows
๐๏ธ Architecture Overview
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Terramaster NAS โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ CORTEX MCP Extensions (This Repo) โ โ
โ โ โ โ
โ โ โข cortex-orchestrator-mcp (trigger n8n workflows) โ โ
โ โ โข cortex-monitoring-mcp (unified metrics) โ โ
โ โ โข flowise-mcp (AI flow management) โ โ
โ โ โข cortex-ai-router (model selection) โ โ
โ โ โข cortex-stack-manager (Docker management) โ โ
โ โโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ MCP Protocol โ
โโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโ
โ โ โ
โโโโโโดโโโโโโ โโโโโโโดโโโโโ โโโโโโโโดโโโโ
โ Claude โ โ Claude โ โ Claude โ
โDesktop โ โDesktop โ โDesktop โ
โMelchior โ โBalthasar โ โ Caspar โ
โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ
๐ฆ Available MCP Servers
๐ง In Development
cortex-orchestrator
- Purpose: Allow Claude to trigger n8n workflows
- NOT: An n8n replacement or workflow engine
- Features:
- List available n8n workflows
- Trigger workflow execution
- Monitor workflow status
- Pass parameters to workflows
- Use Case: "Claude, run the CAD processing pipeline for this file"
cortex-monitoring
- Purpose: Unified view of all CORTEX services
- Features:
- Aggregate metrics from Prometheus, InfluxDB, Grafana
- Service health checks across all Magi machines
- Alert summaries and performance analytics
- Resource usage tracking
flowise-mcp
- Purpose: Fill the gap (no official Flowise MCP exists)
- Features:
- Manage Flowise AI flows
- Execute chains with parameters
- Monitor flow execution
- Update model configurations
cortex-ai-router
- Purpose: Intelligent model selection and routing
- Features:
- Route requests to appropriate AI models
- Load balance across Magi GPUs
- Track model performance and costs
- Optimize for latency vs quality
cortex-stack-manager
- Purpose: Docker stack administration
- Features:
- Start/stop services across machines
- Deploy stack updates
- Monitor resource usage
- Health check automation
๐ Deployment Strategy
Production Deployment (Terramaster NAS)
- Clone to NAS:
ssh admin@terramaster.local
cd /volume1/docker
git clone https://github.com/SamuraiBuddha/CORTEX-MCP-Extensions.git
cd CORTEX-MCP-Extensions
- Build and Deploy:
# Build all servers
docker-compose build
# Deploy as services
docker-compose up -d
- Configure Claude Desktop on Each Magi:
{
"mcpServers": {
"cortex-orchestrator": {
"command": "ssh",
"args": ["admin@terramaster.local",
"docker", "exec", "-i", "cortex-mcp-orchestrator",
"node", "/app/dist/index.js"],
"env": {
"N8N_HOST": "http://terramaster.local:5678",
"N8N_API_KEY": "${N8N_API_KEY}"
}
},
"cortex-monitoring": {
"command": "ssh",
"args": ["admin@terramaster.local",
"docker", "exec", "-i", "cortex-mcp-monitoring",
"python", "-m", "cortex_monitoring"],
"env": {
"PROMETHEUS_HOST": "http://terramaster.local:9090",
"INFLUX_HOST": "http://melchior.local:8086",
"GRAFANA_HOST": "http://terramaster.local:3000"
}
}
}
}
Development Setup (Local)
Follow the original Quick Start instructions for local development.
๐ Relationship to CORTEX Ecosystem
- CORTEX-AI-Orchestrator-v2: The main project using n8n for multi-machine orchestration
- CORTEX-MCP-Extensions (This repo): MCP servers giving Claude access to trigger and monitor orchestration
- Magi-Windows-Deployments: Configures the Windows machines where Claude Desktop runs
- homelab-infrastructure: Defines the hardware where everything runs
How They Work Together
User โ Claude Desktop โ MCP Extensions (on NAS) โ n8n Workflows โ Magi Machines
โ
Unified Memory/State
(on NAS)
๐ Key Differences from Standard MCPs
- Centralized Deployment: All MCP servers run on NAS, not locally
- Unified State: Single knowledge graph shared across all Claude instances
- Multi-Machine Aware: Can trigger workflows on any Magi machine
- Persistent Memory: Survives Claude Desktop restarts
๐ง Development
Creating a New MCP Server
- Use the template:
./scripts/create-server.sh my-server-name
- Consider NAS deployment from the start
- Use shared state from Neo4j/Redis on NAS
- Test multi-machine scenarios
Testing
# Run all tests
npm test
# Test specific server
npm test servers/cortex-orchestrator
Building
# Build all TypeScript servers
npm run build
# Build for Docker deployment
docker-compose build
๐ Documentation
๐ค Contributing
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
Priority Areas
- Completing cortex-orchestrator for n8n workflow triggering
- Building flowise-mcp server
- Creating monitoring aggregation tools
- Implementing NAS deployment scripts
๐ Related Projects
- CORTEX-AI-Orchestrator-v2 - Main CORTEX orchestration project
- Model Context Protocol - MCP documentation
- Docker MCP Servers - Official MCP servers
- Docker MCP Toolkit - Easy MCP deployment
๐ License
This project is licensed under the MIT License - see LICENSE file.
Created by: Jordan Paul Ehrig (SamuraiBuddha)
Company: Ehrig BIM & IT Consultation, Inc.
0
Followers
87
Repositories
0
Gists
13
Total Contributions