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.
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.
- 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.
To install the MCP Claude Hacker News integration, follow these steps:
-
Clone the Repository:
git clone https://github.com/mpress001/mcp-claude-hackernews.git cd mcp-claude-hackernews -
Install Dependencies: Ensure you have Node.js installed. Then run:
npm install
-
Run the Server: Start the integration server with:
npm start
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 articlesto 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.
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.
- Endpoint:
-
Get Article Details:
- Endpoint:
/v0/item/[ID].json - Description: Returns details for a specific article, including title, URL, and comments.
- Endpoint:
-
Get User Comments:
- Endpoint:
/v0/user/[username].json - Description: Returns comments made by a specific user.
- Endpoint:
We welcome contributions to enhance the MCP Claude Hacker News integration. Here’s how you can help:
- Fork the Repository: Create your own copy of the project.
- Create a Branch: Make a new branch for your feature or bug fix.
- Make Changes: Implement your changes and test them.
- 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.
This project is licensed under the MIT License. See the LICENSE file for details.
For questions or feedback, please reach out to the project maintainer:
- Name: Your Name
- Email: [email protected]
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!