> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coreflux.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Connectors

> Browse every Coreflux connector by category: system, industrial, data storage, streaming, REST API, AI, media, and notifications.

## Connect Coreflux to every thing

Connectors run inside the Coreflux broker and link it to PLCs, databases, cloud services, other brokers, and AI models. Each one is a few lines of LoT: `DEFINE CONNECTOR <name> WITH TYPE <type>`, a config block, and the topics it reads or writes. No middleware, no extra service to run.

![The Coreflux MQTT broker at the center, linked by Connectors to industrial systems (Siemens S7, Allen-Bradley, OMRON FINS, Beckhoff ADS, Modbus, OPC UA, BACnet, Sparkplug B) on the left, and to data storage, brokers and streaming, REST APIs and AI, and notifications and media on the right](https://mintcdn.com/coreflux/AuucMwipEc177loz/images/connectors/connectors-overview-light.svg?fit=max\&auto=format\&n=AuucMwipEc177loz\&q=85\&s=9774dc47595a98d54d02dc1d5fb91865)

One broker, many connectors: industrial systems on one side, data, streaming, APIs, AI and notifications on the other

> [!TIP]
>
> New to connectors? Start with [Connectors in LoT](https://docs.coreflux.org/latest/lot-language/routes/overview) for the shared syntax and how Actions and Models use a connector. Then pick one below.

## System

Shape the MQTT topology around the broker. [System overview](https://docs.coreflux.org/latest/connectors/system/overview)

> [card] [MQTT Bridge](https://docs.coreflux.org/latest/connectors/system/mqtt-bridge.md)
>
> Synchronize selected MQTT topics with another broker.

> [card] [Sparkplug B](https://docs.coreflux.org/latest/connectors/system/sparkplug-b.md)
>
> Decode Sparkplug traffic or publish Coreflux metrics as an edge node.

> [card] [Sparkplug Host](https://docs.coreflux.org/latest/connectors/system/sparkplug-host.md)
>
> Make Coreflux the Primary Host for a Sparkplug namespace.

## Industrial

Read and write PLCs and controllers. Tags, polling, limits, and write results are shared by every industrial connector: see [Industrial overview](https://docs.coreflux.org/latest/connectors/industrial/overview).

> [card] [Modbus TCP Client](https://docs.coreflux.org/latest/connectors/industrial/modbus-tcp-client.md)
>
> Poll PLCs and industrial devices over Modbus TCP.

> [card] [Modbus Serial Client](https://docs.coreflux.org/latest/connectors/industrial/modbus-serial-client.md)
>
> RS-232/RS-485 serial communication with Modbus RTU devices.

> [card] [Modbus TCP Server](https://docs.coreflux.org/latest/connectors/industrial/modbus-tcp-server.md)
>
> Expose MQTT topics as Modbus registers and coils for SCADA and HMIs.

> [card] [Siemens S7](https://docs.coreflux.org/latest/connectors/industrial/siemens-s7.md)
>
> Native S7 protocol for Siemens S7-200/300/400/1200/1500 PLCs.

> [card] [OPC UA Client](https://docs.coreflux.org/latest/connectors/industrial/opcua-client.md)
>
> Connect to remote OPC UA servers and poll device data into MQTT.

> [card] [OPC UA Server](https://docs.coreflux.org/latest/connectors/industrial/opcua-server.md)
>
> Expose MQTT topics as OPC UA nodes for SCADA and OT clients.

> [card] [ADS (Beckhoff)](https://docs.coreflux.org/latest/connectors/industrial/ads.md)
>
> TwinCAT ADS protocol for Beckhoff PLCs with AutoDiscovery support.

> [card] [Allen-Bradley](https://docs.coreflux.org/latest/connectors/industrial/allen-bradley.md)
>
> ControlLogix, CompactLogix, and other Rockwell Automation PLCs.

> [card] [EtherNet/IP](https://docs.coreflux.org/latest/connectors/industrial/ethernetip.md)
>
> CIP-based communication for Allen-Bradley and compatible devices.

> [card] [FINS (Omron)](https://docs.coreflux.org/latest/connectors/industrial/fins.md)
>
> Omron FINS protocol for CJ/CS/CP series PLCs.

> [card] [BACnet](https://docs.coreflux.org/latest/connectors/industrial/bacnet.md)
>
> BACnet/IP for building automation: HVAC, lighting, and metering.

## Data Storage

Store MQTT data, or read it back on request. Events, queries, placeholders, and `STORE IN` are shared: see [Data Storage overview](https://docs.coreflux.org/latest/connectors/data-storage/overview).

> [card] [PostgreSQL](https://docs.coreflux.org/latest/connectors/data-storage/postgresql.md)
>
> Open-source relational database for structured data storage.

> [card] [MySQL](https://docs.coreflux.org/latest/connectors/data-storage/mysql.md)
>
> Popular relational database with wide ecosystem support.

> [card] [MariaDB](https://docs.coreflux.org/latest/connectors/data-storage/mariadb.md)
>
> MySQL-compatible database with enhanced features.

> [card] [SQL Server](https://docs.coreflux.org/latest/connectors/data-storage/sqlserver.md)
>
> Microsoft SQL Server for enterprise environments.

> [card] [MongoDB](https://docs.coreflux.org/latest/connectors/data-storage/mongodb.md)
>
> Document database for flexible JSON storage.

> [card] [OpenSearch](https://docs.coreflux.org/latest/connectors/data-storage/opensearch.md)
>
> Real-time analytics, search, and visualization.

> [card] [CrateDB](https://docs.coreflux.org/latest/connectors/data-storage/cratedb.md)
>
> Distributed SQL optimized for time-series data.

> [card] [Snowflake](https://docs.coreflux.org/latest/connectors/data-storage/snowflake.md)
>
> Cloud data warehouse for large-scale analytics.

> [card] [File Storage](https://docs.coreflux.org/latest/connectors/data-storage/file-storage.md)
>
> CSV and JSON file storage for simple persistence.

## Streaming

> [card] [Kafka](https://docs.coreflux.org/latest/connectors/streaming/kafka.md)
>
> Stream data both ways between MQTT topics and Apache Kafka.

> [card] [gRPC](https://docs.coreflux.org/latest/connectors/streaming/grpc.md)
>
> Call an external gRPC service from MQTT, unary or streaming.

## REST API

> [card] [REST API Connector](https://docs.coreflux.org/latest/connectors/rest-api/overview)
>
> HTTP client and server for external APIs and webhook endpoints.

> [card] [REST API Apps](https://docs.coreflux.org/latest/connectors/rest-api-apps)
>
> Ready-made templates for cloud, ERP, analytics, and IIoT services. Technical preview.

## AI and MCP

> [card] [MCP Connector](https://docs.coreflux.org/latest/connectors/ai/mcp.md)
>
> Connect out to external MCP servers and call their tools from LoT.

> [card] [LLM Connector](https://docs.coreflux.org/latest/connectors/ai/llm.md)
>
> Call a language model, or run an agent on it.

To expose this broker as an MCP server instead, see [MCP Server](https://docs.coreflux.org/latest/mqtt-broker/mcp-server.md).

## Media

Turn images, cameras, and microphones into MQTT messages. [Media overview](https://docs.coreflux.org/latest/connectors/media/overview)

> [card] [Barcode](https://docs.coreflux.org/latest/connectors/media/barcode.md)
>
> Decode barcode images and encode text as QR, retail, and 2D symbols.

> [card] [Video Input](https://docs.coreflux.org/latest/connectors/media/video-input.md)
>
> Capture JPEG frames from a camera, stream, or file on the broker host.

> [card] [Audio Input](https://docs.coreflux.org/latest/connectors/media/audio-input.md)
>
> Capture raw 16-bit PCM from a microphone, a synthetic source, or a file.

## Notifications

> [card] [Email](https://docs.coreflux.org/latest/connectors/notifications/email.md)
>
> Send alerts and reports to people from MQTT events.

***

## Connector types

> [tab] System
>
> | Connector Type | Description |
> | - | - |
> | `MQTT_BRIDGE` | Broker-to-broker topic synchronization |
> | `SPARKPLUG_B` | Sparkplug decoding and edge-node publishing |
> | `SPARKPLUG_HOST` | Sparkplug Primary Host Application |

> [tab] Streaming
>
> | Connector Type | Description |
> | - | - |
> | `KAFKA` | Stream data both ways with Apache Kafka |
> | `GRPC` | Call an external gRPC service from MQTT topics (unary and streaming) |

> [tab] Notification
>
> | Connector Type | Description |
> | - | - |
> | `EMAIL` | Send templated emails from MQTT messages |

> [tab] Data Storage
>
> | Connector Type | Description |
> | - | - |
> | `POSTGRESQL` | PostgreSQL database storage |
> | `MYSQL` | MySQL database storage |
> | `MARIADB` | MariaDB database storage |
> | `SQLSERVER` | SQL Server database storage |
> | `MONGODB` | MongoDB document database |
> | `OPENSEARCH` | OpenSearch indexing and search |
> | `CRATEDB` | CrateDB time-series database |
> | `SNOWFLAKE` | Snowflake cloud data warehouse |
> | `FILE_STORAGE` | CSV/JSON file storage |

> [tab] Industrial
>
> | Connector Type | Description |
> | - | - |
> | `MODBUS_TCP` | Modbus TCP protocol |
> | `MODBUS_SERIAL` | Modbus RTU over RS-232/485 |
> | `SIEMENS_S7` | Siemens S7 PLCs |
> | `OPCUA` | OPC UA client |
> | `ADS` | Beckhoff TwinCAT ADS |
> | `ALLEN_BRADLEY` | Allen-Bradley/Rockwell PLCs |
> | `ETHERNETIP` | EtherNet/IP CIP protocol |
> | `FINS` | Omron FINS protocol |

> [tab] Other
>
> | Connector Type | Description |
> | - | - |
> | `REST_API` | REST API client/server |
> | `MCP` | Model Context Protocol for external tools |
> | `AGENT` | Autonomous AI assistant with tool access |
> | `BARCODE` | Barcode encoding and decoding |
> | `VIDEO_INPUT` | JPEG capture from a camera, stream, or file |
> | `VIDEO_OUTPUT` | HTTP MJPEG from MQTT frames |
> | `AUDIO_INPUT` | Raw PCM capture from a microphone, tone, silence, or file |

***

## Use Cases

> [tab] Edge-to-Cloud Sync
>
> Bridge local edge data to cloud brokers:
>
> ```lot wrap theme={"theme":{"light":"css-variables","dark":"css-variables"},"languages":{"custom":["/languages/lot.json"]}}
> DEFINE CONNECTOR EdgeToCloud WITH TYPE MQTT_BRIDGE
>     ADD SOURCE_CONFIG
>         WITH BROKER SELF
>     ADD DESTINATION_CONFIG
>         WITH BROKER_ADDRESS "iot.cloud-provider.com"
>         WITH BROKER_PORT '8883'
>         WITH USE_TLS "true"
>     ADD MAPPING allSensors
>         WITH SOURCE_TOPIC "local/sensors/#"
>         WITH DESTINATION_TOPIC "edge-01/sensors/#"
>         WITH DIRECTION "out"
> ```

> [tab] Industrial Integration
>
> Read data from PLCs via multiple protocols:
>
> ```lot wrap theme={"theme":{"light":"css-variables","dark":"css-variables"},"languages":{"custom":["/languages/lot.json"]}}
> DEFINE CONNECTOR SiemensPLC WITH TYPE SIEMENS_S7
>     ADD S7_CONFIG
>         WITH IP "192.168.1.100"
>         WITH CPU_TYPE "S71500"
>         WITH RACK '0'
>         WITH SLOT '1'
>     ADD MAPPING ProcessData
>         WITH EVERY 500 MILLISECONDS
>         ADD TAG Temperature
>             WITH ADDRESS "DB1.DBD0"
>             WITH DATA_TYPE "REAL"
>             WITH SOURCE_TOPIC "plc/temperature"
> ```

> [tab] Real-Time Analytics
>
> Store sensor data for analysis:
>
> ```lot wrap theme={"theme":{"light":"css-variables","dark":"css-variables"},"languages":{"custom":["/languages/lot.json"]}}
> DEFINE CONNECTOR AnalyticsStore WITH TYPE OPENSEARCH
>     ADD OPENSEARCH_CONFIG
>         WITH BASE_URL "https://analytics.example.com:9200"
>         WITH USERNAME "iot_writer"
>         WITH PASSWORD GET SECRET "OPENSEARCH_PASSWORD"
>     ADD EVENT IndexReading
>         WITH SOURCE_TOPIC "sensors/#"
>         WITH QUERY "CLEAN:{index: sensor_data, body: {timestamp: {timestamp}, topic: {source_topic}, value: {value.json}}}"
> ```

> [tab] Alert Notifications
>
> Email stakeholders when critical events occur:
>
> ```lot wrap theme={"theme":{"light":"css-variables","dark":"css-variables"},"languages":{"custom":["/languages/lot.json"]}}
> DEFINE CONNECTOR CriticalAlerts WITH TYPE EMAIL
>     ADD SMTP_CONFIG
>         WITH HOST "smtp.office365.com"
>         WITH PORT '587'
>         WITH USE_TLS "true"
>         WITH USERNAME "alerts@company.com"
>         WITH PASSWORD "password"
>     ADD EVENT notify
>         WITH SOURCE_TOPIC "alarms/critical/+"
>         WITH SUBJECT "CRITICAL: {value.json.alarm_type}"
>         WITH RECIPIENT "ops-team@company.com"
> ```

***

## Next Steps

> [card] [Connectors in LoT](https://docs.coreflux.org/latest/lot-language/routes/overview)
>
> The `DEFINE CONNECTOR` syntax, and how Actions and Models use a connector.

> [card] [Store and Forward](https://docs.coreflux.org/latest/lot-language/routes/store-and-forward.md)
>
> Choose wait or drop when a connector cannot keep up.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.