Skip to main content

Hacker News integration server for Model Context Protocol (MCP)

Project description

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

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

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_server_hacker_news-0.1.2.tar.gz (34.8 kB view details)

Uploaded Source

Built Distribution

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

mcp_server_hacker_news-0.1.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_hacker_news-0.1.2.tar.gz.

File metadata

  • Download URL: mcp_server_hacker_news-0.1.2.tar.gz
  • Upload date:
  • Size: 34.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for mcp_server_hacker_news-0.1.2.tar.gz
Algorithm Hash digest
SHA256 00caab0c175e3b9c8ae88665a3d24793352b5e2dbf0ff5fc3b36f294c533abb5
MD5 85fdbe6a16423738e99f1bf16e6ae884
BLAKE2b-256 163d1ba28e4c28fe04cbbfd29446a4b59c6199d29d27c16d757589d3c3688eb7

See more details on using hashes here.

File details

Details for the file mcp_server_hacker_news-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_hacker_news-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d4655cf86fb61ef503d9d9b928c4aa51d019a084cf2e70b08da8c437fe68e11a
MD5 e001d2f4af9c6360f576470dc982dc5f
BLAKE2b-256 4cf95064389ee1fc24c215aa14b10faee4822f94f352542f851653536295fc1d

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