Back to Home
tuannvm icon

kafka-mcp-server

Verified Safe

by tuannvm

Overview

Enables LLM models and AI applications to interact with Apache Kafka for producing/consuming messages, managing topics, monitoring consumer groups, and assessing cluster health via the Model Context Protocol (MCP).

Installation

Run Command
go run cmd/main.go

Environment Variables

  • KAFKA_BROKERS
  • KAFKA_SASL_MECHANISM
  • KAFKA_SASL_USER
  • KAFKA_SASL_PASSWORD
  • KAFKA_TLS_ENABLE
  • OAUTH_ENABLED
  • OAUTH_MODE
  • OAUTH_PROVIDER
  • OAUTH_SERVER_URL
  • OIDC_ISSUER
  • OIDC_CLIENT_ID
  • OIDC_CLIENT_SECRET
  • OIDC_AUDIENCE
  • OAUTH_REDIRECT_URIS
  • JWT_SECRET
  • KAFKA_CLIENT_ID
  • MCP_TRANSPORT
  • KAFKA_TLS_INSECURE_SKIP_VERIFY
  • MCP_HTTP_PORT

Security Notes

The server leverages environment variables for all sensitive configurations (Kafka credentials, OAuth secrets), eliminating hardcoded secrets. It supports robust authentication mechanisms for Kafka (SASL, TLS) and the MCP server (OAuth 2.1 via HTTP transport). Input validation is present for tool arguments. However, using `KAFKA_TLS_INSECURE_SKIP_VERIFY=true` in production poses a significant man-in-the-middle risk, and the documentation explicitly warns against it. Overall, a secure setup is achievable but requires careful configuration by the user.

Similar Servers

Stats

Interest Score26
Security Score8
Cost ClassMedium
Avg Tokens1000
Stars41
Forks10
Last Update2025-12-22

Tags

KafkaMCPGoLLMAPIStreamingData