Skip to main content

MCP server for YADE open-source discrete element method simulation

Project description

yade-mcp

yade-mcp header

English | 简体中文

PyPI Downloads GitHub stars Glama License: MIT Python 3.10+

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. Browse API docs, run simulations, and execute code, all through natural conversation.

yade-mcp demo

Tools (7)

2 documentation tools — browse and search the YADE Python API with BM25 keyword search. No bridge required.

5 execution tools — synchronous REPL, async task submission, progress monitoring, interruption, and task history. Requires bridge.

Quick Start

Prerequisites

  • YADE installed
  • uv installed (for uvx)

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 in your client config:

{
  "mcpServers": {
    "yade-mcp": {
      "command": "uvx",
      "args": ["yade-mcp"]
    }
  }
}

2. Start the bridge inside YADE:

pip install yade-mcp-bridge

Then in a YADE Python console:

import yade_mcp_bridge
yade_mcp_bridge.start()

Verify

Restart your AI agent (Claude Code, Codex CLI, Gemini CLI, etc.) and ask it to call yade_execute_code to verify the connection.

Features

  • API documentation & search — browse and search the full YADE Python API with ranked results, real types, and defaults
  • Live code execution — run code in the YADE process and get results back instantly, or submit long-running simulations with progress monitoring and interruption
  • User intent awareness — agents automatically see what the user is doing in the YADE console, enabling contextual assistance without explicit instructions
  • Multi-client compatible — works with Claude Code, Codex CLI, Gemini CLI, OpenCode, and other MCP clients

Contributing

See CONTRIBUTING.md for development setup and guidelines.

License

MIT — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yade_mcp-0.2.1.tar.gz (359.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yade_mcp-0.2.1-py3-none-any.whl (460.4 kB view details)

Uploaded Python 3

File details

Details for the file yade_mcp-0.2.1.tar.gz.

File metadata

  • Download URL: yade_mcp-0.2.1.tar.gz
  • Upload date:
  • Size: 359.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for yade_mcp-0.2.1.tar.gz
Algorithm Hash digest
SHA256 bfca6bccb8a2d0fb90bc825e798dcb199d16c83380e619d4de60063270aaa6a8
MD5 3172d7a02478f29b8426eb3b04f6c05d
BLAKE2b-256 c3a9e24626b655b4a47143a1515374098fa685e2bc544f0311c6c14dbb824e3d

See more details on using hashes here.

Provenance

The following attestation bundles were made for yade_mcp-0.2.1.tar.gz:

Publisher: release.yml on yusong652/yade-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yade_mcp-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: yade_mcp-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 460.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for yade_mcp-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 23abc0c17df75c6c5e18f522864dc42720d586891ff33d7463d55ecf6964a57c
MD5 1cbe21f2723921c92d09e6733b2e0b2b
BLAKE2b-256 c708cdf0e3b4f0cd8c95b45f0f08ea54c5d694f786929335160d7ac8d8ef878b

See more details on using hashes here.

Provenance

The following attestation bundles were made for yade_mcp-0.2.1-py3-none-any.whl:

Publisher: release.yml on yusong652/yade-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page