Flowise MCP Server
A Model Context Protocol server that enables LLM tools to create, manage, and run Flowise chatflows and agentflows programmatically.
README
Flowise MCP Server
A Model Context Protocol (MCP) server that provides programmatic integration with Flowise AI workflow platform. This enables LLM-based tools like Claude Code to create, manage, and run Flowise chatflows and agentflows.
Features
- Run Predictions: Execute chatflows with questions, conversation history, file uploads, or lead capture
- Manage Chatflows: Create, update, delete, and list chatflows programmatically
- Node Discovery: List all available nodes and get detailed specifications for building flows
- Full Flow Types: Supports CHATFLOW, AGENTFLOW, MULTIAGENT, and ASSISTANT types
Prerequisites
Installation
# Clone the repository
git clone https://github.com/wksbx/flowise-mcp-server.git
cd flowise-mcp-server
# Install dependencies
pnpm install
# Build the project
pnpm build
Configuration
- Copy the example environment file:
cp .env.example .env
- Edit
.envwith your Flowise settings:
FLOWISE_BASE_URL=http://localhost:3000
FLOWISE_API_KEY=your-api-key-here
FLOWISE_BASE_URL: URL where your Flowise instance is runningFLOWISE_API_KEY: API key from Flowise (Settings > API Keys)
Usage
Running Directly
pnpm start
Running with Docker
# Build the Docker image
pnpm docker:build
# Run the container
pnpm docker:run
Configuring with MCP Clients
Add to your MCP client configuration (e.g., Claude Desktop, Claude Code):
Using Node directly:
{
"mcpServers": {
"flowise": {
"command": "node",
"args": ["/path/to/flowise-mcp-server/dist/index.js"],
"env": {
"FLOWISE_BASE_URL": "http://localhost:3000",
"FLOWISE_API_KEY": "your-api-key-here"
}
}
}
}
Using Docker:
{
"mcpServers": {
"flowise": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"--add-host=host.docker.internal:host-gateway",
"--env-file", "/path/to/your/.env",
"flowise-mcp-server"
]
}
}
}
Available Tools
Prediction Tools
| Tool | Description |
|---|---|
create_prediction |
Run a chatflow with a question |
create_prediction_with_history |
Run with conversation history for context |
create_prediction_with_files |
Run with file attachments (images, documents) |
create_prediction_with_lead |
Run and capture lead email |
Chatflow Management
| Tool | Description |
|---|---|
list_chatflows |
List all available chatflows |
get_chatflow |
Get a specific chatflow's configuration |
create_chatflow |
Create a new chatflow |
update_chatflow |
Update an existing chatflow |
delete_chatflow |
Delete a chatflow (irreversible) |
Node Discovery
| Tool | Description |
|---|---|
list_nodes |
List all available node types |
get_nodes_by_category |
Get nodes filtered by category |
get_node |
Get detailed spec for a specific node type |
Examples
Running a Chatflow
Use create_prediction with:
- chatflowId: "abc123"
- question: "What is the weather today?"
Creating a Simple Chatflow
1. Use get_node to fetch specs for needed nodes (e.g., "chatOpenAI", "llmChain")
2. Use create_chatflow with:
- name: "My Chatflow"
- flowData: { nodes: [...], edges: [...] }
- type: "CHATFLOW"
Development
# Build TypeScript
pnpm build
# Run in development mode (build + run)
pnpm dev
Testing
The project includes comprehensive unit tests using Vitest.
# Run tests once
pnpm test
# Run tests in watch mode
pnpm test:watch
# Run tests with coverage report
pnpm test:coverage
Test Structure
src/
├── flowise-api.test.ts # API client tests (8 tests)
└── handlers.test.ts # Tool handler tests (26 tests)
Project Structure
flowise-mcp-server/
├── src/
│ ├── index.ts # MCP server entry point
│ ├── flowise-api.ts # Flowise API client
│ ├── handlers.ts # Tool handler functions
│ └── *.test.ts # Unit tests
├── dist/ # Compiled JavaScript (generated)
├── package.json
├── tsconfig.json
├── vitest.config.ts # Test configuration
├── Dockerfile
├── .env.example # Environment template
└── mcp-config.example.json
Troubleshooting
Connection Issues
- Ensure Flowise is running and accessible at the configured URL
- When using Docker, use
host.docker.internalto connect to Flowise on the host machine - Verify your API key is correct in Flowise settings
Authentication Errors
- Check that your
FLOWISE_API_KEYmatches one configured in Flowise - API keys can be created in Flowise under Settings > API Keys
License
MIT - see LICENSE
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Related Projects
- Flowise - Drag & drop UI to build LLM flows
- Model Context Protocol - Open protocol for LLM tool integration
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。