technews-port
Provides full-text search of Hacker News stories through the Algolia HN Search API, returning matching stories with title, URL, author, points, comment count, and posting time.
Retrieves Hacker News ranked story lists, individual items, and public user profiles from the official Firebase API, including titles, authors, scores, comment counts, item details, and user karma and submission data.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
technews-port
technews-port is a small reader for Hacker News that speaks to the site's own public APIs, so there is no scraping and nothing to sign up for. It pulls the ranked front-page lists (top, new, and best), any single item by its numeric id, and any user's public profile from the official Firebase API, and it searches story text through the Algolia HN Search API — the one capability the Firebase API does not have.
Story lists come back with the items already fetched, in ranked order, not just bare ids: the headline, author, score, and comment count are right there for each entry.
Install
npx @reneturcios/technews-port top --limit 10Or run the container image:
docker run -i ghcr.io/cloudcorprecords/technews-portThe container defaults to the MCP server (see below). Pass CLI arguments to use it as a CLI instead.
Related MCP server: HN Pulse
CLI
Every command prints JSON.
# The three ranked lists (default 30 stories, capped at 100)
technews-port top
technews-port new --limit 10
technews-port best --limit 5
# One item, one user
technews-port item 8863
technews-port user pg
# Full-text story search via Algolia (default 20 hits)
technews-port search "show hn" --limit 10
technews-port --versionExit codes: 0 on success, 1 when the lookup fails (an unknown item
or user, or an upstream error, named in the message), 2 for usage
errors.
MCP server
One bin serves both faces. The mcp subcommand starts a stdio MCP
server:
npx -y @reneturcios/technews-port mcpMCP client configuration:
{
"mcpServers": {
"technews-port": {
"command": "npx",
"args": ["-y", "@reneturcios/technews-port", "mcp"]
}
}
}Tools
Tool | Input | What it returns |
|
| The current top stories: the ranked item ids plus each story parsed — title, author, score, comment count, URL, and timestamp. |
|
| The newest stories, same shape as |
|
| The best stories, same shape as |
|
| One item of any kind (story, comment, job, poll): its type, author, text or title, score, child comment ids, and deleted/dead flags. |
|
| The user's public profile: creation time, karma, about text, and submitted item ids. |
|
| Stories matching the query, from Algolia: title, URL, author, points, comment count, and posting time per hit. |
If an id in a ranked list disappears between reading the list and
fetching the item — it happens on a live site — the id stays in
item_ids and the item is simply absent from items.
Development
npm install
npm run build # tsc -> dist/
npm test # node test runner over test/*.test.ts, no network
npm run dev # run the CLI from source via tsxThe core takes an injectable fetch function, and the test suite routes a fake fetch by URL to hand-written payloads shaped like real Firebase and Algolia responses — the tests never touch the network.
License
MIT — see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Browse Hacker News feeds, threads, and user profiles with full-text search.
Hacker News front page and search: stories, points, comments, and which stories link to your domain.
HN front-page, Algolia full-text search, and Show HN launch tracker.
Hacker News MCP — search and retrieve stories from Hacker News
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides programmatic access to Hacker News content via the HN Algolia API. It enables AI assistants to search stories, retrieve comments, access user profiles, and explore the front page in real-time.936 npmMIT
- FlicenseAqualityDmaintenanceEnables AI assistants to read and search Hacker News for top stories, comments, user profiles, and job listings using the Firebase and Algolia APIs. It facilitates natural language research into community discussions and technological trends across the HN platform.8-
- AlicenseNot gradedqualityBmaintenanceEnables searching and retrieving top stories and individual items from Hacker News, with access to scores, comments, authors, and timestamps.400 npmMIT
- AlicenseNot gradedqualityDmaintenanceProvides tools to fetch top/new/ask/show stories, story comments, search stories, and get user info from Hacker News.MIT