Skip to main content
Glama

Hacker News MCP Server

Hacker News MCP Server

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:

{ "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:

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. It uses the official Hacker News API and Algolia Search API to provide comprehensive access to Hacker News data through the Model Context Protocol.

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Adds powerful Hacker News integration to LLM clients, allowing users to access stories, comments, user profiles, and search functionality through the Model Context Protocol.

  1. Features
    1. Set Up
      1. Running on Claude Desktop
      2. Installing via Smithery
    2. Tools
      1. Contributing
    3. License
      1. About

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          A Model Context Protocol (MCP) server that provides tools for searching and fetching information from Hacker News.
          Last updated -
          4
          50
          Python
          MIT License
          • Apple
        • -
          security
          A
          license
          -
          quality
          A comprehensive toolkit that enhances LLM capabilities through the Model Context Protocol, allowing LLMs to interact with external services including command-line operations, file management, Figma integration, and audio processing.
          Last updated -
          22
          Python
          Apache 2.0
          • Linux
          • Apple
        • A
          security
          F
          license
          A
          quality
          Enables interaction with lightning addresses and common lightning tools via your LLM, providing Lightning Network functionality through natural language.
          Last updated -
          3
          10
          1
          TypeScript
        • A
          security
          F
          license
          A
          quality
          A Model Context Protocol server that enables AI tools like Claude and Cursor to fetch and interact with live Hacker News data (posts, comments, users) via standardized MCP endpoints.
          Last updated -
          11
          666
          28
          TypeScript

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/devabdultech/hn-mcp'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server