Skip to main content

MCP Server for Hacker News

Project description

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:

- Get the top stories of today (will use `get_stories` tool`)
- What does the details of the story today that talks about the future of AI (will use `get_story_info` tool` based on the results of the previous tool)
- What has the user `pg` been up to? (will use `get_user_info` tool)
- What does hackernews say about careers in AI? (will use `search_stories` tool)

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 development:

{
  "mcpServers": {
    "mcp-hn": {
      "command": "uv",
      "args": [
        "--directory",
        "<dir_to>/mcp-hn",
        "run",
        "mcp-hn"
      ]
    }
  }
}

Or 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-0.1.0.tar.gz (15.5 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-0.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_hn-0.1.0.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for mcp_hn-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c3721b833b7fb217f2a6faf11244db79705e132dc26e1dd55ec1195041fac8e5
MD5 e445ab39c896c91c100e87d2a0b8f7af
BLAKE2b-256 eb53910b1163af786cb6280ae5eca466d28fea403633932d59b21d4d5b41fa5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mcp_hn-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for mcp_hn-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6785943821104481d2b2ab5b22eb4b48fcb3eb236b4e0422690078e09c08de57
MD5 25db9e1f8039865dd6a64ab2f34192be
BLAKE2b-256 09de39efda67b5a676869e09ed297e1db24ab2be69cba92ccd350446a0d2f53f

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