Model Explainability
FreeNot checkedMCP server that lets Claude explain ML model predictions with SHAP: feature importance, per-prediction explanations, what-if analysis and plots. Read-only and w
About
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
Installing Model Explainability
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/gamzeakkurt/model-explainability-mcpFAQ
Is Model Explainability MCP free?
Yes, Model Explainability MCP is free — one-click install via Unyly at no cost.
Does Model Explainability need an API key?
No, Model Explainability runs without API keys or environment variables.
Is Model Explainability hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Model Explainability in Claude Desktop, Claude Code or Cursor?
Open Model Explainability on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by 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
by UnylyAmap Maps Mcp Server
MCP server for using the AMap Maps API
by 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
by blustAIServer For Power BI
Enables exploring Microsoft Fabric / Power BI workspaces and semantic models, and executing ad-hoc DAX queries.
by 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.
by 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
by mcpdotdirectSupabase
Database, auth and storage
by SupabaseCompare Model Explainability with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
