{"name":"Chat with the French and European company registers (MCP) (Sirenic)","nodes":[{"parameters":{"content":"## Chat with the French and European company registers (MCP)\n\nConnect an n8n AI Agent to the Sirenic MCP server and ask questions in plain language: find a company, read its accounts, screen a name, check a VAT number. 110 tools, native n8n nodes only, so it runs on n8n Cloud. Discovery is free; each data call is billed at its own price.\n\n### Who's it for\n\nAnyone who would rather ask a question than wire a workflow.\n\n### How it works\n\n- An AI agent calls the Sirenic MCP server, which exposes the whole catalogue as tools.\n\n### How to set up\n\n1. Create an API key at https://api.sirenic.eu/compte?utm_source=n8n&utm_campaign=w12-mcp-agent (e-mail + magic link).\n2. On the **MCP Client Tool** node, keep the endpoint `https://api.sirenic.eu/mcp/connecteur` (transport **HTTP Streamable**) and select a **Header Auth** credential: name `X-Api-Key`, value `srn_live_…`.\n3. Connect your own chat-model credentials to the AI Agent.\n\n### Requirements\n\n- n8n 1.105 or later for the MCP Client Tool (on 1.104, a tool error makes the agent fail). Native nodes only, so this runs on n8n Cloud.\n- Chat-model credentials of your choice, plus a Sirenic API key. An error is never billed.\n\n### How to customize\n\nSwap the chat model, or restrict the tool list to the routes your team is allowed to buy.\n\nWhen a Sirenic tool read an official register, the last node adds a dated source line with a link to Sirenic under the answer; a greeting, a question back or a refused call is never signed. The source line can be edited or removed.\n\n_Official sources: INSEE Sirene, INPI RNE, BODACC, DECP and the official sanctions lists._\n_Sirenic is not an accredited e-invoicing platform, and a sanctions match is never an automated decision._","height":620,"width":420},"id":"overview","name":"Overview","type":"n8n-nodes-base.stickyNote","typeVersion":1,"position":[-500,-200]},{"parameters":{"options":{}},"id":"ask-the-registry-agent","name":"Ask the registry agent","type":"@n8n/n8n-nodes-langchain.chatTrigger","typeVersion":1.1,"position":[0,0],"webhookId":"e95f2147-deae-41f9-aea9-5754b1b09d65"},{"parameters":{"options":{"systemMessage":"You are a company-intelligence assistant for French and European companies, powered by Sirenic: official registry data, filed accounts, legal notices, sanctions screening and public contracts. Always state the source and the date the tool returned. Never invent a SIREN or a figure. When a tool reports an absence, say whether it is a measured absence or an inconclusive one.","returnIntermediateSteps":true}},"id":"french-registry-agent","name":"French registry agent","type":"@n8n/n8n-nodes-langchain.agent","typeVersion":1.7,"position":[260,0]},{"parameters":{"model":{"__rl":true,"mode":"list","value":"gpt-4o-mini"},"options":{}},"id":"chat-model","name":"Chat model","type":"@n8n/n8n-nodes-langchain.lmChatOpenAi","typeVersion":1.2,"position":[140,240]},{"parameters":{"sessionIdType":"fromInput","contextWindowLength":10},"id":"conversation-memory","name":"Conversation memory","type":"@n8n/n8n-nodes-langchain.memoryBufferWindow","typeVersion":1.3,"position":[320,240]},{"parameters":{"endpointUrl":"https://api.sirenic.eu/mcp/connecteur","serverTransport":"httpStreamable","authentication":"headerAuth","include":"all","options":{}},"id":"sirenic-mcp-110-tools-","name":"Sirenic MCP (110 tools)","type":"@n8n/n8n-nodes-langchain.mcpClientTool","typeVersion":1.1,"position":[500,240]},{"parameters":{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"loose","version":2},"conditions":[{"id":"c1","leftValue":"={{ ($json.intermediateSteps || []).some((s) => typeof s.observation === 'string' && ((s.observation.startsWith('{\"payment_required\":false,\"resultat\":') && !s.observation.startsWith('{\"payment_required\":false,\"resultat\":{\"statut_http\":') && s.observation.includes('\"provenance\":')) || (s.observation.startsWith('[{\"type\":\"text\"') && !s.observation.includes('payment_required') && s.observation.includes('\\\\\"provenance\\\\\":')))) }}","rightValue":"","operator":{"type":"boolean","operation":"true","singleValue":true}}],"combinator":"and"},"looseTypeValidation":true,"options":{}},"id":"did-a-sirenic-tool-read-a-register-","name":"Did a Sirenic tool read a register?","type":"n8n-nodes-base.if","typeVersion":2.2,"position":[560,0]},{"parameters":{"assignments":{"assignments":[{"id":"answer-with-source","name":"output","value":"={{ $json.output }}\n\nCompany data from official registers via Sirenic on {{ $now.toFormat('yyyy-MM-dd') }}: https://api.sirenic.eu/en?utm_source=template&utm_campaign=w12","type":"string"}]},"options":{}},"id":"add-the-source-line-to-the-answer","name":"Add the source line to the answer","type":"n8n-nodes-base.set","typeVersion":3.4,"position":[820,-140]},{"parameters":{"assignments":{"assignments":[{"id":"answer-as-written","name":"output","value":"={{ $json.output }}","type":"string"}]},"options":{}},"id":"answer-without-a-source-line","name":"Answer without a source line","type":"n8n-nodes-base.set","typeVersion":3.4,"position":[820,140]}],"connections":{"Ask the registry agent":{"main":[[{"node":"French registry agent","type":"main","index":0}]]},"French registry agent":{"main":[[{"node":"Did a Sirenic tool read a register?","type":"main","index":0}]]},"Did a Sirenic tool read a register?":{"main":[[{"node":"Add the source line to the answer","type":"main","index":0}],[{"node":"Answer without a source line","type":"main","index":0}]]},"Chat model":{"ai_languageModel":[[{"node":"French registry agent","type":"ai_languageModel","index":0}]]},"Conversation memory":{"ai_memory":[[{"node":"French registry agent","type":"ai_memory","index":0}]]},"Sirenic MCP (110 tools)":{"ai_tool":[[{"node":"French registry agent","type":"ai_tool","index":0}]]}},"settings":{"executionOrder":"v1"},"pinData":{}}