Hacker News MCP
Enables AI agents to access Hacker News data including stories, items, users, and comments via MCP tools.
README
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) |
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
- Fork the repository and create a branch from
main. - Install dependencies with
npm install. - Make your changes and verify them locally with
npm run dev. - Open a pull request describing what you changed and why.
Bug reports and feature ideas are welcome via GitHub Issues.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.