AutomationFlowsAI & RAG › Expose Hacker News Tools as an Mcp Server for AI Agents

Expose Hacker News Tools as an Mcp Server for AI Agents

ByIbrahim Edhem Harbutu @ibrh96 on n8n.io

This workflow exposes a Model Context Protocol (MCP)server in n8n that lets AI agents query Hacker News for top items, a specific article by ID, or a user profile via a single webhook endpoint. No API key or credentials required. Compatible with any MCP-enabled AI agent or…

Event trigger★★☆☆☆ complexityAI-powered6 nodesMcp TriggerHacker News Tool
AI & RAG Trigger: Event Nodes: 6 Complexity: ★★☆☆☆ AI nodes: yes Added:

This workflow corresponds to n8n.io template #16093 — we link there as the canonical source.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "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
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This workflow exposes a Model Context Protocol (MCP)server in n8n that lets AI agents query Hacker News for top items, a specific article by ID, or a user profile via a single webhook endpoint. No API key or credentials required. Compatible with any MCP-enabled AI agent or…

Source: https://n8n.io/workflows/16093/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

Need help? Want access to this workflow + many more paid workflows + live Q&A sessions with a top verified n8n creator?

Mcp Trigger, Kitemaker Tool
AI & RAG

Need help? Want access to this workflow + many more paid workflows + live Q&A sessions with a top verified n8n creator?

Mcp Trigger, HTTP Request Tool
AI & RAG

This assistant is designed for people who don't have time to write and send emails to suppliers. With just one request, it drafts and sends clear, professional messages automatically.

Mcp Trigger, Gmail Tool, Chat Trigger +6
AI & RAG

Complete MCP server exposing 4 AWS Cost and Usage Report Service API operations to AI agents.

Mcp Trigger, HTTP Request Tool
AI & RAG

Need help? Want access to this workflow + many more paid workflows + live Q&A sessions with a top verified n8n creator?

Mcp Trigger, HTTP Request Tool