Hacker News MCP serverand Python AI tasks
qbash hosts a Hacker News MCP server you can use in Claude, ChatGPT, Codex, Cursor, Grok Bot and Muse.
Developers use qbash Tasks to write cloud-hosted Python functions that pair Hacker News with models such as Claude and GPT.
MCP server
Build a Hacker News MCP server
Give ChatGPT, Claude and your other AI tools access to Hacker News through one server. You pick which Hacker News tools it shares, and you can add other connectors, memory folders and Tasks to the same server.
How to set it up
- Connect Hacker News on the qbash Connectors page.
- Create an MCP server and add the Hacker News tools you want to share.
- Paste the server URL into your client. It connects with OAuth or an access token.
Python AI task
Write a Hacker News task in Python
A qbash Task is a hosted Python function that calls Hacker News and AI models.
Summarise this week’s database discussions
Search stories from the last seven days, then ask an inline prompt to write a digest with discussion links.
since = int((datetime.now(timezone.utc) - timedelta(days=7)).timestamp())
report = qbash.integrations.hackernews.search_by_date(
query="database",
tags="story",
numeric_filters=f"created_at_i>{since}",
hits_per_page=20,
page=0,
)
hits = report.get("result", {}).get("hits", [])
if hits:
digest = qbash.ai.run_prompt(
slug="hackernews-digest",
variables={"stories": json.dumps(hits)},
)
qbash.output(digest)
else:
qbash.output("No matching stories were returned for this week.")
Sample search_by_date response
{
"status": "success",
"result": {
"hits": [
{
"objectID": "123",
"title": "Testing a new database engine",
"url": "https://example.com/database",
"created_at_i": 1790672400
}
],
"page": 0,
"nbPages": 1,
"nbHits": 1
}
}
What the Hacker News connector can do
- Search Hacker News by relevance
- Search Hacker News by newest items first
- List current Hacker News front-page stories
- Fetch a Hacker News item and its nested children
- Fetch Hacker News user metadata
qbash Tasks: AI applications in Python
A Task is a Python function that calls Hacker News, your other connectors and models such as Claude, GPT, Gemini and Grok. qbash hosts and runs it.
Run Tasks on a schedule or from your team's tools
- Deterministic where it counts Write the logic in Python and call a model only for the steps that need judgement, so the rest runs the same way every time.
- Version controlled Every save is a revision you can compare and roll back.
- Logged Each run records its inputs, output, errors and what started it.
- Shared credentials Connections belong to your organization, so a Task keeps working when its author is away.
Hacker News MCP questions
Can it post, comment or vote on Hacker News?
No. The HN Search API is read-only, and all five methods read from it. Posting and voting happen only on news.ycombinator.com with a logged-in account.
Related research connectors
Build a Hacker News task
Write it in Python with AI steps, and qbash hosts it with versions and run logs.
Build a Hacker News MCP server
Pick the Hacker News tools to share and connect ChatGPT, Claude or Grok Bot.