hacker-news-mcp
Provides search capabilities for Hacker News stories, comments, and users via Algolia's Hacker News Search API, supporting queries, filtering, and pagination.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@hacker-news-mcpSearch Ask HN for pain points about SaaS pricing"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
hacker-news-mcp
A TypeScript MCP server for Hacker News with a practical founder-research layer on top.
It still gives you the raw Hacker News primitives you expect, but it also helps with the things indie developers actually care about:
finding
Show HNlaunches in a nichemining
Ask HNthreads for pain pointssummarizing long discussions quickly
extracting product, launch, and monetization signals
comparing multiple launches for patterns
This project uses the official Hacker News API plus Algolia's Hacker News Search API. There are no external AI APIs, no database, and no browser automation.
What This MCP Can Do
Base Hacker News tools
searchgetStorygetStoryWithCommentsgetStoriesgetCommentgetCommentsgetCommentTreegetUsergetUserSubmissions
Founder-research tools
findShowHNfindAskHNsummarizeThreadextractStartupInsightscompareLaunches
Related MCP server: HN-MCP
Tool Overview
findShowHN
Search Show HN posts by keyword with optional filters.
Inputs:
query: stringpage?: numberhitsPerPage?: numberminPoints?: numberminComments?: numberdateFrom?: stringdateTo?: string
Returns normalized results with:
idtitleurlauthorpointsnumCommentscreatedAthnUrltextPreview
findAskHN
Search Ask HN posts for pain points and demand signals.
Inputs are the same as findShowHN.
summarizeThread
Summarize a story and comment thread using deterministic heuristics.
Inputs:
storyId: numbermaxDepth?: numbermaxComments?: number
Returns:
story metadata
key discussion themes
notable pros
notable cons
repeated questions
feature requests
sentiment snapshot
top comments used
extractStartupInsights
Extract founder-relevant signals from either one thread or a query.
Inputs:
storyId?: numberquery?: stringsourceType?: "show" | "ask" | "story" | "comment"maxItems?: number
Returns:
targetUserspainPointsalternativesMentionedobjectionsmonetizationSignalslaunchFeedbackopportunitiesrisksrecommendedFollowupslowConfidenceAreas
compareLaunches
Compare multiple Show HN launches.
Inputs:
storyIds: number[]
Returns:
launch-by-launch comparison
title style patterns
topic categories
common praise
common criticism
likely traction drivers
skipped IDs when some stories cannot be loaded
Example Prompts
"Find Show HN launches about CRM tools for founders with at least 30 comments."
"Search Ask HN for pain points around bookkeeping automation."
"Summarize HN thread
43130155withmaxDepth2 andmaxComments40.""Extract startup insights from story
43130155.""Analyze Ask HN results for
manual invoicingand return pain points plus monetization signals.""Compare Show HN launches
43130155,42302015, and41806551."
Local Development
Requirements
Node.js 18+
npm
Install
npm installBuild
npm run buildTest
npm testRun locally
node dist/index.jsConnect to MCP Clients
Build the server first:
npm install
npm run buildThen point your MCP client at the compiled entrypoint:
/absolute/path/to/hacker-news-mcp/dist/index.jsReplace /absolute/path/to/... with the real path on your machine.
Codex
If your Codex setup supports local stdio MCP servers, add an entry that runs:
{
"mcpServers": {
"hacker-news-mcp": {
"command": "node",
"args": ["/absolute/path/to/hacker-news-mcp/dist/index.js"]
}
}
}This is the same pattern used by other local MCP clients: Codex launches the server process for you, so you do not need to manually keep node dist/index.js running in another terminal.
Antigravity
If you use Antigravity as an MCP client, configure hacker-news-mcp as a local stdio server with the same command:
{
"mcpServers": {
"hacker-news-mcp": {
"command": "node",
"args": ["/absolute/path/to/hacker-news-mcp/dist/index.js"]
}
}
}If Antigravity expects an explicit transport type, use:
{
"mcpServers": {
"hacker-news-mcp": {
"type": "stdio",
"command": "node",
"args": ["/absolute/path/to/hacker-news-mcp/dist/index.js"]
}
}
}Claude Desktop
Add this to your MCP config:
{
"mcpServers": {
"hacker-news-mcp": {
"command": "node",
"args": ["/absolute/path/to/hacker-news-mcp/dist/index.js"]
}
}
}Cursor or other clients that expect type: "stdio"
{
"mcpServers": {
"hacker-news-mcp": {
"type": "stdio",
"command": "node",
"args": ["/absolute/path/to/hacker-news-mcp/dist/index.js"]
}
}
}Install via npx
If you publish the package later, the config can become:
{
"mcpServers": {
"hacker-news-mcp": {
"command": "npx",
"args": ["-y", "@devabdultech/hacker-news-mcp"]
}
}
}Generic stdio MCP clients
This server is intentionally simple:
transport:
stdioruntime:
nodeentrypoint:
dist/index.js
If a client supports local MCP servers, you usually only need:
command: "node"args: ["/absolute/path/to/hacker-news-mcp/dist/index.js"]
After changing the config:
Save the client configuration
Restart or reload the client
Ask the client to list tools or call
findShowHN
You only need to rebuild the server when the code changes. You do not need to manually run the server in the background for normal client usage.
Publish This Repo to GitHub for Free
If you have never published a project before, this is the straightforward path.
1. Make sure the repo is clean
Run:
npm run build
npm test2. Create a new empty GitHub repository
On GitHub:
Click
New repositoryName it
hacker-news-mcpLeave it empty
Do not add a README,
.gitignore, or license there
3. Initialize git locally
If this repo is not initialized yet:
git init -b main
git add .
git commit -m "Initial commit"4. Connect the GitHub remote
Replace YOUR_USERNAME below:
git remote add origin https://github.com/YOUR_USERNAME/hacker-news-mcp.git
git push -u origin mainIf GitHub asks for authentication, use GitHub Desktop, the GitHub CLI, or a personal access token in your normal setup.
Optional: Publish to npm Later
GitHub is free and easy.
npm publishing is separate.
Before publishing to npm, make sure:
the package name is available
your
npmaccount can publish the chosen scopethe README examples match the final package name
Current package name:
@devabdultech/hacker-news-mcpIf that scope is not the one you want long-term, change it before publishing to npm.
Risks and Gotchas
1. Git history reset
If you delete .git and reinitialize, you lose:
previous commits
original remote links
old branch history
That is fine if you want a fresh public repo, but it is not reversible unless you backed up the old .git directory first.
2. Secrets
Before publishing, check that you are not committing:
.envfilesAPI keys
tokens
private config files
local logs
This repo currently ignores common env files and .omx/, which is good.
3. Client config paths
If your MCP clients still point at the old folder path, they will fail.
Use:
/absolute/path/to/hacker-news-mcp/dist/index.js4. npm package name mismatch
GitHub repo names and npm package names do not have to match, but confusion there is a classic self-own.
If you publish to npm later, keep the README install command aligned with the real package name.
Project Structure
src/
api/ Hacker News and Algolia API clients
analysis/ Normalization, heuristics, and founder-research logic
models/ Lightweight domain models
schemas/ Zod request schemas
services/ Thin orchestration layer for higher-level tools
index.ts MCP server registration and tool handlers
tests/ Basic analysis tests
dist/ Compiled outputLicense
MIT. See LICENSE.
Maintenance
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
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/abanoub-ashraf/hacker-news-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server