Skip to main content
Glama

MCP Complete Implementation Guide

by saksham0712
start-mcp-server.ps1•1.46 kB
#!/usr/bin/env pwsh # MCP Server Startup Script Write-Host "šŸš€ Starting MCP Server..." -ForegroundColor Green # Check if Node.js is installed try { $nodeVersion = node --version Write-Host "āœ… Node.js version: $nodeVersion" -ForegroundColor Green } catch { Write-Host "āŒ Node.js not found. Please install Node.js first." -ForegroundColor Red exit 1 } # Check if dependencies are installed if (!(Test-Path "node_modules")) { Write-Host "šŸ“¦ Installing dependencies..." -ForegroundColor Yellow npm install } # Kill any existing server on port 3000 $existingProcess = Get-Process -Name node -ErrorAction SilentlyContinue | Where-Object { (netstat -ano | findstr ":3000") -match $_.Id } if ($existingProcess) { Write-Host "šŸ”„ Stopping existing server on port 3000..." -ForegroundColor Yellow Stop-Process -Id $existingProcess.Id -Force Start-Sleep -Seconds 2 } # Start the MCP server Write-Host "🌟 Starting MCP Server on port 3000..." -ForegroundColor Cyan Write-Host "Health check: http://localhost:3000/health" -ForegroundColor Cyan Write-Host "Test interface: file:///$PWD/test-interface.html" -ForegroundColor Cyan Write-Host "" Write-Host "Press Ctrl+C to stop the server" -ForegroundColor Yellow Write-Host "===========================================" -ForegroundColor Green try { node server.js } catch { Write-Host "āŒ Failed to start MCP server: $_" -ForegroundColor Red exit 1 }

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/saksham0712/MCP'

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