Back to MCP Catalog

Hacker News MCP Server

SearchPython
Access and search Hacker News content programmatically
Available Tools

get_stories

Fetches stories from Hacker News by category (top, new, ask_hn, show_hn)

get_story_info

Retrieves detailed information about a specific story, including its comments

search_stories

Searches for Hacker News stories matching a specific query

get_user_info

Fetches information about a specific Hacker News user

The Hacker News MCP provides tools to interact with Hacker News content programmatically. It allows you to fetch top stories, search for specific topics, retrieve story details including comments, and get information about Hacker News users. This MCP enables AI assistants to stay current with tech discussions, retrieve specific information from the Hacker News community, and provide summaries of trending topics in technology and startups.

Installation

To use the Hacker News MCP with Claude Desktop, you'll need to update your Claude Desktop configuration file.

For macOS:

Edit the configuration file at: ~/Library/Application\ Support/Claude/claude_desktop_config.json

For Windows:

Edit the configuration file at: %APPDATA%/Claude/claude_desktop_config.json

Add the following configuration:

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

Usage

Once installed, you can use the Hacker News MCP to interact with Hacker News content in various ways:

Fetching Stories

You can request top stories, new stories, Ask HN posts, or Show HN posts. For example:

  • "What are the top stories on Hacker News today?"
  • "Show me the newest stories on Hacker News"
  • "What are the latest Ask HN posts?"

Getting Story Details

You can request detailed information about specific stories, including comments:

  • "Can you show me the comments on the top AI story from Hacker News?"
  • "What are people saying about the latest cryptocurrency post on HN?"

Searching Stories

You can search for stories on specific topics:

  • "Find Hacker News stories about quantum computing"
  • "What does Hacker News say about careers in AI?"

User Information

You can retrieve information about specific Hacker News users:

  • "What has the user 'pg' been posting recently?"
  • "Tell me about the Hacker News user 'dang'"

Combined Usage

You can also combine the Hacker News MCP with other MCPs for more complex tasks:

  • "Use the Puppeteer tool to read the article from the top HN story about AI, and then summarize the Hacker News comments about it"

The MCP will retrieve the requested information from Hacker News and present it in a structured format, making it easy to analyze tech trends, community discussions, and user activities.

Related MCPs

SearXNG
SearchTypeScript

Web search capabilities through SearXNG API integration

Web Search
SearchJavaScript

Free Google search integration with no API keys required

Google News
SearchTypeScript

Access and search Google News articles with automatic categorization and multi-language support

About Model Context Protocol

Model Context Protocol (MCP) allows AI models to access external tools and services, extending their capabilities beyond their training data.

Generate Cursor Documentation

Save time on coding by generating custom documentation and prompts for Cursor IDE.