wasabi-mcp
MCP server that exposes Wasabi cloud storage's Stats API bucket utilization data as a tool, enabling users to query storage and API call metrics for all buckets.
README
wasabi-mcp
MCP server for Wasabi (S3-compatible hot cloud storage). Exposes the Wasabi Stats API's bucket utilization data as an MCP tool.
Overview
- Stateless HTTP service. No credentials are ever persisted — each request supplies its own credentials via headers, used only for the lifetime of that single request.
- Supports concurrent requests; per-request credential isolation is done via
Python
contextvars, not a global/shared client instance. - Entry points:
POST /mcp(MCP protocol) andGET /health(health check). - Default port:
8080(configurable viaMCP_HTTP_PORT).
Authentication
The Wasabi Stats API (stats.wasabisys.com) — a separate, simpler API
from the S3-compatible object storage API — uses a single static header,
with no login/token exchange:
Authorization: <AccessKey>:<SecretKey>
The keys used must be Wasabi Root keys, or sub-user keys with an attached
billing/stats policy (WasabiAccountStatsAccess or
WasabiBucketStatsAccess) — plain storage-only keys are rejected. This is
already fully stateless by the vendor's own design; nothing is cached
across MCP calls.
HEADER 授权参数说明
| Header | 类型 | 是否必填 | 默认值 | 枚举值 | 字段描述 | Example |
|---|---|---|---|---|---|---|
X-Wasabi-Access-Key |
string | 是 | 无 | 无 | Wasabi API Access Key(需为 Root key 或带 billing/stats 权限策略的 key) | AGWZ1234567890ABCDEF |
X-Wasabi-Secret-Key |
string | 是 | 无 | 无 | 对应 Secret Key | a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8g9h0 |
Missing either header returns 401:
{
"error": "Missing credentials",
"message": "This server requires the X-Wasabi-Access-Key and X-Wasabi-Secret-Key headers",
"required_headers": ["X-Wasabi-Access-Key", "X-Wasabi-Secret-Key"],
"optional_headers": []
}
Environment Variables
| Variable | 类型 | 是否必填 | 默认值 | 说明 |
|---|---|---|---|---|
MCP_HTTP_PORT |
int | 否 | 8080 |
HTTP 监听端口 |
MCP_HTTP_HOST |
string | 否 | 0.0.0.0 |
HTTP 监听地址 |
WASABI_STATS_BASE_URL |
string | 否 | https://stats.wasabisys.com |
Wasabi Stats API 基础 URL(与 bucket 所在 region 无关,固定不变) |
MCP Endpoint
POST /mcp— MCP protocol (streamable HTTP transport)GET /health— health check, returns{"status": "ok", "service": "wasabi-mcp", "transport": "http"}
Tool List
| Tool | 功能 | 参数 |
|---|---|---|
wasabi_get_bucket_utilizations |
列出账号下所有 bucket 的每日存储/API 调用用量记录 | page_size、page_num、from_date、to_date(均可选) |
Responses are the vendor's raw JSON ({"PageInfo": {...}, "Records": [...]}), pretty-printed, returned as-is.
测试示例
# Health check
curl -s http://localhost:8080/health
# Call a tool via the MCP protocol (streamable HTTP) — requires an
# initialize handshake first per the MCP spec; abbreviated example below
# shows the tool-call request body only:
curl -s -X POST http://localhost:8080/mcp \
-H "X-Wasabi-Access-Key: <your-access-key>" \
-H "X-Wasabi-Secret-Key: <your-secret-key>" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "mcp-session-id: <session-id-from-initialize>" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "wasabi_get_bucket_utilizations",
"arguments": {}
}
}'
Live-verified (2026-07-30) against a real Wasabi account:
wasabi_get_bucket_utilizations called end-to-end through this running
server returned real data — 540 real bucket-utilization records across
270 pages, including real bucket names (e.g. "oraclegroup",
"centrewestib") in the ap-southeast-2 region, with real storage/API-call
metrics.
API Reference
- Public, no login required:
- Overview: https://docs.wasabi.com/apidocs/wasabi-stats-api
- Authentication: https://docs.wasabi.com/apidocs/authentication-with-wasabi-stats-api
- This endpoint: https://docs.wasabi.com/apidocs/stats-api-get-v1standalone-bucket-utilizations
Known Gaps
- Scope is exactly MSPbots' 1 configured endpoint, not the vendor's full
API surface — the Wasabi Stats API also offers an account-level
summary endpoint (
GET /v1/standalone/utilizations) and per-bucket detail lookups by name or number; those are out of scope here. The Wasabi S3-compatible object storage API (bucket/object CRUD) is an entirely separate API and also out of scope. - The
regionfield MSPbots also stores for this integration is not used by this server — the one endpoint MSPbots actually uses (Stats API bucket utilizations) has a fixed base URL (https://stats.wasabisys.com) regardless of which Wasabi region a given bucket lives in; each returned record already includes its ownRegionfield.regionwould only matter for direct S3-compatible object storage calls, which this server does not make. from/todate range defaults are vendor-controlled — if omitted, Wasabi defaults to "one month ago" through "today"; this server does not apply its own default and simply omits the parameter when not provided.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。