< Back to all integrations
Data & Infrastructure

Connect AI agents and workflows to Apache Kafka and Confluent: produce and consume messages, read topics and lag, and start work as events arrive.

Book a demo
[ Apache Kafka + engini ]

Apache Kafka for AI agents and workflows.

engini lets your AI agents and workflows work with Apache Kafka, self-managed, on Confluent Cloud or on Amazon MSK: produce messages to topics, with keys, headers and registered schemas, read recent messages, check topics and consumer lag, and start a workflow the moment an event arrives on a topic. Order, payment and system events reach the business systems that act on them, and changes in those systems flow back as events. Connect from Claude, ChatGPT or Cursor over MCP, from your code, or build in Workflow Studio.

Connect Apache Kafka to Claude, Claude Code, ChatGPT, Codex and Cursor: one engini MCP server, CLI or SDK, with only the Apache Kafka tools you choose. How it works →

MCPPython and TypeScript SDKCLIREST APIWorkflow Studio
Sign-inBootstrap servers with SASL or mutual TLS, and a Schema Registry if you use one
ReachTopics, partitions, consumer groups, messages and schemas
TriggersNew messages on a topic, as they arrive
[ AI clients ]

Connect Apache Kafka to Claude, Claude Code, ChatGPT, Codex and Cursor. One connection, only the tools you choose.

Looking for an MCP server for Apache Kafka, or a way to let Claude Code or ChatGPT work in Apache Kafka? Connect Apache Kafka to engini once, choose the Apache Kafka tools each agent may use, and add engini to the AI client you already work in. If Apache Kafka runs in your own data center, every one of these clients reaches it through the engini On-Prem Agent, with no inbound ports.

Claude

Connect Claude to Apache Kafka

Create an MCP server in engini with your Apache Kafka connection and only the tools you choose. In Claude, open Settings, Connectors, Add custom connector, paste the server address and sign in through engini.

Claude and your business systems →
Claude Code

Claude Code and Apache Kafka

Add the same server with claude mcp add --transport sse and sign in with /mcp. Or install the engini CLI and let Claude Code run Apache Kafka tools from the terminal.

MCP client setup →
ChatGPT

ChatGPT and Apache Kafka

Add the engini MCP server to ChatGPT as a custom MCP server, where your ChatGPT workspace allows them, and sign in through engini. ChatGPT sees only the Apache Kafka tools on that server.

ChatGPT and your business systems →
Codex

Codex and Apache Kafka

Install the engini CLI (npm install -g @engini/cli) and Codex runs Apache Kafka tools from the terminal, with machine-readable output. The engini skills plugin for Codex builds engini workflows from a plain-language request.

engini skills for Claude Code and Codex →
Cursor

Cursor and Apache Kafka

Add the server address to .cursor/mcp.json and sign in through engini on first use. VS Code and other MCP clients take the same address.

MCP client setup →
Your own agent

Python, TypeScript or REST

The SDK hands OpenAI and Anthropic models the Apache Kafka tools in the format they expect and runs the ones they pick. The REST API calls the same tools with no model in the loop.

SDK guide →

Every client goes through the same Agent Policy: the toolset decides which Apache Kafka tools it may call, credentials stay in engini, and every call is in the audit log. Setup for each client: MCP client setup.

[ 01 / What agents can do ]

What your agent can do in Apache Kafka. Every tool is one you allow or leave out.

The Apache Kafka tools in engini, grouped by what they change. Read tools are safe to hand out widely. Write and delete tools go only to the agents that need them.

Read

Read Messages

Read recent messages from a topic or partition, from an offset or time.

Read
List Topics, Get Topic

Read topics, partitions and settings.

Read
Get Consumer Lag

See how far a consumer group is behind.

Read
Get Schema

Read a subject's schema from the Schema Registry.

Read

Write

Produce Message

Send a message with a key, headers and a schema-encoded value.

Write
Produce Messages

Send a batch of messages in one call.

Write

Triggers

Message Received

A new message arrived on a topic engini consumes, as its own consumer group.

Event

A trigger starts a workflow, and a workflow can include an AI agent step. In Code, a trigger delivers the event to your own endpoint.

[ 02 / Connect your agent ]

Connect your AI agent to Apache Kafka. Four ways in, one set of permissions.

MCP

Claude, Claude Code, ChatGPT, Cursor

Create an MCP server in engini with your Apache Kafka connection and only the tools you choose. Add its address to your client and sign in through engini. There is no key to copy.

MCP client setup →
SDK

Python and TypeScript

Hand your agent a toolset of Apache Kafka tools. The SDK gives OpenAI and Anthropic models the tools in the format they expect and runs the ones they pick.

SDK guide →
CLI

Claude Code, Codex

The engini CLI connects Apache Kafka and runs its tools from a terminal, with machine-readable output, so an AI coding agent such as Claude Code or Codex can drive it without getting stuck.

CLI guide →
REST API

Any language

Every Apache Kafka tool is an endpoint. Call it with exact inputs from a scheduled job or a sync, with no model in the loop.

API reference →
MCP in four steps
In engini, connect Apache Kafka and create an MCP server with that connection and the tools this agent may use.
Claude: Settings, Connectors, Add custom connector, then paste the server address.
Cursor: add the address to .cursor/mcp.json. Claude Code: claude mcp add.
Sign in through engini when the client asks. The agent sees only the tools you chose.
Cursor, connected to Apache Kafka through engini
// .cursor/mcp.json: Cursor, connected to Apache Kafka through engini
{
"mcpServers": {
"engini-apache-kafka": {
"url": "<your engini MCP server address>"
}
}
}

Create the MCP server in engini with your Apache Kafka connection and the tools this agent may use, then paste its address. The client signs in through engini on first use. Claude, VS Code and other clients take the same address: see the MCP client setup guide.

Try asking your agent
“How far behind is the billing consumer group?”
“Show the last ten messages on orders.created.”
“Publish this customer update to customers.changed.”
“Which topics have the most traffic today?”
“What schema does payments.settled use?”
“Did an event for order 5531 come through?”

Each request runs through the Apache Kafka tools in the agent's toolset or MCP server. If a tool is not allowed, the agent cannot call it.

[ 03 / What teams build ]

What teams build on Apache Kafka. Agents and workflows, across systems.

Order to cash

Events into the ERP

Each order or payment event on a topic becomes a record in NetSuite or SAP, and a failure goes to a dead-letter topic and to Slack.

Apache KafkaNetSuiteSAP S/4HANA
Integration

Business changes as events

Changes in Salesforce or the ERP are produced to Kafka topics, so the rest of the platform reacts without polling.

SalesforceNetSuiteApache Kafka
Operations

Lag people notice

When a consumer group falls behind, the on-call team hears in Slack and a ServiceNow incident opens.

Apache KafkaSlackServiceNow
Engineering

Questions about the stream

An agent in Claude answers what flowed through a topic and where a given event went. Its toolset holds read tools only.

Apache KafkaClaude

Every integration runs both ways, so any of these flows can also run in reverse. These are examples, not the limit: any flow between Apache Kafka and another system engini connects is available.

[ 04 / Agent Policy ]

You decide what each agent may do in Apache Kafka. engini enforces it on every call.

Toolsets

Only the tools you allow

A toolset lists the Apache Kafka tools an agent may call and the connection each one uses. Give one agent read tools only and another the write it needs. engini refuses any call outside the toolset.

MCP servers

Scoped when you set them up

An MCP server exposes only the connections and tools chosen when it is created, and engini shows who uses each server.

Identity

Whose permissions apply

Connect a person's own Apache Kafka account and engini acts as that person, with their Apache Kafka permissions. Use a shared integration account and it acts as that account. Every run is recorded under the user who started it.

Credentials

Kept out of prompts

Your agent never needs your credentials: engini stores them and adds them when it runs each call, so keys stay out of prompts and tool inputs.

Audit

Every call on record

Every call lands in History and the audit log, which you can export or stream to your SIEM.

Environments

Test before production

Workspaces keep teams apart, and development, staging and production environments keep a test agent away from live data.

SOC 2 Type IIISO 27001GDPRHIPAA compliantSecurity at engini →
[ Behind your firewall ]

A private cluster.

If your Kafka cluster is not reachable from the internet, run the engini On-Prem Agent next to it. It opens every connection itself, out to engini over HTTPS on port 443, so you open no inbound ports.

On-Prem Agent guide →
[ 05 / Set up ]

Connect Apache Kafka in three steps. Then decide what each agent may do.

Step 01

Sign in to Apache Kafka

Create a service account with ACLs only on the topics and consumer groups the workflows need, then add a Kafka connection with the bootstrap servers, SASL or TLS credentials, and the Schema Registry if you use one.

Step 02

Choose the tools

Add the connection to an MCP server or a toolset with only the tools each agent needs.

Step 03

Build or ask

Use the connection as a step in a workflow, or ask your agent to work in Apache Kafka from Claude, Claude Code, ChatGPT, Codex, Cursor or your own code.

[ 06 / Questions ]

Apache Kafka and engini. Straight answers.

Can an AI agent write to Apache Kafka, or only read?

Both. engini has tools to produce messages to the topics you allow. Whether a given agent may use them is up to you: give it a toolset or an MCP server with read tools only, and it cannot call the rest.

Can I connect Claude or Claude Code to Apache Kafka?

Yes, through engini. Create an MCP server in engini with your Apache Kafka connection and the tools Claude may use. In Claude, add it under Settings, Connectors, Add custom connector; in Claude Code, run claude mcp add --transport sse with the server address, or use the engini CLI. Claude signs in through engini, sees only the Apache Kafka tools you chose, and every call is in the audit log.

Is there an MCP server for Apache Kafka?

Yes. engini gives you an MCP server for Apache Kafka: create one in engini with your Apache Kafka connection and only the tools you choose, and Claude, Claude Code, ChatGPT, Cursor, VS Code and other MCP clients connect to it and sign in through engini over OAuth, with no key to copy. MCP client setup.

How do I connect ChatGPT or Codex to Apache Kafka?

ChatGPT: add the engini MCP server as a custom MCP server, where your ChatGPT workspace allows them, and sign in through engini. Codex: install the engini CLI and Codex runs Apache Kafka tools from the terminal; the engini skills plugin for Codex also builds engini workflows from a plain-language request. In your own code, the SDK hands OpenAI models the Apache Kafka tools.

Can Claude, ChatGPT or Codex reach Apache Kafka on premises?

Yes. Install the engini On-Prem Agent on a server inside your network. It connects out to engini over HTTPS on port 443 and to Apache Kafka while it runs a task, so you open no inbound ports. Claude, ChatGPT, Codex and your own code call the same Apache Kafka tools through it, and each call is recorded in History.

Does it work with Confluent Cloud and Amazon MSK?

Yes. Any Kafka-compatible cluster engini, or the On-Prem Agent, can reach: self-managed Kafka, Confluent Cloud, Amazon MSK and Azure Event Hubs for Kafka.

Does reading messages change consumer offsets?

No. Read Messages reads without committing offsets. The Message Received trigger consumes with its own consumer group, so it never takes messages from your applications.

Does the agent act as me in Apache Kafka?

It acts as the Kafka service account behind the connection, with the ACLs it holds. Every run is recorded under the person who started it.

Can a change in Apache Kafka start work?

Yes. engini consumes a topic with its own consumer group and starts a workflow for each message as it arrives. A workflow can include an AI agent step.