ComfyUI Node

MCP Remote Tool

Define a generic Remote MCP tool for OpenAI-compatible Responses API calls.

By godmt·Created 2 months ago·Updated about a month ago· 2
MCP Remote Tool
    • mcp_tool
    server_labelmcp_server
    server_urlhttps://example.com/mcp
    allowed_tools
    server_description
    headers_json
    query_params_json
    authorization_env
    CategoryLLM/OpenAI Compatible/MCP

    Inputs (7)

    NameTypeDefaultDescription
    server_labelSTRINGmcp_serverShort label for this MCP server. It appears in tool-call traces.
    server_urlSTRINGhttps://example.com/mcpRemote MCP server URL. Supports {{ENV_NAME}} placeholders for flexible URL templates. Prefer headers_json or authorization_env for secrets when the server supports headers.
    allowed_toolsSTRINGOptional allowlist of tool names exposed from this MCP server. Leave empty to expose all server tools.
    server_descriptionoptSTRINGOptional description to help the model understand when to use this MCP server.
    headers_jsonoptSTRINGOptional headers JSON. String values support {{ENV_NAME}} placeholders, e.g. {"Authorization":"Bearer {{MY_TOKEN}}"}.
    query_params_jsonoptSTRINGOptional URL query parameters appended to server_url. String values support {{ENV_NAME}} placeholders. Use only when the server requires query parameters.
    authorization_envoptSTRINGOptional environment variable containing an OAuth/access token. When set, its value is sent as the MCP tool authorization field.

    Outputs (1)

    NameTypeDescription
    mcp_toolMCP_TOOLA single Remote MCP tool definition suitable for the Responses API tools array.