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.

已驗證Streamable HTTP可網頁執行資料與分析AI 與機器學習

概覽

AI 產生的概覽

將助理連接到 Xplainable 平台,用來訓練、解釋、最佳化並部署透明的白箱機器學習模型。

可以做什麼
  • 列出並預覽團隊資料集與模型,查看欄位、型別與樣本資料列
  • 建立並預覽前處理轉換器,推斷或設定特徵關係
  • 在伺服器端訓練模型,讀取訓練/測試指標與特徵重要性
  • 檢查並解釋模型,對個別特徵重新擬合並反覆迭代訓練
  • 部署並啟用模型版本,再執行預測、最佳化工具與報告工作
適用情境
適合希望由助理在 Xplainable 上完成整個建模流程的情境:檢視資料、選擇特徵與前處理、訓練並比較透明模型、解釋模型並部署結果。較適合已在使用 Xplainable 平台的團隊,而非一次性的本機實驗。
執行需求
可使用 mcp.xplainable.io 遠端端點並以 OAuth 登入,或在本機以 stdio 方式執行並設定平台產生的 Xplainable API 金鑰。本機方式需要 Python 及 uvx 或複製的程式碼倉庫;選用變數可覆寫平台主機、推論主機、組織/團隊綁定、傳輸方式與日誌等級。
安裝前請注意
訓練、部署、推論、最佳化工具執行與報告建立都會作用於團隊的平台帳戶並改變伺服器端狀態,部署與啟用會影響線上模型。本機模式需要 XPLAINABLE_API_KEY,該金鑰從環境變數讀取。資料集與模型資料會傳送到 Xplainable 平台進行訓練。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Xplainable Mcp Server,將其新增到工作區。
  2. 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

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

  1. Hosted — connect your MCP client to https://mcp.xplainable.io (OAuth login, no installation).
  2. 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

bash
claude mcp add xplainable \  -e XPLAINABLE_API_KEY=your-api-key-here \  -- uvx --from git+https://github.com/xplainable/xplainable-mcp-server.git xplainable-mcp

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
json
{  "mcpServers": {    "xplainable": {      "command": "uvx",      "args": ["--from", "git+https://github.com/xplainable/xplainable-mcp-server.git", "xplainable-mcp"],      "env": {        "XPLAINABLE_API_KEY": "your-api-key-here"      }    }  }}

No uv? Clone and install instead:

bash
git clone https://github.com/xplainable/xplainable-mcp-server.gitcd xplainable-mcp-serverpython -m venv .venv && source .venv/bin/activatepip install -e .

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:

  1. datasets_list_team_datasets / models_list_team_models / deployments_list_deployments — see the team's assets
  2. datasets_preview_dataset_json(dataset_id) — inspect columns, types, and sample rows; decide the target, columns to drop, and whether preprocessing is needed
  3. (Optional) preprocessing_list_available_transformers → preprocessing_create_preprocessor_from_spec → preprocessing_preview_from_data to verify transformed output 3b. Declare feature relationships once per dataset: datasets_infer_relationships proposes derived columns, implications and monotonic hints with evidence; commit with datasets_set_relationships (re-apply to old versions with models_apply_relationships)
  4. models_train_model(dataset_id, target_column, model_name, ...) — synchronous server-side training; returns model/version IDs, train/test metrics, and feature importances
  5. Inspect: models_get_feature_info / gpt_explain_model; compare train vs test metrics
  6. Iterate: models_refit_features for per-feature tuning, or train again with different features / preprocessing
  7. deployments_deploy(version_id) — deploy once satisfied (then deployments_activate_deployment)
  8. Act on the model: inference_predict / optimisers_run_optimiser / reports_create_report (+ poll reports_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

VariableRequiredDescription
XPLAINABLE_API_KEYyes (local)API key from platform.xplainable.io
XPLAINABLE_HOST / XPLAINABLE_HOSTNAMEnoPlatform host override (defaults to https://platform.xplainable.io). Set both to the same value.
XPLAINABLE_INFERENCE_HOSTnoInference server override for the direct-to-inference tools (inference_score_dataset, optimisers_run_portfolio); defaults to https://inference.xplainable.io. Set it whenever the platform host is non-prod.
XPLAINABLE_ORG_ID / XPLAINABLE_TEAM_IDnoOrg/team binding, if your API key is not bound to a team
MCP_TRANSPORTnostdio (default) or streamable-http
LOG_LEVELnoDEBUG, INFO (default), WARNING, ERROR

See .env.example. The API key is read from the environment only and is never exposed through a tool.

CLI

bash
xplainable-mcp-cli list-tools            # list all available toolsxplainable-mcp-cli validate-config       # check env configurationxplainable-mcp-cli test-connection       # test API connectivityxplainable-mcp-cli generate-docs         # generate tool documentation

Docker (HTTP mode)

bash
cp .env.example .env   # fill in your API keydocker compose up --build

The container serves streamable-HTTP on port 8000 with a /health endpoint. For anything beyond localhost, terminate TLS at a reverse proxy.

Development

bash
git clone https://github.com/xplainable/xplainable-mcp-server.gitcd xplainable-mcp-serverpip install -e ".[dev]"
pytest            # run testsruff check .      # lint

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

MCP Serverxplainable-clientfastmcp
current (main)>=1.13.0>=2.0.0,<3.0.0

Contributing

See CONTRIBUTING.md.

License

MIT License — see LICENSE.

來源:README.md,提交 eeba577

工具

0
該伺服器需要登入,因此 SourceWeft 無法在沒有帳號的情況下讀取其工具,也未收錄。已連接帳號所能看到的內容可能因帳號及其權限而異。

版本歷史

1
  1. v1.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 85%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分