
Coreflux MCP Server
Connects Claude and other MCP-compatible AI assistants to a Coreflux MQTT broker, enabling them to discover and execute Coreflux commands for managing models, actions, rules, and routes through natural language.
README
Coreflux MCP Server
This is a Model Context Protocol (MCP) server that connects to a Coreflux MQTT broker and makes Coreflux actions available as tools for Claude and other MCP-compatible AI assistants.
Features
- Connects to Coreflux MQTT broker
- Provides tools for all Coreflux commands (models, actions, rules, routes)
- Discovers and lists available actions
- Includes LOT language documentation as resources
- Built with the official MCP SDK for seamless Claude integration
Quick Start
Using Docker Compose (Recommended)
-
Copy the example environment file:
cp .env.example .env
-
Edit the
.env
file with your MQTT broker details:MQTT_BROKER=your-broker-address MQTT_PORT=1883 MQTT_USER=your-username MQTT_PASSWORD=your-password
-
Run with docker-compose:
docker-compose up -d
Using Python (Local Development)
-
Install the MCP SDK and required dependencies:
pip install "mcp[cli]" paho-mqtt
-
Run the server with environment variables:
MQTT_BROKER=your-broker-address MQTT_PORT=1883 python server.py
Connecting Claude to the MCP Server
Recommended Approach: Using Claude Desktop Config
- Create or edit
~/Library/Application Support/Claude/claude_desktop_config.json
(macOS/Linux) or equivalent Windows path - Add the following configuration (adjust the paths accordingly):
{ "mcpServers": { "coreflux": { "command": "python", "args": [ "/ABSOLUTE/PATH/TO/server.py" ], "description": "Coreflux MQTT Broker Control", "icon": "🔄", "env": { "MQTT_BROKER": "localhost", "MQTT_PORT": "1883", "MQTT_USER": "", "MQTT_PASSWORD": "" } } } }
- Restart Claude Desktop
Alternative: Using the CLI
If you're running the server directly:
mcp server add coreflux --command python --args "/ABSOLUTE/PATH/TO/server.py"
Environment Variables
Variable | Description | Default |
---|---|---|
MQTT_BROKER |
MQTT broker address | localhost |
MQTT_PORT |
MQTT broker port | 1883 |
MQTT_USER |
MQTT username | - |
MQTT_PASSWORD |
MQTT password | - |
MQTT_USE_TLS |
Enable TLS for MQTT connection | false |
MQTT_CA_CERT |
Path to CA certificate file | - |
MQTT_CLIENT_CERT |
Path to client certificate file | - |
MQTT_CLIENT_KEY |
Path to client key file | - |
Available Tools
The server provides tools for common Coreflux commands:
add_rule
: Add a new permission ruleremove_rule
: Remove a permission ruleadd_route
: Add a new route connectionremove_route
: Remove a route connectionadd_model
: Add a new model structureremove_model
: Remove a model structureadd_action
: Add a new action event/functionremove_action
: Remove an action event/functionrun_action
: Run an action event/functionremove_all_models
: Remove all modelsremove_all_actions
: Remove all actionsremove_all_routes
: Remove all routeslist_discovered_actions
: List all discovered Coreflux actions
LOT Language Resources
The server includes documentation on the LOT language:
lot://documentation/models
: Guide to LOT modelslot://documentation/rules
: Guide to LOT ruleslot://documentation/actions
: Guide to LOT actions
Debugging and Troubleshooting
If you encounter issues:
- Verify your MQTT broker credentials in your environment variables
- Ensure the broker is accessible
- Check Claude Desktop logs:
# Check Claude's logs for errors (macOS/Linux) tail -n 20 -f ~/Library/Logs/Claude/mcp*.log
- Run the server in debug mode:
# Direct execution with debug logging python server.py --debug
References
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.