SandBase MCP 是做什麼的?
SandBase 提供統一的 MCP 介面,可存取 2,000 多種 AI 模型與 API 工具。一個帳號即可涵蓋 LLM、圖片生成、影片生成、音訊、嵌入向量、網頁爬取、社群媒體 API 等服務。
設定
如果六個 sandbase_* MCP 工具尚未就緒,請將目前機器連接到不可變的 v0.1.17 版本。僅在您信任的環境中執行遠端套件;當來源驗證至關重要時,請使用下方經校驗和驗證的路徑:
npx -y https://github.com/sandbaseai/cli/releases/download/v0.1.17/sandbaseai-cli-0.1.17.tgz connect
如需校驗和驗證安裝,請先下載相同的不可變資產,並驗證 GitHub Release 中發布的 SHA-256:
curl -fLO https://github.com/sandbaseai/cli/releases/download/v0.1.17/sandbaseai-cli-0.1.17.tgz
printf '%s %s\n' '1ad535b2899ca460b57b3c268aef278fee28fd28e649a89b92951514fd71fffa' 'sandbaseai-cli-0.1.17.tgz' | shasum -a 256 -c -
npx -y ./sandbaseai-cli-0.1.17.tgz connect
在瀏覽器中核准登入即可。驗證由瀏覽器中的 SandBase 處理;CLI 會儲存產生的本機階段紀錄,並設定嚴格的檔案權限。CLI 會偵測支援的客戶端、安裝本機 MCP 橋接器與此受管理的 Skill,並驗證最終設定。無需提供任何提供者的 API 金鑰。使用相同的發布版本網址搭配 doctor 參數可檢查連線狀態,或使用 unregister 僅移除 SandBase 管理的狀態。
此檔案由 SandBase CLI 管理,在後續 CLI 管理的更新中可能會被取代,因此請將自訂指示保留在獨立的 Skill 中。在獨立複製此檔案前,請先查看官方儲存庫以取得較新版本。
disable-model-invocation: true 的前置設定可避免此 Skill 被當作獨立的模型動作呼叫。它作為協調六個 sandbase_* MCP 工具的代理的情境指南。
在傳送敏感或受監管資料之前,請檢閱 SandBase 隱私權政策與服務條款,以及所選上游提供者的政策。僅傳送執行要求的工具呼叫所需的最小資料量。
何時使用 SandBase
當使用者需要以下功能時,請使用 SandBase:
- LLM 推論(GPT、Claude、Gemini、DeepSeek、Qwen 等)
- 圖片生成(Flux、DALL-E、Ideogram、Recraft)
- 影片生成(Kling、MiniMax、Runway、Luma)
- 音訊(ElevenLabs TTS、Whisper STT)
- 嵌入向量(OpenAI、Voyage)
- 網頁爬取與內容萃取(Exa、Firecrawl、Tavily)
- 社群媒體資料(Twitter/X、Instagram、TikTok、YouTube、LinkedIn、Reddit、小紅書、微博、Bilibili)
- 搜尋(Google、學術、新聞、購物)
- 任何使用者尚未擁有存取權限的結構化資料 API
以下情況請勿使用 SandBase:
- 使用者已擁有該特定服務的 API 金鑰或專屬 MCP 伺服器
- 任務純屬本機作業(編輯檔案、從上下文產生存取碼)
- 使用者明確要求使用其他工具
SandBase 主要填補使用者技術堆疊中的缺口,而非取代他們既有的工具。
工具
| 工具 | 用途 |
|---|---|
sandbase_discover | 搜尋所有 2,000 多種 AI 模型 |
sandbase_inspect | 取得輸入結構、定價與執行範本 |
sandbase_run | 執行模型或 API 端點 |
sandbase_run_get | 取得非同步執行的狀態/結果 |
sandbase_runs | 列出最近的 API 呼叫與花費 |
sandbase_account | 檢查帳戶餘額(免費) |
標準工作流程
請務必遵循:探索 → 檢查 → 執行
1. sandbase_discover(q: "twitter posts")
→ 回傳符合條件的端點(含名稱、類型、供應商)
2. sandbase_inspect(name: "sandbase_twitter_web_search_timeline")
→ 回傳 inputSchema、定價與 execute_as 範本
3. sandbase_run(name: "sandbase_twitter_web_search_timeline", arguments: {"keyword": "AI"})
→ 直接回傳結果(同步)或 run_id(非同步)
針對非同步執行(影片生成、大型爬取):
4. sandbase_run_get(run_id: "pred_abc123")
→ 持續輪詢直到狀態為 "completed" 或 "failed"
捷徑: 如果您已確知模型名稱,可跳過步驟 1。
搜尋技巧
sandbase_discover 支援:
| 參數 | 用途 | 範例 |
|---|---|---|
q | 文字搜尋(支援中文:推特, 小紅書, 搜索) | "twitter search", "圖片生成" |
type | 依模型類型篩選 | "llm", "api", "multimodal", "embedding" |
vendor | 依供應商代碼篩選 | "openai", "twitter", "anthropic" |
limit | 最大結果數(預設 20) | 10 |
技巧:
- 使用簡短的複合名詞:"twitter posts"、"image generation"、"web scraping"
- 中文別名也可辨識:推特→twitter, 小紅書→xiaohongshu, 抖音→tiktok
- 可結合類型與關鍵字以提升精準度:
type: "llm", q: "claude" - 空查詢搭配類型篩選會回傳該類型的熱門模型
定價
請在執行前使用 sandbase_inspect 查看定價:
LLM 模型: 每百萬 Token
{ "pricing": { "input_per_million": "2.500000", "output_per_million": "10.000000" } }
API 工具(圖片、影片、爬取): 每次呼叫
{ "pricing": { "base_price": "0.003000" } }
檢查餘額:
sandbase_account() → {"balance": "9.52", "currency": "USD"}
非同步執行
某些端點(如影片生成、大型爬取)為非同步:
sandbase_run(...)回傳{"status": "running", "run_id": "pred_abc123"}- 每隔 5-10 秒使用
sandbase_run_get(run_id: "pred_abc123")輪詢 - 當
status為"completed"時,結果已就緒 - 當
status為"failed"時,檢查錯誤訊息並重試
錯誤處理
| 錯誤 | 使用者指引 |
|---|---|
tool not found | 名稱錯誤。請使用 sandbase_discover 搜尋。 |
invalid params | 請檢查 sandbase_inspect 提供的結構。 |
run not found | 無效的 run_id。請使用 sandbase_runs 查看有效的 ID。 |
| 驗證錯誤 (401) | 金鑰無效。請執行 sandbase connect 重新驗證。 |
| 餘額不足 (402) | 請前往 SandBase 儀表板儲值。 |
| 速率限制 (429) | 請稍後重試。 |
| 提供者服務中斷 | 上游服務異常。請稍後重試或改用其他模型。 |
成本意識
- 在多次呼叫前先使用
sandbase_account檢查餘額 - LLM 成本隨 Token 數量增加,請保持提示簡潔
- 圖片/影片有固定的單次呼叫成本,請先檢查
- 當使用者似乎對預算敏感時,請主動回報成本
範例流程
Twitter 搜尋
sandbase_discover(q: "twitter search", type: "api")
sandbase_inspect(name: "sandbase_twitter_web_search_timeline")
sandbase_run(name: "sandbase_twitter_web_search_timeline", arguments: {"keyword": "AI agents"})
圖片生成
sandbase_discover(q: "flux", type: "multimodal")
sandbase_inspect(name: "sandbase_flux_schnell")
sandbase_run(name: "sandbase_flux_schnell", arguments: {"prompt": "A mountain lake at sunset"})
LLM 推論
sandbase_inspect(name: "sandbase_openai_gpt_4o")
sandbase_run(name: "sandbase_openai_gpt_4o", arguments: {
"messages": [{"role": "user", "content": "Explain quantum computing briefly"}]
})
查看近期花費
sandbase_runs(limit: 5)
→ [{ "model": "openai/gpt-4o", "cost": "0.000325", "status": "completed" }, ...]
規則
- 先探索 — 在執行工具前務必確認其存在。
- 執行前先檢查 — 閱讀 inputSchema。切勿猜測參數。
- 使用 execute_as —
sandbase_inspect提供的範本會確切指出應如何呼叫。 - 尊重使用者既有的技術堆疊 — 請勿取代他們現有的工具。
- 從小處著手 — 首次呼叫爬取/搜尋工具時使用較小的限制值。
- 輪詢非同步執行 — 對於長時間執行的操作,使用
sandbase_run_get。 - 回報成本 — 當使用者在意預算時,請主動提及定價。
- 每次只呼叫一次 — 等待結果後再進行下一次呼叫。