mcp-flowise
mcp-flowise
is a Python package implementing a Model Context Protocol (MCP) server that integrates with the Flowise API. It provides a standardized and flexible way to list chatflows, create predictions, and dynamically register tools for Flowise chatflows or assistants.
It supports two operation modes:
- LowLevel Mode (Default): Dynamically registers tools for all chatflows retrieved from the Flowise API.
- FastMCP Mode: Provides static tools for listing chatflows and creating predictions, suitable for simpler configurations.
Features
- Dynamic Tool Exposure: LowLevel mode dynamically creates tools for each chatflow or assistant.
- Simpler Configuration: FastMCP mode exposes
list_chatflows
andcreate_prediction
tools for minimal setup. - Flexible Filtering: Both modes support filtering chatflows via whitelists and blacklists by IDs or names (regex).
- MCP Integration: Integrates seamlessly into MCP workflows.
Installation
Installing via Smithery
To install mcp-flowise for Claude Desktop automatically via Smithery:
Prerequisites
- Python 3.12 or higher
uvx
package manager
Install and Run via uvx
Confirm you can run the server directly from the GitHub repository using uvx
:
Adding to MCP Ecosystem (mcpServers
Configuration)
You can integrate mcp-flowise
into your MCP ecosystem by adding it to the mcpServers
configuration. Example:
Modes of Operation
1. FastMCP Mode (Simple Mode)
Enabled by setting FLOWISE_SIMPLE_MODE=true
. This mode:
- Exposes two tools:
list_chatflows
andcreate_prediction
. - Allows static configuration using
FLOWISE_CHATFLOW_ID
orFLOWISE_ASSISTANT_ID
. - Lists all available chatflows via
list_chatflows
.
2. LowLevel Mode (FLOWISE_SIMPLE_MODE=False)
Features:
- Dynamically registers all chatflows as separate tools.
- Tools are named after chatflow names (normalized).
- Uses descriptions from the
FLOWISE_CHATFLOW_DESCRIPTIONS
variable, falling back to chatflow names if no description is provided.
Example:
my_tool(question: str) -> str
dynamically created for a chatflow.
Running on Windows with uvx
If you're using uvx
on Windows and encounter issues with --from git+https
, the recommended solution is to clone the repository locally and configure the mcpServers
with the full path to uvx.exe
and the cloned repository. Additionally, include APPDATA
, LOGLEVEL
, and other environment variables as required.
Example Configuration for MCP Ecosystem (mcpServers
on Windows)
Notes
- Full Paths: Use full paths for both
uvx.exe
and the cloned repository. - Environment Variables: Point
APPDATA
to your Windows user profile (e.g.,C:\\Users\\<username>\\AppData\\Roaming
) if needed. - Log Level: Adjust
LOGLEVEL
as needed (ERROR
,INFO
,DEBUG
, etc.).
Environment Variables
General
FLOWISE_API_KEY
: Your Flowise API Bearer token (required).FLOWISE_API_ENDPOINT
: Base URL for Flowise (default:http://localhost:3000
).
LowLevel Mode (Default)
FLOWISE_CHATFLOW_DESCRIPTIONS
: Comma-separated list ofchatflow_id:description
pairs. Example:
FastMCP Mode (FLOWISE_SIMPLE_MODE=true
)
FLOWISE_CHATFLOW_ID
: Single Chatflow ID (optional).FLOWISE_ASSISTANT_ID
: Single Assistant ID (optional).FLOWISE_CHATFLOW_DESCRIPTION
: Optional description for the single tool exposed.
Filtering Chatflows
Filters can be applied in both modes using the following environment variables:
- Whitelist by ID:
FLOWISE_WHITELIST_ID="id1,id2,id3"
- Blacklist by ID:
FLOWISE_BLACKLIST_ID="id4,id5"
- Whitelist by Name (Regex):
FLOWISE_WHITELIST_NAME_REGEX=".*important.*"
- Blacklist by Name (Regex):
FLOWISE_BLACKLIST_NAME_REGEX=".*deprecated.*"
Note: Whitelists take precedence over blacklists. If both are set, the most restrictive rule is applied.
Security
- Protect Your API Key: Ensure the
FLOWISE_API_KEY
is kept secure and not exposed in logs or repositories. - Environment Configuration: Use
.env
files or environment variables for sensitive configurations.
Add .env
to your .gitignore
:
Troubleshooting
- Missing API Key: Ensure
FLOWISE_API_KEY
is set correctly. - Invalid Configuration: If both
FLOWISE_CHATFLOW_ID
andFLOWISE_ASSISTANT_ID
are set, the server will refuse to start. - Connection Errors: Verify
FLOWISE_API_ENDPOINT
is reachable.
License
This project is licensed under the MIT License. See the LICENSE file for details.
TODO
- Fastmcp mode
- Lowlevel mode
- Filtering
- Claude desktop integration
- Assistants
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
The Flowise MCP Server enables clients to list chatflows and call predictions, integrating seamlessly with DIY Flowise or Flowise Cloud accounts. It provides a simple interface for executing chatflows/assistants predictions with existing Flowise configurations.
- Features
- Installation
- Modes of Operation
- Running on Windows with uvx
- Environment Variables
- Filtering Chatflows
- Security
- Troubleshooting
- License
- TODO
Related Resources
Related MCP Servers
- -securityFlicense-qualityAn MCP server that enables communication with users through Telegram. This server provides a tool to ask questions to users and receive their responses via a Telegram bot.Last updated -116JavaScript
- -securityAlicense-qualityA server for the Machine Chat Protocol (MCP) that provides a YAML-based configuration system for LLM applications, allowing users to define resources, tools, and prompts without writing code.Last updated -5PythonMIT License
- AsecurityAlicenseAqualityAn MCP server that enables saving and sharing Claude Desktop conversations, allowing users to store chats privately or make them public through a web interface.Last updated -26TypeScriptMIT License
- -securityFlicense-qualityA server that wraps the code2flow command-line tool as an MCP service, allowing AI applications to generate and access code call graphs through a standardized protocol.Last updated -Python