Back to Home
WidgetA icon

ph_mcp_server

Verified Safe

by WidgetA

Overview

Provides Product Hunt, GitHub Trending, and US tech stock data to AI assistants via an HTTP JSON-RPC server following the Model Context Protocol (MCP).

Installation

Run Command
./run.sh

Environment Variables

  • SUPABASE_URL
  • SUPABASE_KEY
  • GITHUB_SUPABASE_URL
  • GITHUB_SUPABASE_KEY
  • POSTGRES_HOST
  • POSTGRES_PORT
  • POSTGRES_DB
  • POSTGRES_USER
  • POSTGRES_PASSWORD
  • PRODUCTS_TABLE
  • REPORTS_TABLE
  • GITHUB_REPORTS_TABLE
  • STOCK_TABLE
  • MCP_SERVER_PORT
  • MCP_SERVER_HOST

Security Notes

The server uses environment variables for all sensitive configurations (database URLs, API keys, credentials), preventing hardcoded secrets. Database queries within `SupabaseService` leverage the `supabase-py` client's methods (e.g., `.eq()`, `.ilike()`) which are generally safe against SQL injection for input values. `StockService` uses `psycopg2` with parameter binding (`%s`) for user-controlled values, which is secure. Table and schema names are interpolated via f-strings from environment variables, which is acceptable as these are controlled server-side settings, not direct user input. No `eval` or suspicious dynamic code execution is observed. The deployment instructions suggest running on port 8080 and require external infrastructure (e.g., reverse proxy) for HTTPS in production, which is a standard and secure practice.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassLow
Avg Tokens300
Stars0
Forks0
Last Update2025-11-25

Tags

MCP ServerJSON-RPCData AccessSupabasePostgreSQL