Kafka
Give an agent access to Kafka through the ilert MCP connector you deploy in your own network.
Required permissions
list_topics
read
List all Kafka topics in the cluster. Useful for discovering available topics and their configurations.
describe_topic
read
Get detailed information about a specific topic including partitions, replication factor, and configuration settings.
list_consumers
read
List all consumer groups in the cluster. Useful for monitoring consumer lag and group status.
describe_consumer
read
Get detailed information about a consumer group including member assignments, lag, and current offsets.
get_consumer_lag
read
Get consumer lag information for a specific consumer group and topic. Helps identify if consumers are falling behind.
Deploy the ilert MCP connector
ilert does not talk to your brokers directly. The Kafka MCP server calls the ilert MCP connector, a service you deploy in your own network and expose over a public HTTPS URL. Deployment, the auth token and all configuration options are on its own page:
Enable Kafka on the connector with these variables:
KAFKA_ENABLED=true
KAFKA_BROKERS=kafka1:9092,kafka2:9092
KAFKA_AUTH_TYPE=PLAIN # or NONE, SCRAM-SHA-256, SCRAM-SHA-512, SSL, SASL_SSL
KAFKA_USERNAME=your_username
KAFKA_PASSWORD=your_passwordUse KAFKA_AUTH_TYPE=NONE if your cluster requires no authentication, and see the connector page for the TLS variables the SSL and SASL_SSL types need.
Connect Kafka with agent
To connect Kafka with your AI SRE agent:
Navigate to Agents in the ilert navigation menu
Open the agent detail view for the agent you want to configure
Go to the Tools tab
Under the ilert hosted MCP servers section, locate the Kafka card
Click Connect on the Kafka card
In the connection dialog that appears:
Select connector: Choose "Create new connector" (or select an existing connector if you have one)
Type: Select Bearer Token from the dropdown
Secret name: Enter a name for your connector (e.g., "Kafka Production" or "Kafka Main")
Secret value: Enter the
AUTH_TOKENvalue from your connector deploymentHost URL: Enter the public URL where your connector is reachable (e.g.,
https://ilert-mcp-connector.example.com)
Click Connect to complete the connection
After connecting, you can enable or disable specific tools needed for alert investigation, such as:
list_topics- List all Kafka topics in the clusterdescribe_topic- Get detailed information about a specific topiclist_consumers- List all consumer groups in the clusterdescribe_consumer- Get detailed information about a consumer groupget_consumer_lag- Get consumer lag information for monitoring
The Kafka integration is now connected and ready to use for root cause analysis.
Last updated
Was this helpful?