> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.ai.mcptools.MCPGateway

- Component: `appmixer.ai.mcptools.MCPGateway`
- Kind: Trigger
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.ai.mcptools 1.1.0](https://connectors.appmixer.com/connector/appmixer.ai.mcptools/1.1.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.ai.mcptools/1.1.0/component/appmixer.ai.mcptools.MCPGateway>

Expose action components and MCP servers as tools of the MCP Server that you can install into your LLM clients such as Claude. Connect the components you want to expose to the 'tool' output port and mark the fields the model should fill with the 'Model Defined Parameter' variable.

## Properties

| Field | Type | Description |
| --- | --- | --- |
| Tool descriptions (`toolDescriptions`) | expression | What each tool is for, in the words the model reads when it picks a tool. Add a row per tool: 'Tool' is the label of a component on the 'tool' port (or the name of an MCP server's tool), 'Description' says when to use it and what it returns. A tool without a row is described by its label and what the component does. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Webhook URL (`webhook`) | string | - |
| Component ID (`componentId`) | string | - |
| Flow ID (`flowId`) | string | - |
| Tools (`tools`) | array | - |

### Port `tool`

| Field | Type | Description |
| --- | --- | --- |
| Model Defined Parameter (`modelDefinedParameter`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.ai.mcptools.MCPGateway",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Expose action components and MCP servers as tools of the MCP Server that you can install into your LLM clients such as Claude. Connect the components you want to expose to the 'tool' output port and mark the fields the model should fill with the 'Model Defined Parameter' variable.",
  "webhook": true,
  "properties": {
    "schema": {
      "type": "object",
      "properties": {
        "toolDescriptions": {
          "type": "object"
        }
      }
    },
    "inspector": {
      "inputs": {
        "toolDescriptions": {
          "type": "expression",
          "levels": [
            "ADD"
          ],
          "label": "Tool descriptions",
          "tooltip": "What each tool is for, in the words the model reads when it picks a tool. Add a row per tool: 'Tool' is the label of a component on the 'tool' port (or the name of an MCP server's tool), 'Description' says when to use it and what it returns. A tool without a row is described by its label and what the component does.",
          "index": 1,
          "fields": {
            "tool": {
              "type": "text",
              "label": "Tool",
              "tooltip": "The label of the component on the 'tool' port, e.g. 'Save lead'.",
              "index": 1
            },
            "description": {
              "type": "textarea",
              "label": "Description",
              "tooltip": "E.g. 'Saves a sales lead. key: the company domain. value: JSON with company, web and stage.'",
              "index": 2
            }
          }
        }
      }
    }
  },
  "outPorts": [
    {
      "name": "out",
      "schema": {
        "type": "object",
        "properties": {
          "webhook": {
            "type": "string",
            "title": "Webhook URL",
            "example": "https://api.appmixer.com/flows/a1b2c3d4-e5f6-7890-abcd-ef1234567890/components/f0e9d8c7-b6a5-4321-9876-543210fedcba"
          },
          "componentId": {
            "type": "string",
            "title": "Component ID",
            "example": "f0e9d8c7-b6a5-4321-9876-543210fedcba"
          },
          "flowId": {
            "type": "string",
            "title": "Flow ID",
            "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
          },
          "tools": {
            "type": "array",
            "title": "Tools",
            "example": [
              {
                "type": "function",
                "function": {
                  "name": "2oRMgurHVxbLEUavJPTjmE_SendEmail",
                  "description": "Send an email message."
                }
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "title": "Tools.Type",
                  "example": "function"
                },
                "function": {
                  "type": "object",
                  "title": "Tools.Function",
                  "properties": {
                    "name": {
                      "type": "string",
                      "title": "Function.Name",
                      "example": "2oRMgurHVxbLEUavJPTjmE_SendEmail"
                    },
                    "description": {
                      "type": "string",
                      "title": "Function.Description",
                      "example": "Send an email message."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    {
      "name": "tool",
      "options": [
        {
          "label": "Model Defined Parameter",
          "value": "modelDefinedParameter",
          "schema": {
            "type": "string",
            "example": "Paris"
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
