dashai-mcp
MCP server that gives agents the same interface as dashAI's GUI: explore datasets, list models, train, track jobs, and read metrics.
README
dashai-mcp
An MCP server for dashAI, the open source Machine Learning workbench led by the University of Chile (FCFM), built by students of DCC UChile and UTFSM, with CENIA and IMFD.
It gives an agent the same surface dashAI gives a person through its GUI: look at datasets, see which models are available, train, follow queued work, and read the metrics.
"Train a random forest on dataset 3 predicting 'species' and tell me the F1"
Status
v0.2.0 — verified against a running dashAI 0.9.7.post1. 25 deterministic tests
green, plus one complete end-to-end training run: dashai_train_model →
dashai_job_status → dashai_get_run with metrics.
Verifying against a live instance surfaced four bugs that tests with doubles could not see, all of them gaps between dashAI's documentation and its actual behaviour. They are described below and each one has its own regression test.
Install
uv pip install git+https://github.com/Maarmapa/dashai-mcp
# or: pip install git+https://github.com/Maarmapa/dashai-mcp
Not published on PyPI yet.
In your MCP client configuration:
{
"mcpServers": {
"dashai": {
"command": "dashai-mcp"
}
}
}
dashAI has to be running separately (dashai, or the desktop app). It is looked up at http://localhost:8000 by default.
Tools
| Tool | What it does |
|---|---|
dashai_server_info |
Is dashAI up? How many datasets and runs are there |
dashai_list_datasets |
Lists the loaded datasets |
dashai_describe_dataset |
Columns, types and a sample — all in one call |
dashai_list_components |
Available models, metrics, tasks and optimizers |
dashai_train_model |
Trains. Enqueues and returns job_id + run_id |
dashai_job_status |
Job progress: not_started / started / finished / error |
dashai_list_runs |
Recorded runs, for comparing models |
dashai_get_run |
Configuration and metrics of a run |
dashai_predict |
Predicts using the model of a finished run |
Four things dashAI's documentation gets wrong
Found by running against a real instance. If you are writing a client for this API, these will bite you:
| What the docs say | What the code does |
|---|---|
?select_types=["Model","Metric"] |
Must be repeated parameters: ?select_types=Model&select_types=Metric. The JSON array returns 422. |
POST /job/ with a JSON body |
It is form data, with kwargs serialized as a JSON string. Its own openapi.json declares no requestBody for that route, because the endpoint parses request by hand. |
splits as an object |
It travels as a JSON string: the Pydantic schema declares it str. |
optimize(model_class, search_space, X, y, n_trials) |
The real signature is optimize(model, input_dataset, output_dataset, parameters, metric), and model is an instance, not a class. |
The component registry also has 13 types, not the four the documentation
suggests: Task, GenerativeTask, Model, GenerativeModel, DataLoader,
DatasetSource, Metric, Optimizer, Job, LocalExplainer,
GlobalExplainer, Explorer, Converter.
And GET /run/{id} returns split_indexes with the full list of indices: on a
10,000-row dataset that is 59 KB, 99% of the response. This server replaces
it with the per-split counts, bringing the response down to ~1 KB.
Three design decisions
1. Nine tools, not 142
dashAI exposes 142 REST endpoints. Generating one tool per endpoint is mechanical and it is a mistake: a model with 140 tools burns context reading the catalogue and chooses worse. These nine cover the actual working path.
2. dashai_train_model collapses three calls
In the raw API, training is a chained sequence:
POST /model-session/ → creates the experiment
POST /run/ → creates the run
POST /job/ → enqueues the ModelJob
With required fields the GUI fills in on its own and that are undocumented — plot_history_path, plot_slice_path, plot_contour_path, plot_importance_path. On top of that, splits travels as a JSON string, not an object, even though dashAI's documentation shows it as an object: the backend's Pydantic schema declares it str. That kind of detail is exactly what makes an agent fail against the raw API.
Here it is a single call, and it does not block: training can take hours, so it returns the job_id immediately and progress is polled with dashai_job_status.
3. No tool deletes anything
dashAI's API has no authentication — checked endpoint by endpoint. That is coherent for something local-first, but it means there is no barrier between a misread sentence and an irreversible DELETE /dataset/{id}. Deleting is done from the GUI, looking at what is being deleted.
For the same reason, the server refuses to point at a non-local host:
DASHAI_BASE_URL points to 'ml.example.com', which is not local, and dashAI's API
has no authentication: exposing it to the network leaves the backend open to
anyone who can reach it.
This can be disabled on purpose with DASHAI_ALLOW_REMOTE=1, if the target is protected some other way.
Configuration
| Variable | Default | What for |
|---|---|---|
DASHAI_BASE_URL |
http://localhost:8000 |
Where the backend is |
DASHAI_ALLOW_REMOTE |
(no) | Allow a non-local host (see above) |
DASHAI_TIMEOUT |
30 |
Seconds to wait per request |
Development
python -m venv .venv && .venv/bin/pip install -e ".[dev]"
.venv/bin/python -m pytest tests/ -q
The tests stub the HTTP responses with respx: they need neither a dashAI instance nor credentials. They test the contract — which calls are made, in what order, with what body, and what the agent is told when something fails.
A note on the SDK
Requires the MCP Python SDK 2.x. Version 2.0 removed mcp.server.fastmcp; it is now mcp.server.mcpserver.MCPServer, and annotations are ToolAnnotations objects instead of dictionaries. Most tutorials still show the 1.x API.
License
MIT, same as dashAI. This is a third-party, unofficial server: it is not affiliated with the dashAI project or the institutions that develop it.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。