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 IDs

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.1.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.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_server_hacker_news-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 ed1095bd0db489c5d25e1b282a65cc798058071a2ce11d436aeadb27f352e502
MD5 f2427ba448df06134b3666abd6e97d27
BLAKE2b-256 44274b9ac9d3c1fe9aa35d18f2e9e574794b92d3d2b6a124b6452197b5f60d23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_server_hacker_news-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a1cc04c1aa7a93e3b1c2698c2f3a7e7c62d8eb7d01c8482e4d2c3df803a217d3
MD5 d74cddae9e43144068a1dc20b11ff371
BLAKE2b-256 27368ec7c2b05139b140e7a6ede8ad5e28e0e2a251f1fba636472ced9345028a

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