AI agents that control Apache NiFi via natural language using the NiFiPilot MCP server.
NiFiPilot Agents is an orchestration layer that lets any AI model control Apache NiFi flows via the NiFiPilot MCP server.
- Provider-agnostic — works with Claude, GPT-4, Gemini, Llama, DeepSeek and any LiteLLM-compatible model
- Multi-agent — specialized sub-agents for monitoring, building and operations
- Skill-based — agents follow the NiFiPilot Agent Skill for safe, consistent behavior
- Free to develop — use Ollama locally with no API costs
User request
↓
NiFi Supervisor Agent (orchestrator)
↓
┌────────────────────────────────────┐
│ Monitor Agent │ Builder Agent │
│ (read-only) │ (creates flows) │
├────────────────────────────────────┤
│ Ops Agent │
│ (start/stop/control) │
└────────────────────────────────────┘
↓
NiFiPilot MCP Server (pip install nifipilot)
↓
Apache NiFi 2.x REST API
pip install nifipilotStart the MCP server (or use Docker Compose from the NiFiPilot repo):
NIFI_URL=https://localhost:8443 \
NIFI_USERNAME=admin \
NIFI_PASSWORD=your-password \
MCP_MODE=full \
nifi-mcpgit clone https://github.com/Giojacke/nifipilot-agents
cd nifipilot-agents
pip install -e .cp .env.example .envEdit .env and choose your provider:
# Option A — Anthropic Claude (recommended)
LITELLM_MODEL=claude-sonnet-4-6
ANTHROPIC_API_KEY=your-key
# Option B — OpenAI
# LITELLM_MODEL=gpt-4o
# OPENAI_API_KEY=your-key
# Option C — Ollama (free, local, no API key needed)
# LITELLM_MODEL=ollama/llama3.2python agents/sub_agents/monitor_agent.pyRead-only agent specialized in NiFi health checks and diagnostics.
python agents/sub_agents/monitor_agent.pyCapabilities:
- System health check (heap, CPU, uptime)
- Flow status inspection
- Queue depth monitoring
- Issue detection and reporting
Creates NiFi flows from natural language descriptions.
Controls start/stop/control operations on NiFi flows.
Orchestrates sub-agents for complex multi-step tasks.
| Provider | Model example | Cost |
|---|---|---|
| Anthropic | claude-sonnet-4-6 | ~$3/M tokens |
| Anthropic | claude-haiku-4-5 | ~$0.25/M tokens |
| OpenAI | gpt-4o | ~$5/M tokens |
| gemini/gemini-pro | Free tier available | |
| Ollama | ollama/llama3.2 | Free (local) |
| DeepSeek | deepseek/deepseek-chat | ~$0.14/M tokens |
The skills/nifipilot-agent.md file contains the instruction set that guides agents to use NiFiPilot tools safely.
To use it with any AI:
Claude Code:
Read skills/nifipilot-agent.md and use it as your instruction set.
Then check the current state of NiFi.
VS Code / Cursor:
Pin skills/nifipilot-agent.md to the chat context before starting a NiFi session.
For development, use Ollama (free):
# Install Ollama: https://ollama.com/download
ollama pull llama3.2
# In .env:
LITELLM_MODEL=ollama/llama3.2For production, set a spending limit:
- Anthropic: https://console.anthropic.com/settings/limits
- OpenAI: https://platform.openai.com/settings/organization/limits
- Python 3.11+
- NiFiPilot MCP server running (
pip install nifipilot) - Apache NiFi 2.x instance
- One of: Anthropic API key, OpenAI API key, or Ollama installed
- NiFiPilot MCP Server — the MCP server this agent uses
- NiFiPilot on PyPI —
pip install nifipilot - NiFiPilot VS Code Extension
MIT
Built by CodHector 🤙
