Skip to main content
Glama
Dhanush-git

Hacker News MCP

by Dhanush-git

Hacker News MCP

An MCP server that exposes Hacker News data as tools for AI agents. Built on Cloudflare Workers with the Agents SDK.

Data comes from the Hacker News Firebase API.

Tools

Tool

Description

get-item

Get any item by ID (story, comment, job, poll, or poll option)

get-top-stories

Top stories (optional limit, default 30)

get-new-stories

Newest stories

get-best-stories

Best stories

get-ask-stories

Ask HN stories

get-show-stories

Show HN stories

get-job-stories

Job postings

get-user

User profile by username

get-comments

Top-level comments for a story (id required, optional limit)

Related MCP server: HackerNews MCP Server

Setup

npm install

Development

npm run dev

Starts a local Worker with Wrangler. Point your MCP client at the local endpoint once it's running.

Deploy

npm run deploy

Deploys to Cloudflare Workers. After deploy, connect your MCP client to the Worker URL.

Project structure

src/
  main.ts              # MCP server entrypoint
  tools/               # Individual tool handlers
  utils/registerTools.ts
wrangler.jsonc         # Cloudflare Workers config

Contributing

  1. Fork the repository and create a branch from main.

  2. Install dependencies with npm install.

  3. Make your changes and verify them locally with npm run dev.

  4. Open a pull request describing what you changed and why.

Bug reports and feature ideas are welcome via GitHub Issues.

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Dhanush-git/hacker-news-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server