Back to Home
tuannvm icon

kafka-mcp-server

Verified Safe

by tuannvm

Overview

Bridges LLM models with Apache Kafka, enabling AI agents to perform Kafka operations like 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_CLIENT_ID
  • MCP_TRANSPORT
  • KAFKA_SASL_MECHANISM
  • KAFKA_SASL_USER
  • KAFKA_SASL_PASSWORD
  • KAFKA_TLS_ENABLE
  • KAFKA_TLS_INSECURE_SKIP_VERIFY
  • MCP_HTTP_PORT
  • OAUTH_ENABLED
  • OAUTH_MODE
  • OAUTH_PROVIDER
  • OAUTH_SERVER_URL
  • OIDC_ISSUER
  • OIDC_CLIENT_ID
  • OIDC_CLIENT_SECRET
  • OIDCAudience
  • OAUTH_REDIRECT_URIS
  • JWT_SECRET

Security Notes

The server demonstrates strong security practices: sensitive configurations (SASL, OAuth secrets) are managed via environment variables (no hardcoding). It supports OAuth 2.1 for HTTP transport with multiple providers (Okta, Google, Azure AD, HMAC) and TLS for Kafka connections. The 'TLSInsecureSkipVerify' option is present but explicitly documented for development/testing only. Comprehensive input validation is implicitly handled by the MCP framework and explicitly in handlers. Continuous integration includes vulnerability scanning (Trivy, govulncheck) and dependency updates with security alerts (Renovate). No 'eval' or malicious patterns were identified.

Similar Servers

Stats

Interest Score44
Security Score9
Cost ClassMedium
Avg Tokens750
Stars38
Forks10
Last Update2025-11-29

Tags

KafkaMCPGoLLMAI IntegrationObservabilityAuthentication