We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ebaenamar/wikidata-mcp-mirror'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
entrypoint.sh•1.04 kB
#!/bin/bash
set -e
# Set default values
: ${WORKERS:=4}
: ${TIMEOUT:=120}
: ${KEEPALIVE:=5}
: ${PORT:=8000}
# Change to the source directory
cd /app
# If command starts with an option, prepend gunicorn
if [ "${1:0:1}" = '-' ]; then
set -- gunicorn "$@"
fi
# Default to running the MCP server if no command is specified
if [ "$1" = 'server' ] || [ "$1" = 'gunicorn' ]; then
echo "Starting Wikidata MCP Server with FastMCP configuration..."
echo "Environment: PORT=${PORT:-10000}"
# Set FastMCP environment variables for deployment
export FASTMCP_HOST="0.0.0.0"
export FASTMCP_PORT="${PORT:-10000}"
# Execute the server with the correct Python path
cd /app
exec python server_sse.py
else
# Execute any other command
exec "$@"
fi
# Wait for any services to be available (e.g., Redis, etc.)
# Example:
# while ! nc -z redis 6379; do
# echo "Waiting for Redis..."
# sleep 1
# done
# Run database migrations if needed
# Example:
# python manage.py migrate
# Start the server
exec "$@"