readhn
AI-native HackerNews MCP Server. Filter HN through your lens with trust-based expert ranking and explainable quality signals.
Why
HN is where engineers share lessons that cost them months to learn — in a single comment. tptacek has 4,600+ comments on security. patio11 has written more about SaaS pricing on HN than most books cover. The best engineering knowledge isn't in the stories that get upvoted to the front page. It's buried in comment threads, written by people who've actually built the thing.
The problem is finding it. HN's ranking shows you what's popular, not what's relevant to you. And more importantly — it doesn't tell you who to listen to. On any thread about databases, there might be 200 comments. Three of them are from people who've run Postgres at scale. The rest are opinions. Knowing which three — that's the difference between learning something real and wasting twenty minutes.
hnmcp does three things:
-
Discover — Find content that matters to you, not what's trending. Your keywords, your score thresholds, your time window.
-
Trust — Know who's talking. hnmcp tracks domain experts, detects practitioner signals ("I built this", "we ran this in production", code blocks, specific metrics), and tells you why a comment is worth reading. When you follow experts, their network becomes visible too — people they engage with are probably worth listening to.
-
Understand — Every result comes with its reasoning. Not just a score, but the signals behind it: practitioner depth, score velocity, reference density, thread depth, expert involvement. You see why the filter chose what it chose. If it's wrong, you adjust.
Why AI-native? Because this isn't a feed to scroll. It's a knowledge base to query. You ask your AI agent "what did practitioners say about Kubernetes networking this week?" and get a structured answer with sources and trust signals — not a list of links.
Quick Start
# Install from PyPI
pip install readhn
# Optional: with semantic search
pip install readhn[embeddings]
That's it! Your AI agents (Claude Code, OpenCode, Codex) will auto-discover readhn from the MCP Registry.
Configuration (Optional)
Set environment variables to customize:
export HN_KEYWORDS="ai,python,startups"
export HN_MIN_SCORE="50"
export HN_EXPERTS="patio11,tptacek,simonw"
export HN_TIME_HOURS="24"
Or configure manually in your agent's MCP config:
{
"mcpServers": {
"readhn": {
"command": "python",
"args": ["-m", "hnmcp"],
"env": {
"HN_KEYWORDS": "ai,python",
"HN_EXPERTS": "patio11,tptacek"
}
}
}
}
Tools
Discover
discover_stories()- Personalized feed with quality rankingsearch()- Algolia search with signals
Trust
find_experts()- Discover domain expertsexpert_brief()- Expert profile + activity + trust score
Understand
story_brief()- Story + top comments + signals in one callthread_analysis()- Hierarchical comment tree with quality signals
Resources
hn://config- Current settingshn://trust- Trust scores for seed experts
Quality Signals
Every result explains WHY it was chosen:
- Practitioner Depth (30%): "I built", "in production", code blocks, specific metrics
- Score Velocity (15%): Points per hour - sustained interest indicator
- Reference Density (15%): External links and citations
- Thread Depth (20%): Comment tree depth (3+ levels = serious discussion)
- Expert Involvement (20%): Participation by followed users
License
MIT
Metadata
Release files for readhn 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| readhn-0.2.0.tar.gz | 29.5 kB | Without provenance | Details for readhn-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| readhn-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for readhn-0.2.0-py3-none-any.whl |
Total release size: 48.0 kB
Release files / readhn-0.2.0.tar.gz
| Download URL | readhn-0.2.0.tar.gz |
|---|---|
| Size | 29.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aaa6f116d61748b804f3b7ea09d109827bf37ee5df41ffb6f67503beebd10746
|
|
BLAKE2b-256 checksum How to use checksums |
e53c5d28b24cc0e72ff5772520f067d8aa2fda73cf6ee20050793e454faa3e27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.2
|
Release files / readhn-0.2.0-py3-none-any.whl
| Download URL | readhn-0.2.0-py3-none-any.whl |
|---|---|
| Size | 18.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e89670186d8dc0a891f4c823812f814b37cea6b4ba11d233dd7141d86977cde1
|
|
BLAKE2b-256 checksum How to use checksums |
0afd83bf3f9c3cf6d57442d4033d9319fffb7cffb1fd6a66a5d5ced1181fd15f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.2
|
Security for readhn 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.