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.
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/booklib-ai/hn-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server