# Hn Mcp

> Hacker News MCP Server

- **Type:** MCP server
- **Install:** `agentstack add mcp-devabdultech-hn-mcp`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [devabdultech](https://agentstack.voostack.com/s/devabdultech)
- **Installs:** 0
- **Category:** [Integrations](https://agentstack.voostack.com/c/integrations)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [devabdultech](https://github.com/devabdultech)
- **Source:** https://github.com/devabdultech/hn-mcp

## Install

```sh
agentstack add mcp-devabdultech-hn-mcp
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Hacker News MCP Server

[](https://smithery.ai/server/@devabdultech/hn-mcp)
Official Hacker News MCP Server - Adds powerful Hacker News integration to Cursor, Claude, and any other LLM clients. Access stories, comments, user profiles, and search functionality through the Model Context Protocol.

  

## Features

- Search stories and comments using Algolia's HN Search API
- Get stories by type (top, new, best, ask, show, job)
- Get individual stories with comments
- Get comment trees and user discussions
- Get user profiles and submissions
- Real-time access to Hacker News data

## Set Up

### Running on Claude Desktop

Add this to your `claude_desktop_config.json`:

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

### Installing via Smithery

To install Hacker News MCP Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@devabdultech/hn-mcp):

```bash
npx -y @smithery/cli install @devabdultech/hn-mcp --client claude
```

## Tools

1. `search`
   * Search for stories and comments on Hacker News using Algolia's search API
   * Inputs:
         * `query` (string): Search query
         * `type` (optional string): Filter by type ('story' or 'comment')
         * `page` (optional number): Page number for pagination
         * `hitsPerPage` (optional number): Results per page (max 100)
   * Returns: Search results with stories and comments

2. `getStories`
   * Get multiple stories by type (top, new, best, ask, show, job)
   * Inputs:
         * `type` (string): Type of stories to fetch ('top', 'new', 'best', 'ask', 'show', 'job')
         * `limit` (optional number): Number of stories to fetch (max 100)
   * Returns: Array of story objects

3. `getStoryWithComments`
   * Get a story along with its comment thread
   * Inputs:
         * `id` (number): Story ID
   * Returns: Story details with nested comments

4. `getCommentTree`
   * Get the full comment tree for a story
   * Inputs:
         * `storyId` (number): ID of the story
   * Returns: Hierarchical comment tree structure

5. `getUser`
   * Get a user's profile information
   * Inputs:
         * `id` (string): Username
   * Returns: User profile details including karma, created date, and about text

6. `getUserSubmissions`
   * Get a user's submissions (stories and comments)
   * Inputs:
         * `id` (string): Username
   * Returns: Array of user's submitted stories and comments

### Contributing

1. Fork the repository
2. Create your feature branch
3. Commit your changes
4. Push to the branch
5. Create a new Pull Request

## License

This MCP server is licensed under the MIT License. See the LICENSE file for details.

## About

This MCP server is built and maintained by [devabdultech](https://github.com/devabdultech). It uses the official Hacker News API and Algolia Search API to provide comprehensive access to Hacker News data through the Model Context Protocol.

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [devabdultech](https://github.com/devabdultech)
- **Source:** [devabdultech/hn-mcp](https://github.com/devabdultech/hn-mcp)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** yes
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-devabdultech-hn-mcp
- Seller: https://agentstack.voostack.com/s/devabdultech
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
