Skip to main content
Glama
dockndevai

mcp-debezium

by dockndevai

mcp-debezium

CI License: MIT

一个 Model Context Protocol 服务器,用于 Debezium(通过 Kafka Connect REST API)。它让支持 MCP 的客户端(Claude Desktop、Claude Code 等)监控和管理变更数据捕获连接器——状态、配置、重启、生命周期——其行为完全由标志控制。

默认安全:它以只读模式启动,可将作用范围限定为连接器允许列表,保护关键连接器不被修改,对连接器配置中的凭据进行脱敏,并将删除操作置于显式选择启用之后。

功能

  • 监控 — worker/集群信息、连接器列表、插件、各连接器配置、状态(含失败任务跟踪)以及主题。

  • 管理 — 创建/更新、暂停/恢复、重启连接器或单个任务。

  • 生命周期 — 删除连接器(admin)。

  • 访问模式read-onlyread-writeadmin,分层设计,因此某个模式绝不会暴露其级别以上的工具。

  • 凭据脱敏database.password 及其他形似机密的配置值会在结果返回前被替换为 ***REDACTED***

  • 安全标志 — 连接器允许列表、受保护连接器、删除门控、dry-run 和 JSON 审计日志(见下文)。

Related MCP server: Kafka MCP Server

安全模型

关注点

标志

默认值

效果

服务器能做什么?

DEBEZIUM_MODE

read-only

read-only 仅暴露监控;read-write 增加生命周期管理;admin 增加删除。提供高于该模式级别的工具永远不会被注册

哪些连接器在范围内?

DEBEZIUM_CONNECTOR_ALLOWLIST

(全部)

设置后,对其他连接器的操作将被拒绝。

哪些连接器永久只读?

DEBEZIUM_PROTECTED_CONNECTORS

(无)

可查看,但永远不会被暂停/重新配置/删除。

是否可删除?

DEBEZIUM_ALLOW_DELETE

false

delete_connector 需要该标志以及 admin 模式。

避免触碰 Connect 的预览

DEBEZIUM_DRY_RUN

false

写入/管理员工具会先验证并记录意图,然后直接返回。

审计日志

DEBEZIUM_AUDIT_LOG

true

每次受保护的操作都会向 stderr 输出一行 JSON。

凭据脱敏

(始终开启)

形似机密的配置值会在返回前被脱敏。

工具

读取read-only+):cluster_infolist_connectorslist_connector_pluginsget_connectorget_connector_configget_connector_statusget_connector_topics

写入read-write+):create_connectorupdate_connector_configpause_connectorresume_connectorrestart_connectorrestart_task

管理admin):delete_connector(需要 DEBEZIUM_ALLOW_DELETE

与你的 MCP 客户端配合使用

支持 Claude Code、Claude Desktop、Cursor、OpenAI Codex CLI、Windsurf、VS Code(Copilot)以及任何其他 MCP 客户端——详见 docs/CLIENTS.md 了解各客户端的设置。

安装

npm install
npm run build

使用 Claude Desktop / Claude Code 运行

{
  "mcpServers": {
    "debezium": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-debezium/dist/index.js"],
      "env": {
        "CONNECT_URL": "http://connect:8083",
        "DEBEZIUM_MODE": "read-only",
        "DEBEZIUM_PROTECTED_CONNECTORS": "pg-prod-orders"
      }
    }
  }
}

示例提示

  • “哪些连接器处于 FAILED 状态?为什么?”

  • “重启 pg-orders 上失败的任务。”(需要 read-write

  • “显示 mysql-inventory 的配置。”(凭据返回时会被脱敏)

开发

npm run dev
npm test          # security policy + config redaction
npm run typecheck

发布

本服务器提供一份 server.json 用于官方 MCP 注册表,以及一个 mcpName 用于 npm 所有权验证。关于发布到 npm 以及上架 MCP 注册表、Smithery、Glama、Cursor 和 PulseMCP,请参阅 PUBLISHING.md

许可证

MIT

Install Server
A
license - permissive license
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to manage and monitor Apache Kafka clusters through natural language, providing real-time operations, health monitoring, consumer lag analysis, and temporal trend detection for intelligent cluster management.
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables interaction with Kafka clusters via MCP, supporting topic management (list, create, delete, inspect), connection initialization, and more through natural language.
    1
    Apache 2.0
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables AI-powered MCP clients to interact with data lakehouse components including Kafka, Flink, and Trino/Iceberg for managing topics, jobs, catalogs, and executing queries.
    2

View all related MCP servers

Related MCP Connectors

  • GibsonAI MCP server: manage your databases with natural language

  • Official Microsoft MCP Server to query Microsoft Entra data using natural language

  • Remote MCP for GenAI span mapping, provider normalization, dashboard schemas, and receipts.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dockndevai/mcp-debezium'

If you have feedback or need assistance with the MCP directory API, please join our Discord server