Skip to main content

MCP Server for Hacker News

Project description

Hacker News MCP Server

Fork of https://github.com/erithwik/mcp-hn , using https for everything and uses curl_cffi.

smithery badge

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

mcp-hn MCP server

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

Installing via Smithery

To install Hacker News MCP Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install mcp-hn --client claude

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"]
    }
  }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_hn_tddschn-0.1.0.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_hn_tddschn-0.1.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file mcp_hn_tddschn-0.1.0.tar.gz.

File metadata

  • Download URL: mcp_hn_tddschn-0.1.0.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.9

File hashes

Hashes for mcp_hn_tddschn-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1e843dbe4e23d4638f7f454a33db5edf9422834c3f748a6e9f4337b2e8dc8184
MD5 45e25f8ade17c05b95fbca1a7310504a
BLAKE2b-256 130f8af7bc8ce7b0a6a6965d1721a2c1969ee51ce52157513e3fe3a63fcb6924

See more details on using hashes here.

File details

Details for the file mcp_hn_tddschn-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_hn_tddschn-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 998927f2ef5d0e221fe0d356f2c0923d083a7920583e597092781222a7f1d098
MD5 e047a1bf6923f841ff285b5aac58f3fd
BLAKE2b-256 5007f2230f4027bbedc158ee2fbe20a89db19db3791fb3ad4067ec0950b2a2f2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page