Cloudbet Sports MCP server
Single-file, minimal implementation of the Model Context Protocol (MCP) for sports data and betting tool exposure using the Cloudbet public API. This demo server follows the MCP Server specification and is designed for educational and demonstration purposes only. Please use responsibly and at your own risk.
- Run the Server:
go run .
- List Tools (Describe):
curl -X POST http://localhost:8080/ -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list",
"params": {}
}' | jq .
- Call a Tool:
curl -X POST http://localhost:8080/ -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "findEventsAndMarketsByCompetition",
"arguments": {
"competitionName": "Premier League"
}
}
}' | jq .