We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/saxyguy81/mcp-keap'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
check_server.py•566 B
#!/usr/bin/env python
"""
Check if the MCP server is running
"""
import requests
print('Checking server status...')
try:
response = requests.get('http://localhost:5004/health', timeout=2)
print(f'Server responded with status code: {response.status_code}')
if response.status_code == 200:
print('Server is running!')
print(response.json())
else:
print('Server is not responding correctly.')
except Exception as e:
print(f'Error connecting to server: {e}')
print('The server may not be running or is not accessible.')