Skip to content
MCP server

nifi-clickhouse-kafka-mcp

Read-only Apache NiFi, ClickHouse and Kafka access for assistants, with audit and masking

Runs locally

nifi-clickhouse-kafka-mcp is an open-source MCP server for databases. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted
Runs
Locally
Version
0.1.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add nifi-clickhouse-kafka-mcp --env NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG='<NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG>' -- uvx nifi-clickhouse-kafka-mcp

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "nifi-clickhouse-kafka-mcp": {
      "command": "uvx",
      "args": [
        "nifi-clickhouse-kafka-mcp"
      ],
      "env": {
        "NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG": "<NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG>"
      }
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "nifi-clickhouse-kafka-mcp": {
      "command": "uvx",
      "args": [
        "nifi-clickhouse-kafka-mcp"
      ],
      "env": {
        "NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG": "<NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG>"
      }
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "nifi-clickhouse-kafka-mcp": {
      "command": "uvx",
      "args": [
        "nifi-clickhouse-kafka-mcp"
      ],
      "env": {
        "NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG": "<NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG>"
      }
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "nifi-clickhouse-kafka-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "nifi-clickhouse-kafka-mcp"
      ],
      "env": {
        "NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG": "<NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG>"
      }
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add nifi-clickhouse-kafka-mcp --env NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG='<NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG>' -- uvx nifi-clickhouse-kafka-mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.nifi-clickhouse-kafka-mcp]
command = "uvx"
args = ["nifi-clickhouse-kafka-mcp"]
env = { NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG = "<NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "nifi-clickhouse-kafka-mcp": {
      "command": "uvx",
      "args": [
        "nifi-clickhouse-kafka-mcp"
      ],
      "env": {
        "NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG": "<NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "nifi-clickhouse-kafka-mcp": {
          "command": "uvx",
          "args": [
            "nifi-clickhouse-kafka-mcp"
          ],
          "env": {
            "NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG": "<NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG>"
          }
        }
      }
    }

    Or run: gemini mcp add -s user -e NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG='<NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG>' nifi-clickhouse-kafka-mcp uvx -- nifi-clickhouse-kafka-mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "nifi-clickhouse-kafka-mcp": {
          "command": "uvx",
          "args": [
            "nifi-clickhouse-kafka-mcp"
          ],
          "env": {
            "NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG": "<NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG>"
          }
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "nifi-clickhouse-kafka-mcp": {
          "command": "uvx",
          "args": [
            "nifi-clickhouse-kafka-mcp"
          ],
          "env": {
            "NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG": "<NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG>"
          }
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "nifi-clickhouse-kafka-mcp": {
          "command": "uvx",
          "args": [
            "nifi-clickhouse-kafka-mcp"
          ],
          "env": {
            "NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG": "<NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG>"
          }
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "nifi-clickhouse-kafka-mcp": {
          "command": "uvx",
          "args": [
            "nifi-clickhouse-kafka-mcp"
          ],
          "env": {
            "NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG": "<NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG>"
          }
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "nifi-clickhouse-kafka-mcp": {
          "command": "uvx",
          "args": [
            "nifi-clickhouse-kafka-mcp"
          ],
          "env": {
            "NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG": "<NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG>"
          }
        }
      }
    }

    The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "nifi-clickhouse-kafka-mcp": {
          "command": "uvx",
          "args": [
            "nifi-clickhouse-kafka-mcp"
          ],
          "env": {
            "NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG": "<NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG>"
          }
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "nifi-clickhouse-kafka-mcp": {
          "command": "uvx",
          "args": [
            "nifi-clickhouse-kafka-mcp"
          ],
          "env": {
            "NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG": "<NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG>"
          }
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • NIFI_CLICKHOUSE_KAFKA_MCP_CONFIGPath to the config file; see examples/config.example.yaml in the repositoryRequired

About nifi-clickhouse-kafka-mcp

Aimed at data platform teams, this gateway lets an assistant diagnose pipelines without being able to break them. Every tool is read-only and each backend identity is read-only too, so a bug in one lock is caught by the other. It supports named environments such as prod and staging, each with any mix of NiFi, ClickHouse and Kafka behind one connector.

NiFi tools find back-pressured connections, invalid processors, failed controller services and bulletins, and inspect queues, FlowFiles and provenance. ClickHouse tools run one validated read statement with bound parameters and row or size caps, describe tables and report cluster health, refusing table functions like url and s3. Kafka tools cover topics, consumer lag, sampling and searching by key, substring or JSON field, without joining a consumer group or committing offsets.

It masks passwords, tokens and configured fields, pages all lists, writes a JSON audit line per call and can export Prometheus metrics. Run it locally over stdio with uvx, or host it with streamable HTTP and OIDC login from providers such as Keycloak, Entra ID or Okta. A YAML config is required.

Tools this server provides (12)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 4 of 12 tools read data; 8 names don't say.

From the server's own tool labels and tool names; not verified by us.

environments
List configured environments
nifi_health
Back-pressured connections, invalid processors and bulletins for a flow
nifi_queue
Inspect a queue
nifi_flowfile
Read a FlowFile's attributes and content
nifi_provenance
Query provenance events
clickhouse_queryName suggests: reads
Run one read statement with bound parameters and caps
clickhouse_describe_tableName suggests: reads
Describe a table
clickhouse_search_columnsName suggests: reads
Search columns across tables
clickhouse_health
Replica, disk, merge and error health
kafka_consumer_lag
Consumer lag per partition
kafka_searchName suggests: reads
Search partitions by key, substring or JSON field
kafka_sample
Sample messages from an offset or timestamp

What it does

Read-only twice
Read tools only, and read-only backend identities as well.
NiFi diagnostics
Finds backed-up queues, stopped processors and error bulletins.
Safe ClickHouse queries
Parses statements, caps results and blocks external table functions.
Kafka search
Scans partitions for a key or value without committing offsets.
Secret masking
Masks credentials and configured fields in results.
Audit and OIDC
Logs each call by user and supports OIDC sign-in.

Good for

  • Find why a production NiFi flow is backed up
  • Check whether a Kafka consumer is losing data
  • Locate tables holding customer data and their sizes
  • Trace a stuck FlowFile to its source

Pricing

Open source

Free, self-hosted

nifi-clickhouse-kafka-mcp FAQ

Can nifi-clickhouse-kafka-mcp change anything?

No. It exposes only read tools, backed by read-only identities.

How do teams authenticate?

With OAuth tokens from any OIDC provider, or a trusted proxy header.

Does reading Kafka affect consumers?

No. It assigns partitions directly and commits no offsets.

What do I need to run nifi-clickhouse-kafka-mcp?

A YAML config file; uvx can run the PyPI package.

Is nifi-clickhouse-kafka-mcp free?

Yes. nifi-clickhouse-kafka-mcp is open source, so you can use and self-host it for free.

How do I add nifi-clickhouse-kafka-mcp to Claude Code?

Run this command in your terminal: claude mcp add nifi-clickhouse-kafka-mcp --env NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG='<NIFI_CLICKHOUSE_KAFKA_MCP_CONFIG>' -- uvx nifi-clickhouse-kafka-mcp

What are the best alternatives to nifi-clickhouse-kafka-mcp?

The closest alternatives to nifi-clickhouse-kafka-mcp are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers