# nifi-clickhouse-kafka-mcp

> nifi-clickhouse-kafka-mcp is an open-source MCP server for databases. Read-only Apache NiFi, ClickHouse and Kafka access for assistants, with audit and masking. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/arogan178/nifi-clickhouse-kafka-mcp
- **MCP Registry name:** io.github.arogan178/nifi-clickhouse-kafka-mcp
- **Categories:** [databases](https://ai-powered.com/categories/databases), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
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.

### Claude Code: Or share it with your project (.mcp.json)

```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 Desktop (claude_desktop_config.json)

```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.

### Cursor (~/.cursor/mcp.json)

```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.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

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

### Codex: Or add to config.toml (~/.codex/config.toml)

```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>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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.

### Devin Desktop (~/.config/devin/mcp_config.json)

```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.

### Cline (cline_mcp_settings.json)

```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.

### Zed (Zed settings.json)

```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.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "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.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```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.

### Kiro (~/.kiro/settings/mcp.json)

```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.

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

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_query` (name suggests: reads): Run one read statement with bound parameters and caps
- `clickhouse_describe_table` (name suggests: reads): Describe a table
- `clickhouse_search_columns` (name suggests: reads): Search columns across tables
- `clickhouse_health`: Replica, disk, merge and error health
- `kafka_consumer_lag`: Consumer lag per partition
- `kafka_search` (name suggests: reads): Search partitions by key, substring or JSON field
- `kafka_sample`: Sample messages from an offset or timestamp

## 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.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/nifi-clickhouse-kafka-mcp
