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.

  • Returns: A list of story IDs

get_story

A function that retrieves details of a specific story.

  • id (integer, 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.0.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.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_server_hacker_news-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 a6deadb4f6eedd46af4e7f8d9f19c3a7ca2cabea7b8994c13640d40bcbb2c8f4
MD5 943b700e8ae73eeeb8d8eef46a4a217b
BLAKE2b-256 1c96e760e6b16b43e0b6959c112f2011270485563d2ec9ac2b7cb644eeb7ecb6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_server_hacker_news-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c7e7aa5b0ab137c513668405f70ea170661f48f1a99e3610efe6192bec3f209
MD5 eca503fc5621e8e59034314edded815d
BLAKE2b-256 48b17aa77325761203f229892b1867cb2ac56300b609d257dab10fe3ff310513

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