Skip to main content
Glama

MCP Complete Implementation Guide

by saksham0712
start-chatgpt-proxy.ps1•1.81 kB
#!/usr/bin/env pwsh # ChatGPT Proxy Startup Script Write-Host "šŸ¤– Starting ChatGPT Proxy Server..." -ForegroundColor Green # Check if OpenAI API key is set if (-not $env:OPENAI_API_KEY -and -not (Get-Content .env | Select-String "OPENAI_API_KEY=")) { Write-Host "āš ļø Warning: OpenAI API key not found in .env file" -ForegroundColor Yellow Write-Host " Please add your OpenAI API key to the .env file:" -ForegroundColor Yellow Write-Host " OPENAI_API_KEY=your_api_key_here" -ForegroundColor Cyan } # Kill any existing server on port 3001 $existingProcess = Get-Process -Name node -ErrorAction SilentlyContinue | Where-Object { (netstat -ano | findstr ":3001") -match $_.Id } if ($existingProcess) { Write-Host "šŸ”„ Stopping existing server on port 3001..." -ForegroundColor Yellow Stop-Process -Id $existingProcess.Id -Force Start-Sleep -Seconds 2 } # Start the ChatGPT proxy server Write-Host "🌟 Starting ChatGPT Proxy Server on port 3001..." -ForegroundColor Cyan Write-Host "Health check: http://localhost:3001/health" -ForegroundColor Cyan Write-Host "Chat interface: file:///$PWD/chatgpt-interface.html" -ForegroundColor Cyan Write-Host "" Write-Host "šŸ“ This proxy enables ChatGPT to use MCP tools:" -ForegroundColor Green Write-Host " • File system operations" -ForegroundColor White Write-Host " • System information" -ForegroundColor White Write-Host " • Web scraping" -ForegroundColor White Write-Host " • Command execution" -ForegroundColor White Write-Host "" Write-Host "Press Ctrl+C to stop the proxy" -ForegroundColor Yellow Write-Host "===========================================" -ForegroundColor Green try { node chatgpt-proxy.js } catch { Write-Host "āŒ Failed to start ChatGPT proxy: $_" -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