Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

mcp-hn

MCP.Pizza Chef: erithwik

The mcp-hn is a Model Context Protocol (MCP) server designed to integrate Hacker News data into AI workflows. It offers tools to fetch top, new, ask_hn, and show_hn stories, retrieve detailed comments on stories, search stories by query, and obtain user information. This server enables models to interact dynamically with Hacker News content, facilitating real-time information retrieval and contextual understanding of trending tech news and discussions. It is ideal for developers building AI agents that require up-to-date Hacker News insights and user activity data.

Use This MCP server To

Fetch top, new, ask_hn, and show_hn stories from Hacker News Retrieve detailed comments for specific Hacker News stories Search Hacker News stories by keywords or topics Get detailed user profiles and activity summaries from Hacker News

README

Hacker News MCP Server

A Model Context Protocol (MCP) server that provides tools for fetching information from Hacker News.

Tools

  • get_stories Fetching (top, new, ask_hn, show_hn) stories
  • get_story_info Fetching comments associated with a story
  • search_stories Searching for stories by query
  • get_user_info Fetching user info

Example Usage

Use prompts like the following:

User: Get the top stories of today
  Output: Uses `get_stories` tool and returns a story about AI
User: What does the details of the story today that talks about the future of AI
  Output: Uses `get_story_info` tool based on the results of the previous tool
User: What has the user `pg` been up to?
  Output: Uses `get_user_info` tool and returns a summary of the user's activity
User: What does hackernews say about careers in AI?
  Output: Uses `search_stories` tool and returns a summary of the comments

A more detailed example with the puppeteer MCP server:

User: What are the top stories of today?
  Output: Uses `get_stories` tool and returns a story about AI
User: Can you use the puppeteer tool to read the article about <AI> and also use the hackernews tool to view the comments and give me a summary of what the main comments are about the article?
  Output: Uses puppeteer tool to read the article about AI and then uses the `get_story_info` hn tool to get the comments and returns a summary of the comments

Quickstart

Claude Desktop:

Update the following:

On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json

On Windows: %APPDATA%/Claude/claude_desktop_config.json

With the following for production:

{
  "mcpServers": {
    "mcp-hn": {
      "command": "uvx",
      "args": ["mcp-hn"]
    }
  }
}

mcp-hn FAQ

How do I fetch the top stories using mcp-hn?
Use the `get_stories` tool with the 'top' parameter to retrieve the latest top stories from Hacker News.
Can mcp-hn provide comments for a specific story?
Yes, the `get_story_info` tool fetches all comments associated with a given Hacker News story.
How does the search functionality work in mcp-hn?
The `search_stories` tool allows querying Hacker News stories by keywords or topics to find relevant discussions.
Is it possible to get user information with mcp-hn?
Yes, the `get_user_info` tool fetches detailed information and activity summaries for any Hacker News user.
What kind of stories can I fetch with mcp-hn?
You can fetch top, new, ask_hn, and show_hn stories, covering a wide range of Hacker News content.
How does mcp-hn handle real-time data?
It dynamically queries Hacker News APIs to provide up-to-date stories, comments, and user info in real time.
Can mcp-hn be integrated with multiple LLM providers?
Yes, it is compatible with models like OpenAI, Anthropic Claude, and Google Gemini through the MCP protocol.
What is required to set up mcp-hn?
You need to deploy the MCP server and configure it to connect with your MCP client to start fetching Hacker News data.