{ "name": "3.5.1 MCP", "nodes": [ { "parameters": {}, "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [0, 0], "id": "dee876fe-8bca-42c0-9f28-227345df1270", "name": "When clicking ‘Execute workflow’" }, { "parameters": { "jsCode": "return {\n \"chatInput\": \"What is price of MSFT?\"\n}" }, "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [220, 0], "id": "674360c5-6c52-4bf0-888b-04c4e0a747eb", "name": "Code" }, { "parameters": { "options": {} }, "type": "@n8n/n8n-nodes-langchain.agent", "typeVersion": 2, "position": [440, 0], "id": "4752c4b9-70e3-4bec-af80-dcef0ed790bc", "name": "AI Agent" }, { "parameters": { "model": "mistral:latest", "options": {} }, "type": "@n8n/n8n-nodes-langchain.lmChatOllama", "typeVersion": 1, "position": [400, 220], "id": "4b649526-3548-4470-bcff-9cf305001981", "name": "Ollama Chat Model", "credentials": { "ollamaApi": { "id": "BYI7XqprNPPEtr2t", "name": "Ollama account" } } }, { "parameters": { "sseEndpoint": "http://host.docker.internal:8001/sse" }, "type": "@n8n/n8n-nodes-langchain.mcpClientTool", "typeVersion": 1, "position": [620, 220], "id": "18ddb41d-bfea-48ba-a17d-ed39173ca5f4", "name": "MCP Client" } ], "pinData": {}, "connections": { "When clicking ‘Execute workflow’": { "main": [ [ { "node": "Code", "type": "main", "index": 0 } ] ] }, "Code": { "main": [ [ { "node": "AI Agent", "type": "main", "index": 0 } ] ] }, "Ollama Chat Model": { "ai_languageModel": [ [ { "node": "AI Agent", "type": "ai_languageModel", "index": 0 } ] ] }, "MCP Client": { "ai_tool": [ [ { "node": "AI Agent", "type": "ai_tool", "index": 0 } ] ] } }, "active": false, "settings": { "executionOrder": "v1" }, "versionId": "31adc0aa-f48a-43f4-8836-5165ed162945", "meta": { "templateCredsSetupCompleted": true, "instanceId": "920cb5ca3de38fa2a2a1592b0c40fadea77e9a36b95dca7b272578056d96629c" }, "id": "J092L3eeZuDbc1x7", "tags": [] }