# Hn MCP Server

> Hn MCP Server is an MCP server. Model Context Protocol server for HackerNews API access. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **MCP Registry name:** io.github.wei/hn-mcp-server
- **Listing updated:** 2026-11-13

## About

Model Context Protocol server for HackerNews API access.

## Install

### Claude Code (Terminal)

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

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "hn-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "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

---
Source: https://ai-powered.com/mcp/hn-mcp-server-2
