{
  "name": "Use-Workflow-as-MCP",
  "nodes": [
    {
      "parameters": {
        "workflowInputs": {
          "values": [
            {}
          ]
        }
      },
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "typeVersion": 1.1,
      "position": [
        0,
        0
      ],
      "id": "7f7f3914-44b8-4f3b-9f79-a67cbe5b43ee",
      "name": "When Executed by Another Workflow"
    },
    {
      "parameters": {
        "authentication": "bearerAuth",
        "path": "783385c9-7a33-4c70-868c-a1a7942a9d68"
      },
      "type": "@n8n/n8n-nodes-langchain.mcpTrigger",
      "typeVersion": 2,
      "position": [
        32,
        192
      ],
      "id": "12f06702-c056-41c5-b91c-0d5bea7349f7",
      "name": "MCP Server Trigger",
      "credentials": {
        "httpBearerAuth": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "description": "\u9019\u662f\u4e00\u500bNotion\u9801\u9762\u5efa\u7acb\u7684\u5de5\u5177\uff0c\u8f38\u5165\u7684\u8cc7\u6599Inputt\uff0c\u5c07\u6703\u8b8a\u6210\u6a19\u984c\u3002",
        "workflowId": {
          "__rl": true,
          "value": "419TR8BS6W5pwilF",
          "mode": "list",
          "cachedResultName": "Use-Workflow-as-MCP"
        },
        "workflowInputs": {
          "mappingMode": "defineBelow",
          "value": {
            "Inputt": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Inputt', ``, 'string') }}"
          },
          "matchingColumns": [
            "input"
          ],
          "schema": [
            {
              "id": "Inputt",
              "displayName": "Inputt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "canBeUsedToMatch": true,
              "type": "string",
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        }
      },
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "typeVersion": 2.2,
      "position": [
        104,
        416
      ],
      "id": "fd2f2c43-577b-4be6-861c-6e99c200f12d",
      "name": "Call n8n Workflow Tool"
    },
    {
      "parameters": {
        "resource": "databasePage",
        "databaseId": {
          "__rl": true,
          "value": "19028941-8b6a-800b-9c9b-da43e9264996",
          "mode": "list",
          "cachedResultName": "\u90e8\u843d\u683c",
          "cachedResultUrl": "https://www.notion.so/190289418b6a800b9c9bda43e9264996"
        },
        "title": "={{ $json.Inputtt }}",
        "options": {}
      },
      "type": "n8n-nodes-base.notion",
      "typeVersion": 2.2,
      "position": [
        208,
        0
      ],
      "id": "cad01962-3e3d-488c-b7ee-ca646e0224ba",
      "name": "Create a database page",
      "credentials": {
        "notionApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Create a database page",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Call n8n Workflow Tool": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "98da4dcf-7d3b-405b-9f16-e3514bec0eb6",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "419TR8BS6W5pwilF",
  "tags": []
}