π Expose Hacker News tools as an MCP server for AI agents
β‘ 14 views Β· π Market Research & Insights
Description
Quick overview
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 orchestration framework.
How it works
- Receives MCP tool calls through an n8n MCP webhook trigger.
- When the agent requests the βAllβ operation, it fetches Hacker News items with an optional limit or returns all results.
- When the agent requests the βArticleβ operation, it retrieves a single Hacker News article by the provided article ID.
- When the agent requests the βUserβ operation, it retrieves a Hacker News user profile by the provided username.
- Returns the requested Hacker News data back to the MCP client as the tool response.
Setup
- Import the workflow and activate it to start the MCP server.
- Copy the MCP webhook URL from the MCP trigger and configure it in your AI agent as an MCP server endpoint.
- Ensure the Hacker News Tool node is available in your n8n instance (no credentials are required). Verify connectivity before use.
π Nodes Used
MCP Server Trigger
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File