Skip to main content
Glama

mcp-flowise

by matthewhand
""" Entry point for the mcp_flowise package. This script determines which server to run based on the presence of the FLOWISE_SIMPLE_MODE environment variable: - Low-Level Server: For dynamic tool creation based on chatflows. - FastMCP Server: For static tool configurations. """ import os import sys from dotenv import load_dotenv from mcp_flowise.utils import setup_logging from mcp_flowise.utils import fetch_chatflows # Load environment variables from .env if present load_dotenv() def main(): """ Main entry point for the mcp_flowise package. Depending on the FLOWISE_SIMPLE_MODE environment variable, this function launches either: - Low-Level Server (dynamic tools) - FastMCP Server (static tools) """ # Configure logging DEBUG = os.getenv("DEBUG", "").lower() in ("true", "1", "yes") logger = setup_logging(debug=DEBUG) logger.debug("Starting mcp_flowise package entry point.") chatflows = fetch_chatflows() logger.debug(f"Available chatflows: {chatflows}") # Default to Simple Mode unless explicitly disabled FLOWISE_SIMPLE_MODE = os.getenv("FLOWISE_SIMPLE_MODE", "true").lower() not in ("false", "0", "no") if FLOWISE_SIMPLE_MODE: logger.debug("FLOWISE_SIMPLE_MODE is enabled. Launching FastMCP Server.") from mcp_flowise.server_fastmcp import run_simple_server selected_server = run_simple_server else: logger.debug("FLOWISE_SIMPLE_MODE is disabled. Launching Low-Level Server.") from mcp_flowise.server_lowlevel import run_server selected_server = run_server # Run the selected server try: selected_server() except Exception as e: logger.critical("Unhandled exception occurred while running the server.", exc_info=True) sys.exit(1) if __name__ == "__main__": main()

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/matthewhand/mcp-flowise'

If you have feedback or need assistance with the MCP directory API, please join our Discord server