YADE MCP Server
MCP server for YADE — open-source DEM engine. Browse API docs, run simulations, manage tasks.
YADE MCP Server scores 70 (Good), licensed MIT and written in Python. It installs as a local process. It declares 7 tools. Filed under Knowledge. GitHub shows 16 stars. Package registries report about 42 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
70 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
90/100 for listing completeness. Lost points: short summary, no docs link.
How quality is graded
Where the 70 comes from
22 + 20 + 4 + 10 + 4 + 10 = 70. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 4 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "yusong652-yade-mcp": { "command": "uvx", "args": [ "yade-mcp" ] } }}
Environment variables
This server does not declare environment variables.
Tools7Tool docs quality grade C
All capabilitiesyade_browse_apitoolWalk the YADE Python class tree
Inspect a running or finished task (output, status)
Run Python in the live YADE process; returns synchronously
Submit a script as a long-running background task
Stop a running task at an iteration boundary, or cancel a queued one
yade_list_taskstoolList submitted tasks with metadata
yade_query_apitoolBM25 keyword search across the API
About
yade-mcp
O.engines += [LLM()] # yet another engine.
yade-mcp connects AI agents to YADE, the open-source discrete element method engine, through the Model Context Protocol. The agent browses the YADE API, runs code in a live YADE session, launches long simulations as background tasks, and reads what you type at the YADE console.

Tools (7)
Two documentation tools (no bridge needed) and five execution tools (bridge required):
| Tool | Purpose | Bridge |
|---|---|---|
yade_browse_api | Walk the YADE Python class tree | No |
yade_query_api | BM25 keyword search across the API | No |
yade_execute_code | Run Python in the live YADE process; returns synchronously | Yes |
yade_execute_task | Submit a script as a long-running background task | Yes |
yade_check_task_status | Inspect a running or finished task (output, status) | Yes |
yade_interrupt_task | Stop a running task at an iteration boundary, or cancel a queued one | Yes |
yade_list_tasks | List submitted tasks with metadata | Yes |
Example Prompts
- "Set up a triaxial compression test on a dense packing and plot deviatoric stress against axial strain"
- "Build an irregular particle as a level set body and drop it onto a plane"
- "The simulation is still running, check the unbalanced force without stopping it"
- "Look up how GlobalStiffnessTimeStepper picks the timestep, then add it to this model"
- "The command I just typed in the console raised an error, what went wrong?"
- "List what was run yesterday and summarize what each task produced"
First-time Setup
Prerequisites
- YADE installed
- uv installed. It provides the
uvxlauncher that agent clients use to runyade-mcp; without it the client reportsNo such file or directorywhen starting the server. - An AI agent: Claude Code, Codex CLI, Gemini CLI, or any MCP-capable client
Agentic Setup (Recommended)
Copy this to your AI agent and let it self-configure:
Fetch and follow this bootstrap guide end-to-end:
https://raw.githubusercontent.com/yusong652/yade-mcp/master/docs/agentic/yade-mcp-bootstrap.md
Manual Setup
1. Register the MCP server with your agent (use the line for yours):
# Claude Code
claude mcp add yade-mcp -- uvx yade-mcp
# Codex CLI
codex mcp add yade-mcp -- uvx yade-mcp
# Gemini CLI
gemini mcp add yade-mcp uvx yade-mcp
Or fill in the MCP config file by hand:
{
"mcpServers": {
"yade-mcp": {
"command": "uvx",
"args": ["yade-mcp"]
}
}
}
2. Install the bridge into YADE's Python.
YADE embeds one specific interpreter (the system python3 for the Debian and Ubuntu packages, or the one it was built against). A conda or venv Python is a different interpreter, and a package installed there is invisible to YADE. The reliable way to hit the right one is to install from inside YADE, where sys.executable is that interpreter. In the YADE console:
import sys, subprocess
subprocess.check_call([sys.executable, "-m", "pip", "install", "--user", "yade-mcp-bridge"])
Two things can go wrong here:
No module named pip: the interpreter has no pip. Install it with the system package manager, for examplesudo apt install python3-pip.externally-managed-environment(Debian 12, Ubuntu 23.04 and later): pip refuses--userby default. Add"--break-system-packages"after"--user"in the command above.
Then exit and restart YADE so the new package directory is picked up.
The bridge is proposed for inclusion in YADE itself (yade-dev/trunk !1187). Once it ships with YADE, this step goes away and the bridge starts with from yade import mcpbridge.
3. Start the bridge in the YADE console:
import yade_mcp_bridge
yade_mcp_bridge.start()
It prints one line: YADE MCP Bridge on http://localhost:9002, log: <cwd>/.yade-mcp/bridge.log.
Verify
Restart your AI agent and ask it to check that it is connected to YADE. It calls yade_execute_code; ok: true in the response means the whole chain works.
Daily Startup
Once first-time setup is done, each new YADE session only needs the bridge started again. In the YADE console:
import yade_mcp_bridge
yade_mcp_bridge.start()
The MCP client config persists.
Configuration
Port
The bridge listens on 9002 by default. To use another port, pass it to start():
yade_mcp_bridge.start(port=9008)
The MCP server connects to 9002 unless told otherwise, so register it with the matching URL:
{
"mcpServers": {
"yade-mcp": {
"command": "uvx",
"args": ["yade-mcp", "--bridge-url", "http://localhost:9008"]
}
}
}
Container
When YADE runs inside a container, bind the bridge to all interfaces so it is reachable from outside:
yade_mcp_bridge.start(host="0.0.0.0")
Publish the port when starting the container (for Docker, -p 9002:9002).
Features
- Live REPL in the running YADE process:
yade_execute_coderuns Python in the session's own namespace, so state persists between calls. It keeps working while a task runs, for reading intermediate results without stopping the simulation. - Task lifecycle: submit a script as a background task, tail its output, stop it at an iteration boundary, fix and resubmit. Tasks queue up and run one at a time, so a multi-stage pipeline can be submitted in one go.
- Task history across sessions: every task's script, output, and final state stay on record. A new agent session lists what was run and picks up without being told.
- Console input reaches the agent: lines you type at the YADE console arrive in the agent's context on its next call, so you can work at the console and with the agent at the same time.
- API documentation without a bridge: the class tree and a BM25 search over the YADE Python API work offline, from a corpus refreshed against current YADE releases.
- Multi-client: works with Claude Code, Codex CLI, Gemini CLI, GitHub Copilot CLI, OpenCode, toyoura-nagisa, and other MCP clients.
Troubleshooting
See Troubleshooting in the bootstrap guide.
Contributing
See CONTRIBUTING.md for development setup and guidelines.
Citation
If you use yade-mcp in your research, please cite the paper that describes it:
Han, Y., Uzuoka, R., Ueda, K. (2026). Connecting AI Agents to Live Discrete Element Simulations via the Model Context Protocol. arXiv:2611.33926.
@misc{han2026demmcp,
title = {Connecting {AI} Agents to Live Discrete Element Simulations via the {Model Context Protocol}},
author = {Han, Yusong and Uzuoka, Ryosuke and Ueda, Kyohei},
year = {2026},
eprint = {2611.33926},
archivePrefix = {arXiv},
primaryClass = {cs.CE},
url = {https://arxiv.org/abs/2611.33926}
}
License
MIT, see LICENSE.
Frequently asked questions
What is YADE MCP Server?
MCP server for YADE — open-source DEM engine. Browse API docs, run simulations, manage tasks.
How do I install YADE MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. YADE MCP Server runs locally from the PyPI package yade-mcp with the command uvx yade-mcp.
Is YADE MCP Server free and open source?
Yes. YADE MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does YADE MCP Server support remote (HTTP) connections?
No remote endpoint is listed for YADE MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does YADE MCP Server provide?
YADE MCP Server provides 7 tools, including yade_browse_api, yade_check_task_status, yade_execute_code, and yade_execute_task. See the full tool list for descriptions and parameters.
How is YADE MCP Server's trust score calculated?
YADE MCP Server scores 70 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.