{
  "name": "MCP Server",
  "nodes": [
    {
      "parameters": {
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "typeVersion": 1.4,
      "position": [
        -128,
        -48
      ],
      "id": "abca9051-fdfa-4940-8512-82c7d444a5a9",
      "name": "When chat message received"
    },
    {
      "parameters": {
        "options": {
          "systemMessage": "You are a helpful assistant\n\n-Utilize Firecrawl to scrape websites\n\nStart by listing the available tools (listTools), then execute the appropriate tool (executeTool) when you are ready.",
          "maxIterations": 3
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 3,
      "position": [
        96,
        -48
      ],
      "id": "4ea7e24a-8027-496d-8fd3-0e712b7f8ee9",
      "name": "AI Agent"
    },
    {
      "parameters": {},
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "typeVersion": 1.3,
      "position": [
        128,
        160
      ],
      "id": "2170c139-7e34-45c0-bf74-9451db27022b",
      "name": "Simple Memory"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "value": "openai/gpt-oss-20b",
          "mode": "list",
          "cachedResultName": "openai/gpt-oss-20b"
        },
        "responsesApiEnabled": false,
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.3,
      "position": [
        0,
        112
      ],
      "id": "10d7ade1-d9d2-44b6-a2eb-082fde5c7195",
      "name": "DeepSeek Chat Model",
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {},
      "type": "n8n-nodes-mcp.mcpClientTool",
      "typeVersion": 1,
      "position": [
        432,
        144
      ],
      "id": "ee3cafa7-5818-4783-82ca-5bc1d45b659c",
      "name": "Firecrawl List Tools",
      "credentials": {
        "mcpClientApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "operation": "executeTool",
        "toolName": "firecrawl_scrape",
        "toolParameters": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Tool_Parameters', `Use this tool whenever the user asks anything that requires loading or reading a web page or URL. Always call it at least once before answering.`, 'json') }}"
      },
      "type": "n8n-nodes-mcp.mcpClientTool",
      "typeVersion": 1,
      "position": [
        256,
        160
      ],
      "id": "f242ff75-850e-46e6-8d0b-520dffdd55d4",
      "name": "MCP Client",
      "credentials": {
        "mcpClientApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "DeepSeek Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Firecrawl List Tools": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "MCP Client": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "cb0ff0c0-caee-4eb3-81d9-2f540e919bc8",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "dKJhzjRPxh3Zy7Rh",
  "tags": []
}