
ms82119/nifimcp 是从 https://github.com/ms82119/nifimcp. 导入的 MCP 服务器候选
概览
ms82119/nifimcp 是从 https://github.com/ms82119/nifimcp. 导入的 MCP 服务器候选
概述(AI 翻译)
NiFi MCP(模型上下文协议)
该仓库包含 NiFi MCP 项目。它可以通过两种方式使用,分别是:
- 作为一个普通的MCP服务器,Cursor AI、Claude Code、Antigravity等工具可以通过stdio连接
- 或者,内置(包含在本仓库中的)聊天机器人,你可以从浏览器连接。
无论哪种方式,都能让你用自然语言与Apache NiFi实例交互。目前大约有30个工具可用,涵盖构建、更新、运行、调试和文档化Nifi流程。这已经在Nifi 1.23和1.28版本中测试过,但只要Nifi REST API保持一致,应该能在2.x等其他版本上运行。
内置聊天机器人要求你提供自己的LLM API密钥,更好的模型能带来更好的结果,选择更高的令牌上下文也有帮助。不过我发现用光标AI在自动模式下能带来最佳的性能和效果。结果证明,这个界面比我自己用的聊天机器人要好得多。所以我只推荐如果你没有其他选择,才会用内置聊天机器人。
示例对话(使用内置聊天机器人)
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
NiFi MCP (Model Context Protocol)
This repository contains the NiFi MCP project. It can be used in two ways, either:
- As a plain MCP Server that tools like Cursor AI, Claude Code, Antigravity etc. can connect to via stdio
- Or, with a built-in (contained in this repo) chat bot that you can connect to from your browser.
Either approach allows you to interact with Apache NiFi instances using natural language. There are currently around 30 tools available, covering building, updating, running, debugging, and documenting nifi flows. This has been tested with Nifi versions 1.23 and 1.28, but should work on other versions like 2.x assuming the Nifi REST Api stays consistent.
The built-in chat bot requires you to supply your own LLM API keys, better models give better results and selecting higher token context can help too. I have however found that using Cursor AI in Auto mode gives the best performance and results. It turned out to be a much better interface than I could build with my own chat bot. So I only recommend the built-in chat bot if you have no other options.
Example Conversations (Using built-in chat bot)
- Build A New Flow From A Spec - See how the system creates a complete NiFi flow from requirements
- Debug An Existing Flow - Watch the system diagnose and fix issues in an existing flow
Recent Updates
Version 2.0 - Major UI Overhaul
- Added direct MCP server support for IDE’s like Cursor AI (best option)
- Enhanced the built in chatbot
- Migrated from Streamlit to FastAPI/JavaScript client for improved performance and user experience
- Enhanced real-time WebSocket communication for better workflow status updates
- Improved message handling and duplicate message prevention
- Modern, responsive UI with better accessibility and mobile support
- Added a new workflow “Flow Documentation” to help generate better documentation about a flow
For the latest updates and release notes, see the GitHub Releases page.
Setup Instructions
Note: These instructions should also be followed after pulling a new version as there may be new package requirements.
Common Setup Steps (All Versions)
-
Clone the Repository:
git clone [email protected]:ms82119/NiFiMCP.git cd NiFiMCP -
Set Up a Virtual Environment: It’s recommended to use a virtual environment to manage dependencies. You can create one using
venv:python3 -m venv .venv -
Activate the Virtual Environment:
- On macOS and Linux:
source .venv/bin/activate - On Windows:
.venv\Scripts\activate
- On macOS and Linux:
-
Install Dependencies: Use
uvto install dependencies based onpyproject.tomlanduv.lock:uv sync
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →