
Xplainable Mcp Server
io.github.xplainable由 GitHub 帳號 xplainable 發布v1.0.0更新於 Oct 24, 2026
Train, explain, optimise and deploy transparent glass-box ML models via workflow tools.
概覽
將助理連接到 Xplainable 平台,用來訓練、解釋、最佳化並部署透明的白箱機器學習模型。
- 可以做什麼
- 列出並預覽團隊資料集與模型,查看欄位、型別與樣本資料列
- 建立並預覽前處理轉換器,推斷或設定特徵關係
- 在伺服器端訓練模型,讀取訓練/測試指標與特徵重要性
- 檢查並解釋模型,對個別特徵重新擬合並反覆迭代訓練
- 部署並啟用模型版本,再執行預測、最佳化工具與報告工作
- 適用情境
- 適合希望由助理在 Xplainable 上完成整個建模流程的情境:檢視資料、選擇特徵與前處理、訓練並比較透明模型、解釋模型並部署結果。較適合已在使用 Xplainable 平台的團隊,而非一次性的本機實驗。
- 執行需求
- 可使用 mcp.xplainable.io 遠端端點並以 OAuth 登入,或在本機以 stdio 方式執行並設定平台產生的 Xplainable API 金鑰。本機方式需要 Python 及 uvx 或複製的程式碼倉庫;選用變數可覆寫平台主機、推論主機、組織/團隊綁定、傳輸方式與日誌等級。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Xplainable Mcp Server,將其新增到工作區。
- 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.xplainable%2Fxplainable-mcp-server/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。
{
"mcpServers": {
"xplainable": {
"type": "http",
"url": "https://mcp.xplainable.io/mcp"
}
}
}README
Xplainable MCP Server
A Model Context Protocol server for the Xplainable platform. It lets an LLM agent (Claude, or any MCP client) train, deploy, optimise, and explain transparent machine-learning models. The agent is the orchestrator: it inspects the data, decides features and preprocessing, trains, reads the metrics, and iterates.
Training always runs server-side on the Xplainable platform — the MCP host never fits a model locally.
Two Ways to Use It
- Hosted — connect your MCP client to
https://mcp.xplainable.io(OAuth login, no installation). - Local — run the server yourself over stdio with an Xplainable API key. This is what the rest of this README covers.
Quick Start (Local)
1. Get an API key
Create one at platform.xplainable.io.
2a. Claude Code
2b. Claude Desktop
Add to your MCP settings file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
No uv? Clone and install instead:
then use "command": "/path/to/xplainable-mcp-server/.venv/bin/xplainable-mcp"
(no args) in the config above.
3. Try it
Ask your agent: "What models and datasets do I have?" — it should call
models_list_team_models and datasets_list_team_datasets.
The Iterate Loop
The tool surface puts the agent in control of every training decision:
datasets_list_team_datasets/models_list_team_models/deployments_list_deployments— see the team's assetsdatasets_preview_dataset_json(dataset_id)— inspect columns, types, and sample rows; decide the target, columns to drop, and whether preprocessing is needed- (Optional)
preprocessing_list_available_transformers→preprocessing_create_preprocessor_from_spec→preprocessing_preview_from_datato verify transformed output 3b. Declare feature relationships once per dataset:datasets_infer_relationshipsproposes derived columns, implications and monotonic hints with evidence; commit withdatasets_set_relationships(re-apply to old versions withmodels_apply_relationships) models_train_model(dataset_id, target_column, model_name, ...)— synchronous server-side training; returns model/version IDs, train/test metrics, and feature importances- Inspect:
models_get_feature_info/gpt_explain_model; compare train vs test metrics - Iterate:
models_refit_featuresfor per-feature tuning, or train again with different features / preprocessing deployments_deploy(version_id)— deploy once satisfied (thendeployments_activate_deployment)- Act on the model:
inference_predict/optimisers_run_optimiser/reports_create_report(+ pollreports_get_job_status)
Tool Surface
Tools are generated at server startup from @mcp_tool-decorated methods
in the xplainable-client
package — there are no checked-in generated files. The surface is flat:
every registry tool is exposed, with MCP annotations derived from its
category (read → read-only hint, write → destructive hint).
Configuration
See .env.example. The API key is read from the environment only and is never exposed through a tool.
CLI
Docker (HTTP mode)
The container serves streamable-HTTP on port 8000 with a /health
endpoint. For anything beyond localhost, terminate TLS at a reverse proxy.
Development
Runtime tool generation
Client-backed tools are generated at import time by
xplainable_mcp/runtime_tools.py from the @mcp_tool registry in
xplainable-client — there is no sync step. Upgrading the pinned
xplainable-client version is all it takes to pick up new or changed
tools; the test suite (tests/test_surface.py) pins the tool count so
surface changes are always deliberate.
Compatibility
Contributing
See CONTRIBUTING.md.
License
MIT License — see LICENSE.
來源:README.md,提交 eeba577
工具
0版本歷史
1- v1.0.0最新Sep 16, 2026
評分
已滿足適用檢查項的 85%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分