Nodes/OpenAI Compatible LLM/MCP Local Command Tool
ComfyUI Node

MCP Local Command Tool

Define a local stdio MCP server command such as npx, uvx, or python. The OpenAI Compatible LLM node runs it as function tools.

By godmt·Created 2 months ago·Updated about a month ago· 2
MCP Local Command Tool
    • mcp_tool
    server_labellocal
    commanduvx
    args_json[]
    allowed_tools
    env_json{}
    startup_timeout_sec15
    tool_timeout_sec60
    CategoryLLM/OpenAI Compatible/MCP

    Inputs (7)

    NameTypeDefaultDescription
    server_labelSTRINGlocalShort stable label used to prefix exposed tool names, e.g. time__get_current_time.
    commandSTRINGuvxCommand to launch the stdio MCP server, such as npx, uvx, python, or an absolute executable path.
    args_jsonSTRING[]JSON array of command arguments. Example: ["mcp-server-time", "--local-timezone=Asia/Tokyo"].
    allowed_toolsSTRINGOptional allowlist of MCP tool names. Leave empty to expose all tools from this local MCP server. You may use original names or exposed server_label__tool names.
    env_jsonoptSTRING{}Extra environment variables for the MCP process as a JSON object. Values are strings.
    startup_timeout_secoptINT151–300Timeout for launching and initializing the MCP server.
    tool_timeout_secoptINT601–1800Timeout for each MCP tool call.

    Outputs (1)

    NameTypeDescription
    mcp_toolMCP_TOOLA local stdio MCP server definition. The LLM node starts it only during execution and then terminates it.