Thanks to visit codestin.com
Credit goes to github.com

Skip to content

An integration that allows Claude Desktop to interact with Hacker News using the Model Context Protocol (MCP).

License

Notifications You must be signed in to change notification settings

mpress001/mcp-claude-hackernews

Repository files navigation

MCP Claude Hacker News Integration 🚀

MCP Claude Hacker News

Welcome to the MCP Claude Hacker News repository! This project allows Claude Desktop to seamlessly interact with Hacker News using the Model Context Protocol (MCP). Here, you will find all the necessary information to get started, understand the integration, and contribute to the project.

Table of Contents

Introduction

Hacker News is a social news website focusing on computer science and entrepreneurship. It allows users to submit articles, comment on posts, and vote on submissions. This integration enhances the Claude Desktop experience by enabling it to pull data from Hacker News through a simple and efficient API.

The Model Context Protocol (MCP) provides a framework for communication between Claude Desktop and various data sources, including Hacker News. With this integration, users can quickly access news articles, comments, and other relevant information without leaving the Claude environment.

Features

  • Real-time Updates: Get the latest Hacker News articles directly in Claude Desktop.
  • Search Functionality: Search for specific articles or topics with ease.
  • User Interaction: View comments and engage with other users on Hacker News.
  • Customizable Settings: Adjust preferences to suit your workflow.

Installation

To install the MCP Claude Hacker News integration, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/mpress001/mcp-claude-hackernews.git
    cd mcp-claude-hackernews
  2. Install Dependencies: Ensure you have Node.js installed. Then run:

    npm install
  3. Run the Server: Start the integration server with:

    npm start

Usage

Once the server is running, you can use Claude Desktop to interact with Hacker News. Here are some common commands:

  • Fetch Latest Articles: Use the command fetch latest articles to get the most recent submissions.

  • Search Articles: To search for articles, use search for [keyword]. Replace [keyword] with your desired search term.

  • View Comments: To see comments on a specific article, use view comments for article [ID]. Replace [ID] with the article's ID.

API Documentation

The integration uses the Hacker News API to fetch data. Below are some key endpoints:

  • Get Latest Stories:

    • Endpoint: /v0/newstories.json
    • Description: Returns a list of the latest article IDs.
  • Get Article Details:

    • Endpoint: /v0/item/[ID].json
    • Description: Returns details for a specific article, including title, URL, and comments.
  • Get User Comments:

    • Endpoint: /v0/user/[username].json
    • Description: Returns comments made by a specific user.

Contributing

We welcome contributions to enhance the MCP Claude Hacker News integration. Here’s how you can help:

  1. Fork the Repository: Create your own copy of the project.
  2. Create a Branch: Make a new branch for your feature or bug fix.
  3. Make Changes: Implement your changes and test them.
  4. Submit a Pull Request: Share your improvements with the community.

Please ensure your code adheres to the project's coding standards and is well-documented.

License

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

Contact

For questions or feedback, please reach out to the project maintainer:

Releases

To download the latest release, visit our Releases section. You can find the necessary files to be downloaded and executed there.

For updates, keep an eye on the releases page or subscribe to notifications.


Thank you for your interest in the MCP Claude Hacker News integration! We hope you find it useful and engaging. Happy coding!

About

An integration that allows Claude Desktop to interact with Hacker News using the Model Context Protocol (MCP).

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •