Skip to main content

MCP Hacker News Server

This project is a Hacker News information retrieval server implementation for the Model Context Protocol (MCP). It uses the FastMCP framework to provide HN API functionality.

Available Tools

get_top_stories

A function that retrieves the current top stories from Hacker News.

  • limit (int, optional): Number of articles to retrieve. Defaults to 10.
    • Returns: A list of story object

get_story

A function that retrieves details of a specific story.

  • id (string, required): The story ID to retrieve
    • Returns: A story object containing title, url, score, etc.

Installation

Using uv (Recommended)

No special installation is required when using uv. You can run mcp-server-hacker-news directly using uvx.

Using PIP

Alternatively, you can install mcp-server-hacker-news using pip:

pip install mcp-server-hacker-news

After installation, you can run the server as follows:

mcp-server-hacker-news

Configuration

Configure for Claude.app

Add to your Claude settings:

Using uvx
{
  "mcpServers": {
    "hacker-news": {
      "command": "uvx",
      "args": ["mcp-server-hacker-news"]
    }
  }
}

Configure for VS Code

For quick installation, use one of the one-click install buttons below...

Install with UV in VS Code

Command Line Options

You can specify the following options when running the server:

  • --sse: Enable SSE transport

    • Choices: on, off
    • Default: off
    • Description: Enables SSE transport when set to "on"
  • --host: Host to bind the server

    • Default: localhost
    • Description: Specifies the host address the server should bind to
  • --port: Port to bind the server

    • Type: Integer
    • Default: 8000
    • Description: Specifies the port number the server should listen on

Metadata

Release files for mcp-server-hacker-news 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-server-hacker-news 0.1.4
File Size Uploaded Provenance
mcp_server_hacker_news-0.1.4.tar.gz 35.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-server-hacker-news 0.1.4
File Interpreter ABI Platform
mcp_server_hacker_news-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 39.7 kB

Release files / mcp_server_hacker_news-0.1.4.tar.gz

Download URL mcp_server_hacker_news-0.1.4.tar.gz
Size 35.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a839ac8fc104484c603a65181912f7cae0751f082c6510d037828e6fa90508da
BLAKE2b-256 checksum
How to use checksums
27c0d739cd418a65709c8803c748219c79d0fbd4c34d4ac5ca337a12af690914
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.28.1

Release files / mcp_server_hacker_news-0.1.4-py3-none-any.whl

Download URL mcp_server_hacker_news-0.1.4-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
18927b65a0306231fd7090aff79d37ef60c2cb22ce80e7450308e4d1969829a7
BLAKE2b-256 checksum
How to use checksums
dbc0fb18d5bd8a7412d3e4250fff1a8c42f09ab4f98d8a09d2d274a22b02cac3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.28.1

Security for mcp-server-hacker-news 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page