Skip to main content
Glama

Gmail & PostgreSQL MCP Server

by marouanemkm
test-server.shโ€ข1.05 kB
#!/bin/bash echo "๐Ÿงช Testing MCP Server..." echo "" # Test health endpoint echo "1๏ธโƒฃ Testing /health endpoint..." HEALTH=$(curl -s http://localhost:3000/health) if [ $? -eq 0 ]; then echo "โœ… Health check passed" echo " Response: $HEALTH" else echo "โŒ Health check failed - is the server running?" echo " Start it with: npm run dev:http" exit 1 fi echo "" # Test main endpoint echo "2๏ธโƒฃ Testing main endpoint (/)..." INFO=$(curl -s http://localhost:3000/) if [ $? -eq 0 ]; then echo "โœ… Server info retrieved" echo "$INFO" | python3 -m json.tool 2>/dev/null || echo "$INFO" else echo "โŒ Failed to get server info" exit 1 fi echo "" echo "โœ… All tests passed!" echo "" echo "๐Ÿ“ Server is running at: http://localhost:3000" echo "๐Ÿ“ For n8n, use endpoint: http://localhost:3000/sse" echo "" echo "๐Ÿ”— Available endpoints:" echo " โ€ข Health: http://localhost:3000/health" echo " โ€ข Info: http://localhost:3000/" echo " โ€ข SSE: http://localhost:3000/sse (for n8n)"

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/marouanemkm/gmail-mcp-server'

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