{
  "name": "Qonto MCP Server (augmentes)",
  "nodes": [
    {
      "parameters": {
        "path": "qonto-mcp",
        "authentication": "bearerAuth"
      },
      "name": "Qonto MCP Server",
      "type": "@n8n/n8n-nodes-langchain.mcpTrigger",
      "typeVersion": 1.1,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "url": "https://thirdparty.qonto.com/v2/organization",
        "authentication": "genericCredentialType",
        "genericAuthType": "oAuth2Api",
        "options": {},
        "toolDescription": "Recupere l'organisation Qonto : comptes bancaires, IBAN, bank_account_id et soldes. A appeler EN PREMIER."
      },
      "name": "Qonto - Get Organization & Balances",
      "type": "n8n-nodes-base.httpRequestTool",
      "typeVersion": 4.4,
      "position": [
        360,
        80
      ]
    },
    {
      "parameters": {
        "url": "https://thirdparty.qonto.com/v2/transactions",
        "authentication": "genericCredentialType",
        "genericAuthType": "oAuth2Api",
        "options": {},
        "toolDescription": "Liste les transactions d'un compte Qonto. Filtres : status (pending/completed/declined), side (credit/debit).",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "bank_account_id",
              "value": "={{ $fromAI('bank_account_id', \"ID du compte bancaire Qonto. Vide = tous.\") }}"
            },
            {
              "name": "status",
              "value": "={{ $fromAI('status', \"Optionnel. pending, completed ou declined.\") }}"
            },
            {
              "name": "side",
              "value": "={{ $fromAI('side', \"Optionnel. credit ou debit.\") }}"
            },
            {
              "name": "per_page",
              "value": "={{ $fromAI('per_page', \"Resultats par page (defaut 100).\") }}"
            }
          ]
        }
      },
      "name": "Qonto - List Transactions",
      "type": "n8n-nodes-base.httpRequestTool",
      "typeVersion": 4.4,
      "position": [
        600,
        80
      ]
    },
    {
      "parameters": {
        "url": "https://thirdparty.qonto.com/v2/labels",
        "authentication": "genericCredentialType",
        "genericAuthType": "oAuth2Api",
        "options": {},
        "toolDescription": "Liste les labels (categories) Qonto.",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "per_page",
              "value": "={{ $fromAI('per_page', \"Resultats par page (defaut 100).\") }}"
            }
          ]
        }
      },
      "name": "Qonto - List Labels",
      "type": "n8n-nodes-base.httpRequestTool",
      "typeVersion": 4.4,
      "position": [
        840,
        80
      ]
    },
    {
      "parameters": {
        "url": "https://thirdparty.qonto.com/v2/beneficiaries",
        "authentication": "genericCredentialType",
        "genericAuthType": "oAuth2Api",
        "options": {},
        "toolDescription": "Liste les beneficiaires (IBAN enregistres). Filtre : status (validated/pending/declined).",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "status",
              "value": "={{ $fromAI('status', \"Optionnel. validated, pending ou declined.\") }}"
            },
            {
              "name": "per_page",
              "value": "={{ $fromAI('per_page', \"Resultats par page (defaut 100).\") }}"
            }
          ]
        }
      },
      "name": "Qonto - List Beneficiaries",
      "type": "n8n-nodes-base.httpRequestTool",
      "typeVersion": 4.4,
      "position": [
        1080,
        80
      ]
    },
    {
      "parameters": {
        "url": "https://thirdparty.qonto.com/v2/memberships",
        "authentication": "genericCredentialType",
        "genericAuthType": "oAuth2Api",
        "options": {},
        "toolDescription": "Liste les membres de l'organisation Qonto : prenom, nom, role.",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "per_page",
              "value": "={{ $fromAI('per_page', \"Resultats par page (defaut 100).\") }}"
            }
          ]
        }
      },
      "name": "Qonto - List Memberships (Team)",
      "type": "n8n-nodes-base.httpRequestTool",
      "typeVersion": 4.4,
      "position": [
        1320,
        80
      ]
    },
    {
      "parameters": {
        "url": "https://thirdparty.qonto.com/v2/clients",
        "authentication": "genericCredentialType",
        "genericAuthType": "oAuth2Api",
        "options": {},
        "toolDescription": "Liste les clients de facturation Qonto (nom, email, type, id). Recupere le client_id pour creer une facture.",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "per_page",
              "value": "={{ $fromAI('per_page', \"Resultats par page (defaut 100).\") }}"
            }
          ]
        }
      },
      "name": "Qonto - List Clients",
      "type": "n8n-nodes-base.httpRequestTool",
      "typeVersion": 4.4,
      "position": [
        1560,
        80
      ]
    },
    {
      "parameters": {
        "url": "https://thirdparty.qonto.com/v2/clients",
        "authentication": "genericCredentialType",
        "genericAuthType": "oAuth2Api",
        "options": {},
        "method": "POST",
        "toolDescription": "Cree un client de facturation Qonto. REQUIS : name, type (company/individual/freelancer). Recommandes : email, country_code, currency, locale.",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ $fromAI('client', 'Objet JSON du client : name (requis), type (company|individual|freelancer, requis), email, vat_number, address, city, zip_code, country_code (ex FR), currency (ex EUR), locale (ex fr).', 'json') }}"
      },
      "name": "Qonto - Create Client",
      "type": "n8n-nodes-base.httpRequestTool",
      "typeVersion": 4.4,
      "position": [
        1800,
        80
      ]
    },
    {
      "parameters": {
        "url": "https://thirdparty.qonto.com/v2/client_invoices",
        "authentication": "genericCredentialType",
        "genericAuthType": "oAuth2Api",
        "options": {},
        "toolDescription": "Liste les factures clients Qonto (numero, montant, statut, invoice_url, client). Filtre : status (draft/unpaid/paid/canceled).",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "status",
              "value": "={{ $fromAI('status', \"Optionnel. draft, unpaid, paid ou canceled.\") }}"
            },
            {
              "name": "per_page",
              "value": "={{ $fromAI('per_page', \"Resultats par page (defaut 100).\") }}"
            }
          ]
        }
      },
      "name": "Qonto - List Client Invoices",
      "type": "n8n-nodes-base.httpRequestTool",
      "typeVersion": 4.4,
      "position": [
        360,
        230
      ]
    },
    {
      "parameters": {
        "url": "https://thirdparty.qonto.com/v2/client_invoices",
        "authentication": "genericCredentialType",
        "genericAuthType": "oAuth2Api",
        "options": {},
        "method": "POST",
        "toolDescription": "Cree une facture client Qonto. REQUIS : client_id (UUID), issue_date, due_date, currency, items[], payment_methods.iban. Chaque item : title, quantity (string), unit_price {value (string), currency}, vat_rate (string decimal '0.2'=20%). status 'draft' = brouillon, 'unpaid' = finalisee.",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ $fromAI('invoice', 'Objet JSON de la facture client a creer (client_id, issue_date, due_date, currency, items[], payment_methods.iban, status).', 'json') }}"
      },
      "name": "Qonto - Create Client Invoice",
      "type": "n8n-nodes-base.httpRequestTool",
      "typeVersion": 4.4,
      "position": [
        600,
        230
      ]
    },
    {
      "parameters": {
        "url": "={{ 'https://thirdparty.qonto.com/v2/client_invoices/' + $fromAI('invoice_id', 'ID (UUID) de la facture client a recuperer') }}",
        "authentication": "genericCredentialType",
        "genericAuthType": "oAuth2Api",
        "options": {},
        "toolDescription": "Recupere une facture client Qonto par son id (UUID). Renvoie statut, montants, lignes, invoice_url, client."
      },
      "name": "Qonto - Retrieve Client Invoice",
      "type": "n8n-nodes-base.httpRequestTool",
      "typeVersion": 4.4,
      "position": [
        840,
        230
      ]
    },
    {
      "parameters": {
        "url": "={{ 'https://thirdparty.qonto.com/v2/client_invoices/' + $fromAI('invoice_id', 'ID (UUID) de la facture brouillon a modifier') }}",
        "authentication": "genericCredentialType",
        "genericAuthType": "oAuth2Api",
        "options": {},
        "method": "PATCH",
        "toolDescription": "Met a jour une facture client Qonto AU STATUT BROUILLON uniquement. Body = champs a modifier.",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ $fromAI('updates', 'Objet JSON des champs a modifier sur la facture brouillon.', 'json') }}"
      },
      "name": "Qonto - Update Client Invoice (draft)",
      "type": "n8n-nodes-base.httpRequestTool",
      "typeVersion": 4.4,
      "position": [
        1080,
        230
      ]
    },
    {
      "parameters": {
        "url": "={{ 'https://thirdparty.qonto.com/v2/client_invoices/' + $fromAI('invoice_id', 'ID (UUID) de la facture brouillon a finaliser') + '/finalize' }}",
        "authentication": "genericCredentialType",
        "genericAuthType": "oAuth2Api",
        "options": {},
        "method": "POST",
        "toolDescription": "Finalise une facture brouillon : statut draft -> unpaid (officielle, numerotee). Irreversible. Confirmer avant."
      },
      "name": "Qonto - Finalize Client Invoice",
      "type": "n8n-nodes-base.httpRequestTool",
      "typeVersion": 4.4,
      "position": [
        1320,
        230
      ]
    },
    {
      "parameters": {
        "content": "## Qonto MCP Server\\n\\n12 outils. Lecture : Organization/Balances, Transactions, Labels, Beneficiaries, Memberships. Clients : List, Create. Factures : List, Create, Retrieve, Update (draft), Finalize.\\n\\n### Credentials\\n- **OAuth2 API** (Qonto) sur les 12 outils.\\n- **Bearer Auth** sur le trigger (protege l'endpoint MCP entrant) : invente un secret long.",
        "height": 300,
        "width": 520,
        "color": 4
      },
      "name": "Notice",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        0,
        -360
      ]
    }
  ],
  "connections": {
    "Qonto - Get Organization & Balances": {
      "ai_tool": [
        [
          {
            "node": "Qonto MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Qonto - List Transactions": {
      "ai_tool": [
        [
          {
            "node": "Qonto MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Qonto - List Labels": {
      "ai_tool": [
        [
          {
            "node": "Qonto MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Qonto - List Beneficiaries": {
      "ai_tool": [
        [
          {
            "node": "Qonto MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Qonto - List Memberships (Team)": {
      "ai_tool": [
        [
          {
            "node": "Qonto MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Qonto - List Clients": {
      "ai_tool": [
        [
          {
            "node": "Qonto MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Qonto - Create Client": {
      "ai_tool": [
        [
          {
            "node": "Qonto MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Qonto - List Client Invoices": {
      "ai_tool": [
        [
          {
            "node": "Qonto MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Qonto - Create Client Invoice": {
      "ai_tool": [
        [
          {
            "node": "Qonto MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Qonto - Retrieve Client Invoice": {
      "ai_tool": [
        [
          {
            "node": "Qonto MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Qonto - Update Client Invoice (draft)": {
      "ai_tool": [
        [
          {
            "node": "Qonto MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Qonto - Finalize Client Invoice": {
      "ai_tool": [
        [
          {
            "node": "Qonto MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": false
  }
}