An MCP (Model Context Protocol) server for the DonutSMP Public API. This server provides access to all DonutSMP API endpoints including auction houses, leaderboards, player lookups, statistics, and shield configurations.
🚀 Deploy Options: Local (STDIO/HTTP/SSE) | Vercel (Serverless) | Docker (Coming Soon)
- Auction House: List current auction entries and transaction history
- Leaderboards: Access 10 different leaderboards (kills, deaths, money, playtime, blocks, etc.)
- Player Lookup: Get player information similar to
/findplayercommand - Player Statistics: Retrieve detailed player stats like
/statscommand - Shield Management: Get and update Shield configurations for Java and Bedrock services
- Shield Monitoring: Access service metrics and stats
Deploy as a serverless REST API on Vercel:
vercelSee VERCEL_DEPLOY.md for complete deployment guide.
- Install dependencies:
pip install -r requirements.txt- Set up your DonutSMP API key as an environment variable:
# Windows (PowerShell)
$env:DONUTSMP_API_KEY = "your_api_key_here"
# Windows (Command Prompt)
set DONUTSMP_API_KEY=your_api_key_here
# Linux/Mac
export DONUTSMP_API_KEY=your_api_key_hereTo get an API key, use the /api command in-game on DonutSMP.
The server supports three transport modes:
python main.py
# or explicitly
python main.py --mode stdiopython main.py --mode sse --host 127.0.0.1 --port 8000SSE endpoint will be available at: http://127.0.0.1:8000/sse
python main.py --mode http --host 127.0.0.1 --port 8000REST API will be available at: http://127.0.0.1:8000
--mode- Transport mode:stdio,sse, orhttp(default:stdio)--host- Host to bind to for SSE/HTTP modes (default:127.0.0.1)--port- Port to bind to for SSE/HTTP modes (default:8000)
When running in HTTP mode, the following REST endpoints are available:
GET /health- Health checkGET /tools- List all available toolsGET /auction/list/{page}- Auction house listingsGET /auction/transactions/{page}- Auction transactionsGET /leaderboards/{type}/{page}- Leaderboards (types: brokenblocks, deaths, kills, mobskilled, money, placedblocks, playtime, sell, shards, shop)GET /lookup/{user}- Player lookupGET /stats/{user}- Player statisticsGET /shield/{platform}/config/{service}- Shield config (platform: java/bedrock)GET /shield/metrics/{service}- Shield metricsGET /shield/stats/{service}- Shield stats
Example HTTP requests:
# Health check
curl http://127.0.0.1:8000/health
# Get player stats
curl http://127.0.0.1:8000/stats/Notch
# Get money leaderboard page 1
curl http://127.0.0.1:8000/leaderboards/money/1Add to your Claude Desktop configuration file:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"donutsmp": {
"command": "python",
"args": [
"d:\\ai playground\\mcp_donut\\main.py"
],
"env": {
"DONUTSMP_API_KEY": "your_api_key_here"
}
}
}
}auction_list- Get current Auction House entries (paginated)auction_transactions- Get Auction House transaction history (paginated)
leaderboard_broken_blocks- Blocks broken leaderboardleaderboard_deaths- Deaths leaderboardleaderboard_kills- Kills leaderboardleaderboard_mobs_killed- Mobs killed leaderboardleaderboard_money- Money leaderboardleaderboard_placed_blocks- Blocks placed leaderboardleaderboard_playtime- Playtime leaderboardleaderboard_sell- Amount made on /sell leaderboardleaderboard_shards- Shards leaderboardleaderboard_shop- Amount spent on /shop leaderboard
lookup_player- Look up player by username or UUIDplayer_stats- Get detailed player statistics
shield_bedrock_config_get- Get Bedrock Shield configshield_bedrock_config_update- Update Bedrock Shield configshield_java_config_get- Get Java Shield configshield_java_config_update- Update Java Shield configshield_metrics- Get Shield service metricsshield_stats- Get Shield service stats
Base URL: https://api.donutsmp.net/v1
Rate Limit: 250 requests per minute per API key
For full API documentation, visit: https://api.donutsmp.net/index.html
Can you show me the stats for player "Notch"?
What are the top players on the money leaderboard?
Show me the current auction house listings on page 1
This project is licensed under the GUN GPL.3 License. See LICENSE for details.