Skip to main content
Glama

HackerNews MCP Server

by wei
install.sh•1.66 kB
#!/bin/bash # HackerNews MCP Server - Quick Install Script echo "šŸš€ Installing HackerNews MCP Server..." echo "" # Check if Node.js is installed if ! command -v node &> /dev/null; then echo "āŒ Node.js is not installed. Please install Node.js 18 or higher." echo " Visit: https://nodejs.org/" exit 1 fi # Check Node.js version NODE_VERSION=$(node -v | cut -d'v' -f2 | cut -d'.' -f1) if [ "$NODE_VERSION" -lt 18 ]; then echo "āŒ Node.js version 18 or higher is required. You have version $(node -v)" exit 1 fi echo "āœ“ Node.js $(node -v) detected" echo "" # Install dependencies echo "šŸ“¦ Installing dependencies..." npm install if [ $? -ne 0 ]; then echo "āŒ Failed to install dependencies" exit 1 fi echo "āœ“ Dependencies installed" echo "" # Build the project echo "šŸ”Ø Building project..." npm run build if [ $? -ne 0 ]; then echo "āŒ Failed to build project" exit 1 fi echo "āœ“ Build complete" echo "" # Get the absolute path SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" echo "āœ… Installation complete!" echo "" echo "šŸ“ Next steps:" echo "" echo "1. Add this to your Claude Desktop config:" echo " Location: ~/Library/Application Support/Claude/claude_desktop_config.json" echo "" echo " {" echo " \"mcpServers\": {" echo " \"hackernews\": {" echo " \"command\": \"node\"," echo " \"args\": [\"$SCRIPT_DIR/build/index.js\"]" echo " }" echo " }" echo " }" echo "" echo "2. Restart Claude Desktop" echo "" echo "3. Start using HackerNews tools in Claude!" echo "" echo "šŸ“š For more information, see README.md and EXAMPLES.md"

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/wei/hn-mcp-server-vibe'

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