π¨π Part of the Swiss Public Data MCP Portfolio
π‘ hn-tech-signal-mcp
MCP server for global tech & AI signal intelligence β aggregates HackerNews, arXiv, Lobste.rs and GitHub into a structured briefing. No API key required.
Demo
Overview
hn-tech-signal-mcp turns any AI assistant into a proactive tech intelligence analyst. The server aggregates four signal layers β research frontier, developer discourse, curated signal, and open-source practice β into a single, structured briefing.
No authentication required. All four data sources are public APIs. Optional: set GITHUB_TOKEN for higher GitHub rate limits (5,000 req/h vs. 60 req/h unauthenticated).
Anchor demo query: "Give me a tech signal digest on AI today β what is happening in research, developer discourse and open source?"
Signal Architecture
FRONTIER arXiv API β Latest AI/ML papers (cs.AI, cs.LG, cs.CL, cs.CV)
DISCOURSE HackerNews β Six feeds + Algolia search + comment threads
Lobste.rs β Curated, lower-noise tech signal
PRACTICE GitHub Search β What engineers are actually building right now
HN Show HN β What individuals are shipping this week
Think of the four layers as a radar: arXiv shows what's coming over the horizon, HN and Lobste.rs show what practitioners are discussing, and GitHub shows what teams are actually shipping.
Within the discourse layer there are two levels of depth. The feeds and the search tell you what is being discussed; hn_discussion tells you what is actually being argued β the counter-arguments and the "we tried this in production" replies that carry the real signal.
Features
- π¬ Research frontier β Latest arXiv papers by category (cs.AI, cs.LG, cs.CL, and more)
- π arXiv full-text search β Find papers by keyword, title, or author
- π£οΈ HackerNews feeds β top, best, new, Ask HN, Show HN and YC job posts
- π HackerNews search β Full history via Algolia, with date range filter
- π¬ HackerNews comment threads β Read the actual discussion under a story, nested, with a bounded fetch budget
- π§ Lobste.rs hottest β Curated developer signal, filterable by tag
- π οΈ GitHub trending AI repos β Search by topic, stars, sort by activity or popularity
- π Tech signal digest β One-call cross-source briefing in Markdown
- βοΈ Dual transport β stdio for Claude Desktop, Streamable HTTP for cloud deployment
| # | Tool | Source | Description |
|---|---|---|---|
| 1 | hn_top_stories | HackerNews | Six feeds: top/best/new/ask/show/job, with score filter |
| 2 | hn_search | HN Algolia | Full-text search across all HN history |
| 3 | hn_discussion | HackerNews | Nested comment thread under a story |
| 4 | arxiv_latest | arXiv | Latest papers by category (cs.AI etc.) |
| 5 | arxiv_search | arXiv | Search papers by keyword/title/author |
| 6 | lobsters_hot | Lobste.rs | Curated tech stories, filterable by tag |
| 7 | github_trending_ai | GitHub | Trending AI repos by topic and stars |
| 8 | tech_signal_digest | All sources | Aggregated Markdown briefing |
HackerNews feeds
| Feed | Content | Upstream size |
|---|---|---|
top | Front page as ranked right now | 500 items |
best | Highest-voted recent stories | 200 items |
new | Newest submissions, unfiltered | 500 items |
ask | Ask HN β what practitioners are stuck on | ~30 items |
show | Show HN β what people are shipping | 200 items |
job | YC portfolio job posts (type: "job", no comments, score always 1) | ~30 items |
ask and job are short feeds upstream, so a large limit may return fewer stories than requested.
Prerequisites
- Python 3.11+
uvorpip- No API key required
- Optional:
GITHUB_TOKENfor higher GitHub rate limits
Installation
# Recommended: uvx (no install step needed)
uvx hn-tech-signal-mcp
# Alternative: pip
pip install hn-tech-signal-mcp
Quickstart
# Start the server (stdio mode for Claude Desktop)
uvx hn-tech-signal-mcp
# With optional GitHub token for higher rate limits
GITHUB_TOKEN=ghp_yourtoken uvx hn-tech-signal-mcp
Try immediately in Claude Desktop:
"Give me a tech signal digest on AI today" "What are the latest cs.AI papers from the last 48 hours?" "What is HackerNews discussing about MCP this week?" "Show me trending GitHub repos for the topic 'ai-agents'"
Configuration
Environment Variables
| Variable | Default | Description |
|---|---|---|
GITHUB_TOKEN | β | Optional. GitHub personal access token. Without it: 60 req/h. With it: 5,000 req/h. The token is only sent to api.github.com, never to other upstreams. |
MCP_TRANSPORT | stdio | Transport: stdio or streamable_http |
MCP_HOST | 127.0.0.1 | Bind host for HTTP transport. Non-loopback values require MCP_BEARER_TOKEN. |
MCP_PORT | 8000 | Port for HTTP transport |
MCP_BEARER_TOKEN | β | Required when MCP_HOST is not loopback. Shared secret to gate the HTTP endpoint. |
Claude Desktop Configuration
{
"mcpServers": {
"hn-tech-signal": {
"command": "uvx",
"args": ["hn-tech-signal-mcp"],
"env": {
"GITHUB_TOKEN": "ghp_yourtoken_optional"
}
}
}
}
Config file locations:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
After restarting Claude Desktop, all 7 tools are available.
Cloud Deployment (Streamable HTTP)
For use via claude.ai in the browser (e.g. on managed workstations):
Render.com (recommended):
- Push/fork the repository to GitHub
- On render.com: New Web Service β connect GitHub repo
- Optionally set
GITHUB_TOKENin the Render dashboard - In claude.ai under Settings β MCP Servers, add:
https://your-app.onrender.com/mcp
# Local HTTP mode (binds 127.0.0.1 by default)
MCP_TRANSPORT=streamable_http MCP_PORT=8000 python -m hn_tech_signal_mcp.server
# Public bind (requires bearer token, intended behind a reverse proxy that terminates TLS)
MCP_TRANSPORT=streamable_http \
MCP_HOST=0.0.0.0 \
MCP_BEARER_TOKEN="$(openssl rand -hex 32)" \
python -m hn_tech_signal_mcp.server
Hardening: the server refuses to bind to non-loopback hosts unless
MCP_BEARER_TOKENis set. Run cloud deployments behind a TLS-terminating reverse proxy (Render, Fly, Caddy, β¦) and treatMCP_BEARER_TOKENas the shared client secret your proxy enforces.
Architecture
βββββββββββββββββββ βββββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββ
β Claude / AI ββββββΆβ HN Tech Signal MCP ββββββΆβ HackerNews Firebase β
β (MCP Host) βββββββ (MCP Server) ββββββΆβ HN Algolia Search β
βββββββββββββββββββ β ββββββΆβ arXiv.org (Atom API) β
β 8 Tools ββββββΆβ Lobste.rs JSON API β
β Stdio | Streamable HTTP ββββββΆβ GitHub Search API β
βββββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββ
Architecture decision
This server uses Architecture A (live API only, two paths per source). There is no bulk dump to fall back on.
Rationale (verified live on 2026-07-28 against the official HackerNews API):
- All six feed endpoints (
{top,best,new,ask,show,job}stories.json) answer HTTP 200 with 29β500 IDs. No auth, no rate-limit headers,Cache-Control: no-cache. - HackerNews publishes no bulk export, so caching is entirely this server's responsibility. TTLs live in
CACHE_TTL. - The Firebase API has no search. Historical and full-text queries go through the Algolia index instead β that is the second path, used by
hn_search. item/<id>.jsonis one request per item. Feeds and comment threads therefore fan out, which is why both are bounded (HN_MAX_CONCURRENCY,max_comments).
Consequences:
- Every upstream call retries with exponential backoff (2s / 4s / 8s) on network errors, 5xx and 429. Other 4xx fail fast.
- One process-wide pooled
httpx.AsyncClient, closed via the FastMCP lifespan. - Unknown item IDs return HTTP 200 with a
nullbody rather than a 404 βhn_discussiontranslates that into an explicit "no item found" message.
Project Structure
hn-tech-signal-mcp/
βββ src/
β βββ hn_tech_signal_mcp/
β βββ __init__.py
β βββ server.py # All 8 tools
βββ tests/
β βββ __init__.py
β βββ test_server.py # 64 unit + 12 live tests
βββ pyproject.toml
βββ CHANGELOG.md
βββ CONTRIBUTING.md
βββ LICENSE
βββ README.md # This file (English)
βββ README.de.md # German version
Testing
# Unit tests (no network required)
PYTHONPATH=src pytest tests/ -m "not live"
# Live integration tests (requires network)
PYTHONPATH=src pytest tests/ -m "live"
Example Use Cases
KI-Fachgruppe / AI Working Group
"Give me a tech signal digest on AI today"
β tech_signal_digest(focus="AI")
"What are the top 5 arXiv papers on LLM agents this week?"
β arxiv_search(query="LLM agents", category_filter="cs.AI", limit=5)
"What is HackerNews discussing about model context protocol?"
β hn_search(query="model context protocol", days_back=30)
Research Monitoring
"Show me the latest NLP papers from arXiv"
β arxiv_latest(category="cs.CL", limit=10)
"Search arXiv for papers on retrieval-augmented generation"
β arxiv_search(query="retrieval augmented generation RAG", limit=10)
Open Source Intelligence
"What AI agent frameworks are trending on GitHub?"
β github_trending_ai(topic="ai-agents", sort="updated", limit=10)
"Show me the most starred MCP-related repos"
β github_trending_ai(topic="mcp", sort="stars", min_stars=50)
[β More use cases by audience β](EXAMPLES.md)
arXiv Category Reference
| Category | Full Name | Key Topics |
|---|---|---|
cs.AI | Artificial Intelligence | Agents, planning, knowledge representation |
cs.LG | Machine Learning | Training, optimisation, generalisation |
cs.CL | Computation & Language | NLP, LLMs, translation, summarisation |
cs.CV | Computer Vision | Image recognition, generation, multimodal |
cs.RO | Robotics | Embodied AI, navigation |
stat.ML | Statistics ML | Probabilistic methods, Bayesian ML |
Rate Limits
| Source | Auth Required | Limit |
|---|---|---|
| HackerNews Firebase | No | Very generous (Firebase) |
| HN Algolia Search | No | ~10,000 req/hour |
| arXiv | No | ~3 req/second (be respectful) |
| Lobste.rs | No | Reasonable use |
| GitHub Search | No | 60 req/hour |
| GitHub Search | GITHUB_TOKEN | 5,000 req/hour |
Known Limitations
- GitHub rate limit: 60 req/h without token. Set
GITHUB_TOKENfor production use. - arXiv: Papers may take up to 24h to appear after submission. Weekends/holidays have delayed batches.
- HackerNews: Top/best story lists update every few minutes. Very new stories may have low scores.
- HackerNews
ask/jobfeeds: Only ~30 items exist upstream, so a largelimitreturns fewer stories than requested. Job posts carrytype: "job", no comment count, and a score of 1. hn_discussionis always a sample, never the full thread: one request per comment upstream means popular stories (900+ comments) cannot be fetched whole. The budget is split across nesting levels and spread round-robin across sibling threads, so you get a representative cross-section rather than one exhaustively-read sub-thread. Check thetruncatedflag.hn_discussioncomment text is plain text, not HTML: HN's markup is stripped for readability. Do not re-render the output as HTML β the conversion is not a sanitiser.- Lobste.rs: Smaller community than HN; tech-focused but may not cover all AI topics.
- tech_signal_digest: Makes ~4 concurrent requests; if one source is slow it may delay the full response.
Synergies with Other MCP Servers
hn-tech-signal-mcp combines well with:
| Combination | Use Case |
|---|---|
+ news-monitor-mcp | Global research + Swiss institutional media coverage |
+ fedlex-mcp | Tech discourse + Swiss regulatory context |
+ global-education-mcp | AI research trends + education policy data |
+ swiss-statistics-mcp | Tech landscape + Swiss economic/structural data |
Safety & Limits
- Read-only: All tools perform HTTP GET requests only β no posts, comments, votes, or writes are issued upstream.
- No personal data: The server queries public tech aggregators. No PII is collected; author handles in public posts/papers are returned as-is from upstream and never enriched or cross-referenced.
- Rate limits: See the Rate Limits table. arXiv's β€3 req/sec guidance is respected by default; GitHub search is capped at 60 req/h without a
GITHUB_TOKEN. A request timeout is enforced per call. - No bulk harvesting: This server is built for interactive, conversational use β not for scraping or mirroring. Do not use it to bypass upstream pagination or ToS limits.
- Terms of service: Data is subject to the ToS of each source β HackerNews, arXiv API, Lobste.rs, GitHub.
- No guarantees: Community project, not affiliated with HackerNews / Y Combinator, arXiv / Cornell, Lobste.rs, or GitHub. Availability depends on upstream APIs.
Changelog
See CHANGELOG.md
Contributing
See CONTRIBUTING.md (Deutsch).
Security
See SECURITY.md (Deutsch) for the security posture and how to report a vulnerability.
License
MIT License β see LICENSE
Author
Hayal Oezkan Β· malkreide
Credits & Related Projects
- HackerNews API: hacker-news.firebaseio.com β Y Combinator / Firebase
- arXiv API: export.arxiv.org β Cornell University / arXiv.org
- Lobste.rs API: lobste.rs β community-run
- GitHub API: api.github.com β GitHub / Microsoft
- Protocol: Model Context Protocol β Anthropic / Linux Foundation
- Related: news-monitor-mcp β Swiss institutional media monitoring
- Portfolio: Swiss Public Data MCP Portfolio
Installation
Run via uv's uvx β no clone or manual install needed. Add to your MCP client config (mcpServers for Claude Desktop, Cursor and Windsurf; use a top-level servers key for VS Code in .vscode/mcp.json):
{
"mcpServers": {
"hn-tech-signal-mcp": {
"command": "uvx",
"args": [
"hn-tech-signal-mcp"
]
}
}
}