
MCP Kafka Schema Reg
A comprehensive Message Control Protocol (MCP) server for Kafka Schema Registry.
README
Kafka Schema Registry MCP Server
A comprehensive Message Control Protocol (MCP) server that provides Claude Desktop and other MCP clients with tools for Kafka Schema Registry operations. Features advanced schema context support, multi-registry management, and comprehensive schema export capabilities.
<table width="100%"> <tr> <td width="33%" style="vertical-align: top;"> <div style="background-color: white; padding: 20px; border-radius: 10px;"> <img src="docs/logo_400_mcp_kafka_schema_reg.png" alt="Kafka Schema Registry MCP Logo" width="100%"> </div> </td> <td width="67%" style="vertical-align: top; padding-left: 20px;">
🎯 True MCP Implementation: Uses modern FastMCP 2.8.0+ framework with full MCP 2025-06-18 specification compliance. Fully compatible with Claude Desktop and other MCP clients using JSON-RPC over stdio.
Latest Version: v2.0.2 | Docker: aywengo/kafka-schema-reg-mcp:stable
</td>
</tr>
</table>
📋 Table of Contents
- 🚀 Quick Start
- ✨ Key Features
- 📦 Installation
- ⚙️ Configuration
- 💬 Usage Examples
- 🔒 Authentication & Security
- 📚 Documentation
- 🧪 Testing
- 🚀 Deployment
- 🤝 Contributing
- 🆕 What's New
🚀 Quick Start
1. Run with Docker (Recommended)
# Latest stable release
docker pull aywengo/kafka-schema-reg-mcp:stable
docker run -e SCHEMA_REGISTRY_URL=http://localhost:8081 aywengo/kafka-schema-reg-mcp:stable
2. Configure Claude Desktop
Copy a ready-to-use configuration from config-examples/
:
# macOS
cp config-examples/claude_desktop_stable_config.json ~/Library/Application\ Support/Claude/claude_desktop_config.json
# Linux
cp config-examples/claude_desktop_stable_config.json ~/.config/claude-desktop/config.json
3. Start Using with Claude
Restart Claude Desktop and try these prompts:
- "List all schema contexts"
- "Show me the subjects in the production context"
- "Register a new user schema with fields for id, name, and email"
✨ Key Features
- 🤖 Claude Desktop Integration - Direct MCP integration with natural language interface
- 🏢 Multi-Registry Support - Manage up to 8 Schema Registry instances simultaneously
- 📋 Schema Contexts - Logical grouping for production/staging environment isolation
- 🔄 Schema Migration - Cross-registry migration with backup and verification
- 📊 Comprehensive Export - JSON, Avro IDL formats for backup and documentation
- 🔒 Production Safety - READONLY mode and per-registry access control
- 🔐 OAuth 2.1 Authentication - Enterprise-grade security with scope-based permissions
- 📈 Real-time Progress - Async operations with progress tracking and cancellation
- 🔗 Resource Linking - HATEOAS navigation with enhanced tool responses
- 🧪 Full MCP Compliance - 48+ tools following MCP 2025-06-18 specification
📖 See detailed feature descriptions: docs/api-reference.md
📦 Installation
Option A: Docker (Recommended)
# Production stable
docker pull aywengo/kafka-schema-reg-mcp:stable
# Latest development
docker pull aywengo/kafka-schema-reg-mcp:latest
# Specific version
docker pull aywengo/kafka-schema-reg-mcp:2.0.2
Option B: Local Python
git clone https://github.com/aywengo/kafka-schema-reg-mcp
cd kafka-schema-reg-mcp
pip install -r requirements.txt
python kafka_schema_registry_unified_mcp.py
Option C: Docker Compose
docker-compose up -d # Includes Schema Registry for testing
📖 Detailed installation guide: docs/deployment.md
⚙️ Configuration
Single Registry Mode
export SCHEMA_REGISTRY_URL="http://localhost:8081"
export SCHEMA_REGISTRY_USER="" # Optional
export SCHEMA_REGISTRY_PASSWORD="" # Optional
export READONLY="false" # Production safety
Multi-Registry Mode (Up to 8 Registries)
# Development Registry
export SCHEMA_REGISTRY_NAME_1="development"
export SCHEMA_REGISTRY_URL_1="http://dev-registry:8081"
export READONLY_1="false"
# Production Registry (with safety)
export SCHEMA_REGISTRY_NAME_2="production"
export SCHEMA_REGISTRY_URL_2="http://prod-registry:8081"
export READONLY_2="true" # Read-only protection
Claude Desktop Configuration
Pre-configured examples available in config-examples/
:
Configuration | Use Case | File |
---|---|---|
Production | Stable Docker deployment | claude_desktop_stable_config.json |
Multi-Environment | DEV/STAGING/PROD registries | claude_desktop_multi_registry_docker.json |
Local Development | Python local execution | claude_desktop_config.json |
Read-Only Safety | Production with safety | claude_desktop_readonly_config.json |
📖 Complete configuration guide: config-examples/README.md
💬 Usage Examples
Schema Management
# In Claude Desktop, use natural language:
"Register a user schema with id, name, email fields"
"Check if my updated schema is compatible"
"Export all schemas from staging context"
"List subjects in production context"
Multi-Registry Operations
"Compare development and production registries"
"Migrate user-events schema from staging to production"
"Test connections to all registries"
"Show me registry statistics"
Batch Operations
"Clear all schemas from test context"
"Export global schemas for backup"
"Count schemas across all contexts"
📖 More examples: examples/ | 📖 Use cases: docs/use-cases.md
🔒 Authentication & Security
OAuth 2.1 Support (Optional)
# Enable authentication
export ENABLE_AUTH=true
export AUTH_ISSUER_URL="https://your-oauth-provider.com"
export AUTH_AUDIENCE="your-client-id"
Supported Providers: Azure AD, Google OAuth, Keycloak, Okta, GitHub
Permission Scopes:
read
- View schemas, configurationswrite
- Register schemas, update configs (includes read)admin
- Delete subjects, full control (includes write + read)
Production Safety Features
- READONLY Mode - Prevent accidental changes in production
- URL Validation - SSRF protection with configurable localhost access
- Scope-based Authorization - Fine-grained tool-level permissions
- Per-Registry Controls - Independent safety settings
📖 Security guide: docs/deployment.md#security
📚 Documentation
Guide | Description |
---|---|
API Reference | Complete tool documentation with examples |
Use Cases | Real-world scenarios and implementation patterns |
Deployment Guide | Docker, Kubernetes, cloud platforms, CI/CD |
IDE Integration | VS Code, Claude Code, Cursor setup |
Configuration Examples | Ready-to-use Claude Desktop configs |
Testing Guide | Comprehensive testing setup |
Changelog | Version history and migration notes |
v2.0.0 Highlights | Major version features |
Additional Resources
- Examples - Usage examples and code samples
- Scripts - Utility scripts and automation
- Helm Charts - Kubernetes deployment
- Tests - Test suites and validation
🧪 Testing
Quick Test
cd tests/
./run_all_tests.sh --quick # Essential tests
./run_all_tests.sh # Complete test suite
Docker Testing
python tests/test_docker_mcp.py
📖 Testing guide: TESTING_SETUP_GUIDE.md
🚀 Deployment
Production Docker
# With docker-compose
docker-compose up -d
# Direct Docker
docker run -d -p 38000:8000 \
-e SCHEMA_REGISTRY_URL=http://registry:8081 \
aywengo/kafka-schema-reg-mcp:stable
Kubernetes
# Using Helm charts
helm install kafka-schema-mcp ./helm/kafka-schema-reg-mcp
📖 Deployment guide: docs/deployment.md
🤝 Contributing
We welcome contributions! Please see:
Quick Development Setup
git clone https://github.com/aywengo/kafka-schema-reg-mcp
cd kafka-schema-reg-mcp
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
python kafka_schema_registry_unified_mcp.py
🆕 What's New
v2.0.2 (Latest)
- 🔒 Security Fixes - Resolved credential exposure in logging
- 🤖 Interactive Schema Migration - Smart migration with user preference elicitation
- 💾 Automatic Backups - Pre-migration backup creation
- ✅ Post-Migration Verification - Comprehensive schema validation
v2.0.0 (Major Release)
- 🚀 FastMCP 2.8.0+ Framework - Complete architecture upgrade
- 📊 MCP 2025-06-18 Compliance - Latest protocol specification
- 🔐 OAuth 2.1 Generic Discovery - Universal provider compatibility
- 🔗 Resource Linking - HATEOAS navigation in tool responses
📖 Full changelog: CHANGELOG.md | 📖 v2.0.0 features: README-v2.0.0-HIGHLIGHTS.md
<a href="https://glama.ai/mcp/servers/@aywengo/kafka-schema-reg-mcp"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@aywengo/kafka-schema-reg-mcp/badge" /> </a>
🐳 Docker Hub: aywengo/kafka-schema-reg-mcp
| 📊 Stats: 48+ MCP Tools, 8 Registries, OAuth 2.1, Multi-platform
License: MIT | Maintainer: @aywengo | Issues: GitHub Issues
推荐服务器

Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。