About MCP Server for Hacker News
An MCP server that provides access to Hacker News story and user data. Its resources return IDs for top, best, and new stories, and objects for individual stories and users.
Key features
- 01Retrieve top-story IDs
- 02Retrieve best-story IDs
- 03Retrieve new-story IDs
- 04Look up stories by ID
- 05Look up users by ID
Use cases
- 01Listing top, best, or new Hacker News stories
- 02Fetching a Hacker News story by ID
- 03Retrieving a Hacker News user by ID
MCP support
The server exposes Hacker News story and user resources to MCP clients, including story lists and lookups by ID.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEMCP Server for Hacker News
A Model Context Protocol (MCP) server for fetching Hacker News data.
Resources
top-stories- Top stories
- Returns: an array of story IDs
best-stoies- Best stories
- Returns: an array of story IDs
new-stories- New stories
- Returns: an array of story IDs
story- A story
- Input:
id: the ID of the story
- Returns: a story object
user- A user
- Input:
id: the ID of the user
- Returns: a user object
Usage with Claude Desktop
{
"mcpServers": {
"hackernews": {
"command": "npx",
"args": ["-y", "mcp-server-hackernews"]
}
}
}
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.