Flowise Integration
STDIOMCP server implementing Flowise API integration for chatflows and predictions.
MCP server implementing Flowise API integration for chatflows and predictions.
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:
list_chatflows
and create_prediction
tools for minimal setup.To install mcp-flowise for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @matthewhand/mcp-flowise --client claude
uvx
package manageruvx
Confirm you can run the server directly from the GitHub repository using uvx
:
uvx --from git+https://github.com/matthewhand/mcp-flowise mcp-flowise
mcpServers
Configuration)You can integrate mcp-flowise
into your MCP ecosystem by adding it to the mcpServers
configuration. Example:
{ "mcpServers": { "mcp-flowise": { "command": "uvx", "args": [ "--from", "git+https://github.com/matthewhand/mcp-flowise", "mcp-flowise" ], "env": { "FLOWISE_API_KEY": "${FLOWISE_API_KEY}", "FLOWISE_API_ENDPOINT": "${FLOWISE_API_ENDPOINT}" } } } }
Enabled by setting FLOWISE_SIMPLE_MODE=true
. This mode:
list_chatflows
and create_prediction
.FLOWISE_CHATFLOW_ID
or FLOWISE_ASSISTANT_ID
.list_chatflows
.
Features:
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.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.
mcpServers
on Windows){ "mcpServers": { "flowise": { "command": "C:\\Users\\matth\\.local\\bin\\uvx.exe", "args": [ "--from", "C:\\Users\\matth\\downloads\\mcp-flowise", "mcp-flowise" ], "env": { "LOGLEVEL": "ERROR", "APPDATA": "C:\\Users\\matth\\AppData\\Roaming", "FLOWISE_API_KEY": "your-api-key-goes-here", "FLOWISE_API_ENDPOINT": "http://localhost:3000/" } } } }
uvx.exe
and the cloned repository.APPDATA
to your Windows user profile (e.g., C:\\Users\\<username>\\AppData\\Roaming
) if needed.LOGLEVEL
as needed (ERROR
, INFO
, DEBUG
, etc.).FLOWISE_API_KEY
: Your Flowise API Bearer token (required).FLOWISE_API_ENDPOINT
: Base URL for Flowise (default: http://localhost:3000
).FLOWISE_CHATFLOW_DESCRIPTIONS
: Comma-separated list of chatflow_id:description
pairs. Example:
FLOWISE_CHATFLOW_DESCRIPTIONS="abc123:Chatflow One,xyz789:Chatflow Two"
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.Filters can be applied in both modes using the following environment variables:
FLOWISE_WHITELIST_ID="id1,id2,id3"
FLOWISE_BLACKLIST_ID="id4,id5"
FLOWISE_WHITELIST_NAME_REGEX=".*important.*"
FLOWISE_BLACKLIST_NAME_REGEX=".*deprecated.*"
Note: Whitelists take precedence over blacklists. If both are set, the most restrictive rule is applied.
FLOWISE_API_KEY
is kept secure and not exposed in logs or repositories..env
files or environment variables for sensitive configurations.Add .env
to your .gitignore
:
# .gitignore .env
FLOWISE_API_KEY
is set correctly.FLOWISE_CHATFLOW_ID
and FLOWISE_ASSISTANT_ID
are set, the server will refuse to start.FLOWISE_API_ENDPOINT
is reachable.This project is licensed under the MIT License. See the LICENSE file for details.