Skip to main content
Glama

MLB Stats MCP Server

by jdguggs10
deploy.sh•1.09 kB
#!/bin/bash # MLB Stats MCP Server Deployment Script echo "šŸš€ Deploying MLB Stats MCP Server..." # Check if wrangler is installed if ! command -v wrangler &> /dev/null; then echo "āŒ Wrangler CLI not found. Please install it first:" echo " npm install -g wrangler" exit 1 fi # Check if logged in to Cloudflare if ! wrangler whoami &> /dev/null; then echo "šŸ” Please login to Cloudflare first:" echo " wrangler login" exit 1 fi # Deploy the worker echo "šŸ“¦ Deploying worker..." wrangler deploy if [ $? -eq 0 ]; then echo "āœ… Deployment successful!" echo "" echo "šŸ”§ To test your deployment:" echo " 1. Get your worker URL from the deployment output above" echo " 2. Run: node test-worker.js <your-worker-url>" echo "" echo "šŸ“ Example test command:" echo ' curl -X POST <your-worker-url> \' echo ' -H "Content-Type: application/json" \' echo ' -d '\''{"command":"getTeamInfo","params":{"queryParams":{"season":"2024","sportId":"1"}}}'\''' else echo "āŒ Deployment failed!" exit 1 fi

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/jdguggs10/mlbstats-mcp'

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