booklib-ai/hn-mcp
🟠The only MCP server that can POST to Hacker News. Submit stories, post comments, check submissions.
Platform-specific configuration:
{
"mcpServers": {
"hn-mcp": {
"command": "npx",
"args": [
"-y",
"hn-mcp"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
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.
| Tool | What it does | |------|-------------| | hn_login | Login to HN (persists cookies across restarts) | | hn_submit | Submit a story (link post or Ask HN) | | hn_comment | Post a comment or reply | | hn_my_submissions | Check your recent posts with scores | | hn_search | Search HN via Algolia |
cd hn-mcp
uv syncAdd 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"
}
}
}
}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"
}
}
}Just talk naturally:
HN has no write API. This server:
~/.hn-mcp-cookies.pkl for reuse~/.hn-mcp-cookies.pklnews.ycombinator.com and hn.algolia.comMIT — [booklib-ai](https://github.com/booklib-a
Loading reviews...