Skip to content
MCP server

Hn MCP Server

Model Context Protocol server for HackerNews API access.

Runs locallyStatus and history
Runs
Locally
Version
1.1.0
Listing updated
4 days ago

About Hn MCP Server

Hn MCP Server is an MCP server. It runs locally on your machine and is started by your AI client.

Install

Run in a terminal

claude mcp add hn-mcp-server -- npx -y hn-mcp-server

Add to claude_desktop_config.json

{
  "mcpServers": {
    "hn-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "hn-mcp-server"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "hn-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "hn-mcp-server"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "hn-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "hn-mcp-server"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "hn-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "hn-mcp-server"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "hn-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "hn-mcp-server"
      ]
    }
  }
}

Hn MCP Server FAQ

How do I add Hn MCP Server to Claude Code?

Run this command in your terminal: claude mcp add hn-mcp-server -- npx -y hn-mcp-server