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": {
"testing": {
"command": "uvx",
"args": ["mcp-server-hacker-news"]
}
}
}
Configure for VS Code
For quick installation, use one of the one-click install buttons below...
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"
- Choices:
-
--host: Host to bind the server- Default:
localhost - Description: Specifies the host address the server should bind to
- Default:
-
--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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_server_hacker_news-0.1.3.tar.gz.
File metadata
- Download URL: mcp_server_hacker_news-0.1.3.tar.gz
- Upload date:
- Size: 35.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c36cceaded9332ff724f8e781b44a158aed3a4bb8ef20c5d0aa9a75fafb8440
|
|
| MD5 |
9669320bfe7b94a23fab79d68eebe9aa
|
|
| BLAKE2b-256 |
f57b17891013ae6cb44a8557c31b2756945e53d025791f0b6733f0e44cc6b9d7
|
File details
Details for the file mcp_server_hacker_news-0.1.3-py3-none-any.whl.
File metadata
- Download URL: mcp_server_hacker_news-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
554df7b7661801b5e5ec975d4e907463e66c905c3f1a6f30ec30db89d9a29944
|
|
| MD5 |
40de47a78debb32dd9ccf0a1f84f9755
|
|
| BLAKE2b-256 |
cbd9f7f3ca3e70c5d01f74d76a92d3973f8e7ead8bc8d51bbc36c166bc219966
|