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.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| server_label | STRING | local | Short stable label used to prefix exposed tool names, e.g. time__get_current_time. |
| command | STRING | uvx | Command to launch the stdio MCP server, such as npx, uvx, python, or an absolute executable path. |
| args_json | STRING | [] | JSON array of command arguments. Example: ["mcp-server-time", "--local-timezone=Asia/Tokyo"]. |
| allowed_tools | STRING | Optional 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_jsonopt | STRING | {} | Extra environment variables for the MCP process as a JSON object. Values are strings. |
| startup_timeout_secopt | INT | 151–300 | Timeout for launching and initializing the MCP server. |
| tool_timeout_secopt | INT | 601–1800 | Timeout for each MCP tool call. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| mcp_tool | MCP_TOOL | A local stdio MCP server definition. The LLM node starts it only during execution and then terminates it. |