# Start both backend and frontend in development modepnpm dev# This will start:# - Backend on http://localhost:3001# - Frontend on http://localhost:5173# - Frontend proxies API calls to backend
# Backend only (for API development)pnpm backend:dev# Frontend only (when backend is running separately)pnpm frontend:dev# Run testspnpm test# Lint codepnpm lint# Format codepnpm format
On Windows, you may need to run backend and frontend separately:
# Run PostgreSQL with pgvectordocker run -d \ --name mcphub-postgres \ -e POSTGRES_DB=mcphub \ -e POSTGRES_USER=mcphub \ -e POSTGRES_PASSWORD=your_password \ -p 5432:5432 \ pgvector/pgvector:pg16
If you have an existing PostgreSQL instance:
-- Connect to your PostgreSQL instance-- Create databaseCREATE DATABASE mcphub;-- Connect to the mcphub database\c mcphub;-- Enable pgvector extensionCREATE EXTENSION IF NOT EXISTS vector;
For cloud providers (AWS RDS, Google Cloud SQL, etc.):
Enable the pgvector extension in your cloud provider’s console
Log in with username admin. On first launch, if no ADMIN_PASSWORD environment variable is set, a random password is generated and printed to the server logs.
# Check what's using port 3000lsof -i :3000# Use a different portdocker run -p 8080:3000 samanhappy/mcphub
Container won’t start:
# Check container logsdocker logs mcphub# Run interactively for debuggingdocker run -it --rm samanhappy/mcphub /bin/bash
npm Installation Issues
Permission errors:
# Use npx instead of global installnpx @samanhappy/mcphub# Or fix npm permissionsnpm config set prefix ~/.npm-globalexport PATH=~/.npm-global/bin:$PATH
Node version issues:
# Check Node versionnode --version# Install Node 18+ using nvmnvm install 18nvm use 18
Network Issues
Can’t access dashboard:
Check if MCPHub is running: ps aux | grep mcphub
Verify port binding: netstat -tlnp | grep 3000
Check firewall settings
Try accessing via 127.0.0.1:3000 instead of localhost:3000
AI clients can’t connect:
Ensure the endpoint URL is correct
Check if MCPHub is behind a proxy
Verify network policies in Kubernetes/Docker environments
Smart Routing Issues
Database connection failed:
# Test database connectionpsql $DB_URL -c "SELECT 1;"# Check if pgvector is installedpsql $DB_URL -c "CREATE EXTENSION IF NOT EXISTS vector;"