hn-mcp
Provides search capabilities over Hacker News submissions via the Algolia API.
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., "@hn-mcpCheck my recent HN submissions"
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.
🟠hn-mcp — Post to Hacker News via MCP
The only MCP server that can write to Hacker News. All 7+ existing HN MCP servers are read-only. This one submits stories, posts comments, and checks your submissions.
Tools
Tool | What it does |
| Login to HN (persists cookies across restarts) |
| Submit a story (link post or Ask HN) |
| Post a comment or reply |
| Check your recent posts with scores |
| Search HN via Algolia |
Related MCP server: Hacker News MCP Server
Setup
cd hn-mcp
uv syncClaude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"hackernews": {
"command": "uv",
"args": ["run", "--directory", "/Users/YOU/path/to/hn-mcp", "python3", "server.py"],
"env": {
"HN_USERNAME": "your_hn_username",
"HN_PASSWORD": "your_hn_password"
}
}
}
}Cursor / Windsurf
Add to your MCP config:
{
"hackernews": {
"command": "uv",
"args": ["run", "--directory", "/Users/YOU/path/to/hn-mcp", "python3", "server.py"],
"env": {
"HN_USERNAME": "your_hn_username",
"HN_PASSWORD": "your_hn_password"
}
}
}Usage
Just talk naturally:
"Submit my dispatch to Hacker News as Show HN"
"Post a comment on item 12345 explaining our scanner"
"Check how my last HN submission is doing"
"Search HN for axios supply chain attack"
How it works
HN has no write API. This server:
Logs in via HTTP POST with session cookies
Extracts FNID/HMAC CSRF tokens from forms
Submits via POST (same as clicking "submit" in the browser)
Persists cookies to
~/.hn-mcp-cookies.pklfor reuse
Security
Credentials via environment variables (never in code)
Session cookies at
~/.hn-mcp-cookies.pklNo data sent anywhere except
news.ycombinator.comandhn.algolia.com
License
MIT — booklib-ai
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceA Model Context Protocol (MCP) server that provides tools for searching and fetching information from Hacker News.Last updated474MIT
- AlicenseDqualityDmaintenanceAn MCP server that enables AI assistants to access real-time Hacker News data including top stories, story details, comments, and search functionality.Last updated11523MIT
- Alicense-qualityAmaintenanceMCP server for Hacker News providing tools to fetch stories, threads, users, and search content via Firebase and Algolia APIs.Last updated3994Apache 2.0
- AlicenseAqualityDmaintenanceMCP server for Hacker News that enables AI agents to search stories, read comments, and track tech trends via the public Hacker News API and Algolia HN Search.Last updated10194MIT
Related MCP Connectors
Hacker News MCP — search and retrieve stories from Hacker News
Deterministic Hacker News developer sentiment, themes & feature requests via MCP. No API key.
Search Hacker News, Bluesky, and Substack from a single MCP interface
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/booklib-ai/hn-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server