ComfyUI Node
MCP Remote Tool
Define a generic Remote MCP tool for OpenAI-compatible Responses API calls.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| server_label | STRING | mcp_server | Short label for this MCP server. It appears in tool-call traces. |
| server_url | STRING | https://example.com/mcp | Remote 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_tools | STRING | Optional allowlist of tool names exposed from this MCP server. Leave empty to expose all server tools. | |
| server_descriptionopt | STRING | Optional description to help the model understand when to use this MCP server. | |
| headers_jsonopt | STRING | Optional headers JSON. String values support {{ENV_NAME}} placeholders, e.g. {"Authorization":"Bearer {{MY_TOKEN}}"}. | |
| query_params_jsonopt | STRING | Optional URL query parameters appended to server_url. String values support {{ENV_NAME}} placeholders. Use only when the server requires query parameters. | |
| authorization_envopt | STRING | Optional environment variable containing an OAuth/access token. When set, its value is sent as the MCP tool authorization field. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| mcp_tool | MCP_TOOL | A single Remote MCP tool definition suitable for the Responses API tools array. |