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

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

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.4.tar.gz (35.1 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.4-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_server_hacker_news-0.1.4.tar.gz
  • Upload date:
  • Size: 35.1 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.4.tar.gz
Algorithm Hash digest
SHA256 a839ac8fc104484c603a65181912f7cae0751f082c6510d037828e6fa90508da
MD5 0790e0d971bac719e88350df1c1c08a5
BLAKE2b-256 27c0d739cd418a65709c8803c748219c79d0fbd4c34d4ac5ca337a12af690914

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_server_hacker_news-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 18927b65a0306231fd7090aff79d37ef60c2cb22ce80e7450308e4d1969829a7
MD5 b6b2c969c3384c712b3649bff9a3c265
BLAKE2b-256 dbc0fb18d5bd8a7412d3e4250fff1a8c42f09ab4f98d8a09d2d274a22b02cac3

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