nifipilot-plus
Allows AI agents to inspect, build, and operate Apache NiFi flows, including processors, connections, process groups, controller services, parameter contexts, ports, flow status, health checks, and control operations such as starting and stopping components.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@nifipilot-plus inspect my NiFi flow and list the processors that are stopped"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
nifipilot-plus
An MCP server that lets AI agents inspect, build and operate Apache NiFi flows — on plain NiFi with username/password login (no Knox/Cloudera gateway required).
It merges two open-source projects:
Project | What it contributes here |
Giojacke/mcp-nifipilot (MIT) | the readonly/full mode, dry-run and audit-log design (ideas only, no code or text copied) |
cloudera/NiFi-MCP-Server (Apache-2.0) | the broad tool catalogue (controller services, parameter contexts, ports, bulk operations, health, flow-pattern guides) — without its Knox authentication |
Result: 29 read-only tools and 66 tools in full mode, one HTTP client, NiFi 1.x/2.x compatible endpoints. See NOTICE for provenance and licenses.
Status: early (0.1.0). 34 unit tests run against a mocked NiFi REST API, and
scripts/live_smoke.pyexercised 59 tool calls (build, run, stop and delete a flow, controller services, parameter contexts, ports) against a real single-node NiFi 2.2.0, as did the Docker demo below. The same 59 calls also passed against NiFi 2.11.0 (the sidecar compose setup below). NiFi 1.x, clustered NiFi, LDAP/OIDC logins and the Kubernetes manifest have not been tested. Start withMCP_MODE=readonly.
Quick start
git clone https://github.com/edb-korea/nifipilot-plus && cd nifipilot-plus
uv venv && uv pip install -e . # Python 3.11+
cp .env.example .env # then edit NIFI_URL / NIFI_PASSWORDClaude Code (stdio):
claude mcp add nifi \
-e NIFI_URL=https://localhost:8443 -e NIFI_USERNAME=admin \
-e NIFI_PASSWORD='<password>' -e NIFI_VERIFY_SSL=false -e MCP_MODE=readonly \
-- /path/to/nifipilot-plus/.venv/bin/nifipilot-plusAny MCP client config (stdio):
{
"mcpServers": {
"nifi": {
"command": "/path/to/nifipilot-plus/.venv/bin/nifipilot-plus",
"env": {
"NIFI_URL": "https://localhost:8443",
"NIFI_USERNAME": "admin",
"NIFI_PASSWORD": "<password>",
"NIFI_VERIFY_SSL": "false",
"MCP_MODE": "readonly"
}
}
}
}Docker demo — NiFi (default 2.11.0) with the MCP server as a sidecar container that shares
NiFi's network namespace (it reaches NiFi at https://localhost:8443):
cp .env.example .env # set NIFI_PASSWORD (min 12 chars)
docker compose up --build # NIFI_VERSION=2.2.0 docker compose up ... for another release
claude mcp add --transport http nifi http://localhost:8000/mcpBoth ports are published on 127.0.0.1 only; the MCP endpoint has no authentication.
Kubernetes / k3s: one Pod, two containers
deploy/k3s/nifi-with-mcp.yaml runs NiFi and the MCP server as
sidecar containers of one Pod (same localhost), with a PVC for NiFi's repositories, a Secret
for the credentials, a ClusterIP Service for NiFi and an internal-only Service for MCP. The
header of the file lists the steps (build/import the image, create the Secret, apply,
kubectl port-forward). Keep the MCP Service internal and reach it with port-forward.
It was deployed to a real k3s (running in Docker) and passed the live smoke test through
kubectl port-forward. For a step-by-step AWS/k3s guide with build, import and verify scripts
see nifi-mcp-k3s-deploy.
Related MCP server: mcp-agent-server
Configuration
All settings are environment variables (or a .env file).
Variable | Default | Description |
|
| NiFi base URL ( |
|
| Login via |
|
|
|
| — | CA bundle path (preferred over disabling verification) |
| — | Sent as |
|
| HTTP timeout (s), attempts for transient failures |
|
|
|
|
| Subset of |
|
| Write/control tools only report what they would do |
|
| JSON-lines log of every call (secrets redacted) |
|
|
|
|
| Bind address for |
NiFi validates the HTTP Host header. Whatever host:port you use to reach NiFi (including
in-cluster service names) must be listed in NiFi's nifi.web.proxy.host
(container env NIFI_WEB_PROXY_HOST).
Safety model
Read-only by default. In
readonlymode write/control tools are not registered at all, so the model never sees them.Toolsets keep the tool list small:
MCP_TOOLSETS=core,guidesexposes 22 tools in full mode instead of 66.Dry run (
MCP_DRY_RUN=true) short-circuits every write/control call.Audit log records every call with its parameters (sensitive keys redacted) and outcome.
Redaction: password/secret/token-like keys are masked in all tool output and large lists are truncated.
Optimistic locking made easy: every write tool takes an optional
version; when omitted the current revision is fetched, so the model does not juggle revisions. NiFi's409conflicts still surface with a hint.Retries only for transient failures (connection errors, 429/502/503/504); a POST is never retried after it may have reached NiFi, so creates are not duplicated.
The MCP endpoint itself has no authentication: use stdio, or bind to localhost and tunnel/port-forward.
Tools
Read (29, always available)
Toolset | Tools |
core |
|
services |
|
parameters |
|
ports |
|
guides |
|
Write and control (+37, MCP_MODE=full)
Toolset | Tools |
flow |
|
services |
|
parameters |
|
ports |
|
start_process_group/stop_process_group act recursively through NiFi's group scheduling API;
start_all_processors_in_group/stop_all_processors_in_group act on direct children and
report per processor (started / already running / failed).
Where the old tool names went
Was (nifipilot) | Now |
|
|
|
|
|
|
|
|
|
|
Cloudera's tool names are kept as they are. Differences from the Cloudera server: version
arguments are optional, list tools return compact summaries, and start_new_flow replaces its
SmartFlowBuilder.
The agent instructions in skills/nifi-operator.md tell a model how to use these tools safely.
Architecture
MCP client ──stdio/sse/http──> FastMCP ──> tools/* ──> NiFiClient (httpx) ──HTTPS──> NiFi REST API
│ login, JWT renewal, retries, revisions
└─ ToolContext: toolset/mode gating, dry-run, audit, redactionconfig.py— settings (pydantic-settings) and toolset parsingclient.py— the single REST client (generic entity CRUD, run-status, revision lookup)tools/context.py— the decorator every tool goes throughtools/{read,flow_write,control,services,parameters,ports,guides}.py— the toolsguides/— flow-pattern library and best-practice text (adapted from Cloudera's project)
Development
uv venv && uv pip install -e . pytest pytest-httpx ruff
.venv/bin/python -m pytest
.venv/bin/ruff check src testsLive check against a running NiFi (builds and removes a throw-away flow; needs NIFI_URL,
NIFI_USERNAME, NIFI_PASSWORD in .env): .venv/bin/python scripts/live_smoke.py
Tool modules must not use from __future__ import annotations (FastMCP builds the schemas from
the real annotations).
Known limitations
Validated only against single-node NiFi 2.2.0 and 2.11.0; NiFi 1.x is untested.
Only username/password (single-user, LDAP) login; no OIDC/client-certificate/Knox login.
Clustered NiFi: requests go to whichever node the URL points at.
update_parameter_contextuses the direct PUT endpoint; NiFi may reject it while components that reference the changed parameters are running.No rate limiting yet.
License
Apache License 2.0 — see LICENSE and NOTICE. Code and ideas adapted from MIT-licensed mcp-nifipilot are covered by licenses/MIT-mcp-nifipilot.txt.
Available Tools
29 toolsanalyze_flow_build_requestAnalyze Flow Build RequestA
Recognise common integration patterns (database to object storage, Kafka to S3, REST to database, ...) and list the requirements to collect BEFORE building a flow.
Inputs: user_request (required). Returns: object
check_configurationCheck ConfigurationA
Validate this MCP server's own configuration and report errors/warnings.
Inputs: no named parameters. Returns: object
check_connection_queueCheck Connection QueueB
Queue depth of a connection. A connection must be empty before it can be deleted.
Inputs: connection_id (required). Returns: object
find_controller_services_by_typeFind Controller Services By TypeA
Find existing services of a type (full class name or short name such as DBCPConnectionPool). Check this BEFORE creating a service to avoid duplicates.
Inputs: service_type (required), process_group_id (required). Returns: object
get_best_practices_guideGet Best Practices GuideB
NiFi flow-building best practices (groups, naming, lifecycle, parameters, safety).
Inputs: no named parameters. Returns: result
get_bulletinsGet BulletinsA
Recent bulletins (warnings/errors). after_ms: only newer than this bulletin id
cursor; group_id: restrict to one process group.
Inputs: limit, after_ms, group_id. Returns: object
get_connection_detailsGet Connection DetailsC
Full connection entity: queue status, relationships, back-pressure settings.
Inputs: connection_id (required). Returns: object
get_controller_service_detailsGet Controller Service DetailsC
Full controller service entity: properties, state, referencing components.
Inputs: service_id (required). Returns: object
get_controller_servicesGet Controller ServicesA
List controller services. With a group id: services in scope of that group (including inherited ones); without: controller-level (global) services.
Inputs: process_group_id. Returns: object
get_flow_health_statusGet Flow Health StatusA
Health report (HEALTHY | DEGRADED | UNHEALTHY): invalid processors/services, queues close to backpressure, recent WARN/ERROR bulletins. Direct children of the group only.
Inputs: process_group_id. Returns: object
get_flow_statusGet Flow StatusC
Throughput and thread/queue statistics for a process group.
Inputs: group_id. Returns: object
get_flow_summaryGet Flow SummaryC
Processor counts by state, connection count and total queued data of a group.
Inputs: process_group_id. Returns: object
get_jdbc_driver_troubleshootingGet Jdbc Driver TroubleshootingA
Explain 'driver class not found' errors for DBCPConnectionPool and what to do.
Inputs: no named parameters. Returns: result
get_nifi_versionGet Nifi VersionB
NiFi version/build info, and whether this is NiFi 1.x or 2.x.
Inputs: no named parameters. Returns: object
get_parameter_context_detailsGet Parameter Context DetailsA
One parameter context with all its parameters (sensitive values are never returned).
Inputs: context_id (required). Returns: object
get_process_groupsGet Process GroupsB
List the direct child process groups of a group (default: root).
Inputs: group_id. Returns: object
get_processor_detailsGet Processor DetailsC
Full processor entity: properties, scheduling, relationships, validation, revision.
Inputs: processor_id (required). Returns: object
get_processor_stateGet Processor StateA
Quick state check (RUNNING / STOPPED / DISABLED) for one processor.
Inputs: processor_id (required). Returns: object
get_processor_typesGet Processor TypesB
Processor types available on this NiFi. Use search (matches type, tags and
description) — the full list has hundreds of entries.
Inputs: limit, search. Returns: object
get_recommended_workflowGet Recommended WorkflowC
Step-by-step workflow (with the tools to call) for building the requested flow.
Inputs: user_request (required). Returns: result
get_root_process_groupGet Root Process GroupB
Root process group id plus a summary of what it contains.
Inputs: no named parameters. Returns: object
get_setup_instructionsGet Setup InstructionsC
Environment variables and a typical build sequence for this MCP server.
Inputs: no named parameters. Returns: result
get_system_diagnosticsGet System DiagnosticsB
NiFi system health: heap, CPU load, uptime and repository utilisation.
Inputs: no named parameters. Returns: object
list_connectionsList ConnectionsB
List connections of a process group with queue depth and relationships.
Inputs: process_group_id. Returns: object
list_input_portsList Input PortsD
Input ports of a process group.
Inputs: process_group_id (required). Returns: object
list_output_portsList Output PortsC
Output ports of a process group.
Inputs: process_group_id (required). Returns: object
list_parameter_contextsList Parameter ContextsA
List parameter contexts with their parameter counts and bound process groups.
Inputs: no named parameters. Returns: object
list_processorsList ProcessorsB
List processors (direct children) of a process group with state and validation.
Inputs: process_group_id. Returns: object
search_flowSearch FlowB
Search processors, connections, groups, ports and services by name/property.
Inputs: query (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 29 tools
Most tools have clearly distinct read targets: process groups vs processors vs connections vs controller services vs parameters. Minor overlap between get_flow_status, get_flow_summary, and get_flow_health_status (all group-level stats), but descriptions differentiate throughput, counts, and health reasonably well. get_processor_state is a lightweight subset of get_processor_details, but that redundancy is intentional and described.
Strong verb_noun pattern throughout (list_processors, get_processor_details, check_connection_queue, find_controller_services_by_type). A few noun-first or doc-style names (get_best_practices_guide, get_jdbc_driver_troubleshooting) are slightly longer but still verb-prefixed and readable. Convention is consistent overall.
29 tools is on the heavy side for what is essentially a read/introspection surface, and several could be consolidated (the three flow_* stats tools, processor_details vs processor_state). Each tool does have a defensible purpose, so it is over-scoped rather than bloated. Borderline heavy but not egregious.
The surface covers discovery, inspection, diagnostics, and guidance well, but despite workflow/recommended-build tools implying flow construction, there are no create/update/delete/start/stop operations exposed here. For a 'pilot' server that advises on building flows, the absence of any mutating lifecycle tools is a notable gap that will dead-end agents at the build step.
Maintenance
Related MCP Connectors
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA production-grade MCP server designed for multi-tenant, authenticated, and observable AI agent systems, enabling secure tool execution across heterogeneous data sources.68MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides agent-powered tools, each using an LLM agent loop to iteratively call FlowMCP schema tools to solve complex problems. It can be mounted as Express middleware and supports A2A protocol for agent-to-agent communication.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to discover and execute tools via a secure MCP server with JWT authentication, RBAC, rate limiting, and audit logging.1MIT
- AlicenseCqualityBmaintenanceAn MCP server offering hybrid memory recall and continuity tools for AI agents. It also provides a governance gateway that pre-approves risky shell/file/git actions before execution.19Apache 2.0