Model Explainability
БесплатноНе проверенMCP server that lets Claude explain ML model predictions with SHAP: feature importance, per-prediction explanations, what-if analysis and plots. Read-only and w
Описание
MCP server that lets Claude explain ML model predictions with SHAP: feature importance, per-prediction explanations, what-if analysis and plots. Read-only and works with any joblib model.
README
An MCP server that lets Claude explain machine learning predictions using SHAP. The server does the math; Claude explains the results in plain language.
"Why was application #812 denied?" "Which features matter most overall?" "What happens if the debt-to-income ratio drops to 0.3?"
Tools
| Tool | What it does |
|---|---|
load_model |
Register a joblib model + CSV dataset under an id |
list_models, model_summary |
Inspect loaded models and basic metrics |
global_feature_importance |
Rank features by mean absolute SHAP |
explain_prediction |
Per-feature SHAP contributions for one row |
what_if |
Re-predict a row after changing feature values |
compare_predictions |
Why two rows got different outputs |
partial_dependence |
How the average prediction moves as one feature changes |
find_misclassified |
Worst errors (needs a target column) |
plot_feature_importance, plot_explanation, plot_beeswarm |
PNG plots Claude can display |
Tree models (LightGBM, XGBoost, sklearn forests) use the fast TreeExplainer; other sklearn-style models fall back to KernelExplainer.
Quick start
git clone <your-repo-url> && cd model-explainability-mcp
python3.12 -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
python examples/train_demo_model.py # creates demo/model.joblib + demo/credit.csv
Claude Desktop
Add to claude_desktop_config.json (use absolute paths):
{
"mcpServers": {
"model-explainability": {
"command": "/ABSOLUTE/PATH/model-explainability-mcp/.venv/bin/explain-mcp",
"env": { "EXPLAIN_MCP_ALLOWED_DIR": "/ABSOLUTE/PATH/model-explainability-mcp" }
}
}
}
Claude Code
claude mcp add model-explainability \
-e EXPLAIN_MCP_ALLOWED_DIR=$(pwd) -- $(pwd)/.venv/bin/explain-mcp
Try it
- "Load
demo/model.joblibwith datasetdemo/credit.csv, targetapproved, ascredit." - "Which features matter most for the credit model?"
- "Explain the prediction for row 12 and show the waterfall plot."
- "What if row 12 had a debt_to_income of 0.2?"
- "Show me the most confident mistakes the model makes."
Safety
- Loading is restricted to
EXPLAIN_MCP_ALLOWED_DIR(default: the working directory). - Pickle/joblib files can execute code when loaded. Only load models you trust.
- Tools are read-only: nothing is written to disk besides in-memory state.
- SHAP explains how the model behaves, not real-world causes. Every explanation includes a caveat field.
- SHAP values for classifiers are in raw (log-odds) space; the final
predictionis a probability.
Development
pytest
Roadmap
- Counterfactual search ("smallest change that flips the decision")
- LIME as a second opinion
- Fairness checks by sensitive group
- Drift detection on new data
- Keras/PyTorch support
License
MIT
Установка Model Explainability
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/gamzeakkurt/model-explainability-mcpFAQ
Model Explainability MCP бесплатный?
Да, Model Explainability MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Model Explainability?
Нет, Model Explainability работает без API-ключей и переменных окружения.
Model Explainability — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Model Explainability в Claude Desktop, Claude Code или Cursor?
Открой Model Explainability на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Unyly Deploy
Deploy sites and MCP servers to Unyly straight from your AI agent
автор: UnylyAmap Maps Mcp Server
MCP server for using the AMap Maps API
автор: duxiaohuiPayMCP
Lightweight payments layer for MCP servers: turn tools into paid endpoints with a two-line decorator. [PyPI](https://pypi.org/project/paymcp/) · [npm](https://w
автор: blustAIServer For Power BI
Enables exploring Microsoft Fabric / Power BI workspaces and semantic models, and executing ad-hoc DAX queries.
автор: Mitsubishi-FusoGpt Image 2 Mcp
RunAPI GPT Image 2 MCP server for image generation: create tasks, poll results, and check pricing across 1 model from Claude Code, Codex, Cursor, and VS Code.
автор: runapi-aiTemplate MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectSupabase
Database, auth and storage
автор: SupabaseCompare Model Explainability with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
