Overview
Hacker News MCP Server is an integration tool that allows users to access and interact with Hacker News data through the Model Context Protocol, enhancing the functionality of LLM clients like Cursor and Claude.
To use the Hacker News MCP Server, you need to configure it in your LLM client by adding specific commands to your configuration file, allowing you to access stories, comments, and user profiles from Hacker News.
- Search stories and comments using Algolia's HN Search API - Retrieve stories by type (top, new, best, ask, show, job) - Access individual stories with their comments - Get user profiles and their submissions - Real-time access to Hacker News data
- Searching for trending stories on Hacker News.
- Analyzing user discussions and comments on specific topics.
- Accessing user profiles to understand contributions and karma.
Add to your AI client
Use these steps to connect Hacker News MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"hn-mcp-devabdultech": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-hn-mcp-devabdultech"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"hn-mcp-devabdultech": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-hn-mcp-devabdultech"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"hn-mcp-devabdultech": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-hn-mcp-devabdultech"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"hn-mcp-devabdultech": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-hn-mcp-devabdultech"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"hn-mcp-devabdultech": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-hn-mcp-devabdultech"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"hn-mcp-devabdultech": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-hn-mcp-devabdultech"
]
}
}
}FAQ
What is the Model Context Protocol?
The Model Context Protocol is a framework that allows LLM clients to interact with various data sources seamlessly.
Is there a limit to the number of stories I can fetch?
Yes, the maximum number of stories you can fetch in a single request is 100.
Can I contribute to the Hacker News MCP Server?
Yes! You can contribute by forking the repository and submitting a pull request with your changes.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1842,"uuid":"814ca25b-9462-4aed-967c-e7cec2e2a006","name":"hn-mcp","title":"Hacker News MCP Server","description":"Hacker News MCP Server","avatar_url":"https://avatars.githubusercontent.com/u/60513141?v=4","created_at":"2025-03-05T05:37:24.917Z","updated_at":"2025-03-12T10:21:17.180Z","status":"created","author_name":"devabdultech","author_avatar_url":"https://avatars.githubusercontent.com/u/60513141?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/devabdultech/hn-mcp","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/bce917be39b10c16039d955830d14cb02e785b06cd3ec81ff84a4f8cf4c30b0f/68747470733a2f2f736d6974686572792e61692f62616467652f40646576616264756c746563682f686e2d6d6370","type":null,"metadata":"{\"star\":\"3\",\"license\":\"MIT license\",\"language\":\"JavaScript\",\"is_official\":false,\"latest_commit_time\":\"2025-04-05 05:26:27\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]