{
  "id": "j3lGzG1i2stMiy3P",
  "meta": null,
  "name": "Hacker News Tool MCP Server",
  "tags": [],
  "nodes": [
    {
      "id": "4e989bb6-a959-496a-979e-9ac9597f1c1e",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1408,
        -240
      ],
      "parameters": {
        "width": 480,
        "height": 896,
        "content": "## Hacker News Tool MCP Server\n\n### How it works\n\nThis workflow creates an MCP server that exposes Hacker News data lookup tools. Clients connecting to the MCP trigger can call tools to fetch multiple Hacker News items, retrieve a specific article, or look up a Hacker News user.\n\n### Setup steps\n\n- Configure the MCP Trigger node with the desired server settings and ensure it is reachable by your MCP client.\n- Verify the Hacker News Tool nodes are configured for the intended operations: get many items, get an article, and get a user.\n- Activate the workflow in n8n and connect your MCP-compatible client to the server endpoint.\n\n### Customization\n\nYou can add more Hacker News tool nodes or adjust the existing tool parameters to expose different Hacker News resources or default query behavior."
      },
      "typeVersion": 1
    },
    {
      "id": "8803c263-9547-4439-a394-972442381618",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -848,
        -240
      ],
      "parameters": {
        "color": 7,
        "width": 448,
        "height": 1008,
        "content": "## Hacker News MCP tools\n\nDefines a single MCP server trigger that exposes Hacker News tool actions for retrieving many items, a specific article, or a user. The nodes form one vertical cluster on the canvas and together represent the server entry point plus its available Hacker News operations."
      },
      "typeVersion": 1
    },
    {
      "id": "e0fa03aa-3ce8-40bd-821e-75b64ec52f55",
      "name": "MCP Server Trigger",
      "type": "@n8n/n8n-nodes-langchain.mcpTrigger",
      "position": [
        -700,
        -20
      ],
      "parameters": {
        "path": "hacker-news-tool-mcp"
      },
      "typeVersion": 1
    },
    {
      "id": "42339d85-3ebe-4613-a948-ba6ab2896571",
      "name": "Fetch Multiple Items",
      "type": "n8n-nodes-base.hackerNewsTool",
      "position": [
        -800,
        140
      ],
      "parameters": {
        "limit": "={{ $fromAI('Limit', ``, 'number') }}",
        "resource": "all",
        "returnAll": "={{ $fromAI('Return_All', ``, 'boolean') }}",
        "additionalFields": {}
      },
      "typeVersion": 1
    },
    {
      "id": "f24e8a5c-b66c-477c-b764-2cad8bd0148e",
      "name": "Retrieve Article",
      "type": "n8n-nodes-base.hackerNewsTool",
      "position": [
        -800,
        380
      ],
      "parameters": {
        "articleId": "={{ $fromAI('Article_Id', ``, 'string') }}",
        "additionalFields": {}
      },
      "typeVersion": 1
    },
    {
      "id": "c7543fc5-3862-455e-ade7-d7fa2b3da723",
      "name": "Fetch User Data",
      "type": "n8n-nodes-base.hackerNewsTool",
      "position": [
        -800,
        620
      ],
      "parameters": {
        "resource": "user",
        "username": "={{ $fromAI('Username', ``, 'string') }}"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "timezone": "America/New_York"
  },
  "staticData": null,
  "connections": {
    "Fetch User Data": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Retrieve Article": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Multiple Items": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  },
  "triggerCount": 0
}