Xplainable MCP Server
OfficialHTTP client tool used for testing inference endpoints and API connectivity
Containerized deployment option for running the MCP server in production environments
Environment variable management for secure API key and configuration handling
Version control integration for managing MCP server source code and installations
Source code hosting and distribution platform for installing the MCP server directly from repositories
Supported platform for Claude Desktop configuration and MCP server deployment
Supported platform for Claude Desktop configuration and MCP server deployment
Documentation format support for generating tool documentation and reports
Uses Pydantic models for full validation of all inputs and outputs to ensure type safety across API interactions
Provides testing framework for development and validation of MCP server functionality
Python-based MCP server implementation for integrating with the Xplainable AI platform
Code linting and formatting tool used in the development workflow
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Xplainable MCP Serverlist my deployed models"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
Related MCP server: OSDU MCP Server
Quick Start (Local)
1. Get an API key
Create one at platform.xplainable.io.
2a. Claude Code
claude mcp add xplainable \
-e XPLAINABLE_API_KEY=your-api-key-here \
-- uvx --from git+https://github.com/xplainable/xplainable-mcp-server.git xplainable-mcp2b. Claude Desktop
Add to your MCP settings file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.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:
git clone https://github.com/xplainable/xplainable-mcp-server.git
cd xplainable-mcp-server
python -m venv .venv && source .venv/bin/activate
pip 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:
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 outputmodels_train_model(dataset_id, target_column, model_name, ...)— synchronous server-side training; returns model/version IDs, train/test metrics, and feature importancesInspect:
models_get_feature_info/gpt_explain_model; compare train vs test metricsIterate:
models_refit_modelfor hyperparameter tuning, or train again with different features / preprocessingdeployments_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
Variable | Required | Description |
| yes (local) | API key from platform.xplainable.io |
| no | Platform host override (defaults to |
| no | Org/team binding, if your API key is not bound to a team |
| no |
|
| no |
|
See .env.example. The API key is read from the environment only and is never exposed through a tool.
CLI
xplainable-mcp-cli list-tools # list all available tools
xplainable-mcp-cli validate-config # check env configuration
xplainable-mcp-cli test-connection # test API connectivity
xplainable-mcp-cli generate-docs # generate tool documentationDocker (HTTP mode)
cp .env.example .env # fill in your API key
docker compose up --buildThe container serves streamable-HTTP on port 8000 with a /health
endpoint. For anything beyond localhost, terminate TLS at a reverse proxy.
Development
git clone https://github.com/xplainable/xplainable-mcp-server.git
cd xplainable-mcp-server
pip install -e ".[dev]"
pytest # run tests
ruff check . # lintRuntime 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 Server | xplainable-client | fastmcp |
current (main) | >=1.13.0 | >=2.0.0,<3.0.0 |
Contributing
See CONTRIBUTING.md.
License
MIT License — see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Run AI models, create deployments, and manage predictions via cloud API
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
Enterprise AI Control Plane: governance, guardrails, spend tracking, compliance & smart routing.
Access Oi Contexts, Workflows, Skills, Guardrails, Connections, and reporting tools.
Related MCP Servers
AlicenseNot gradedqualityBmaintenanceEnables AI assistants to interact with Scalekit's identity and access management platform through natural language queries. Supports managing environments, organizations, users, OIDC connections, workspace operations, and MCP server configurations with OAuth-protected access.2255Apache 2.0- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to interact with OSDU platform services including search, data management, and schema operations.6Apache 2.0
- FlicenseNot gradedqualityDmaintenanceEnables routing of AI model requests for code generation and debugging with API key authentication and rate limiting.1-
- FlicenseBqualityCmaintenanceExposes open automation platform capabilities to AI agents with tools for managing job templates, inventories, collections, EDA activations, audit events, and policy checks, governed by gateway auth, RBAC, and policy enforcement.7-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/xplainable/xplainable-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server