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.3.0.tar.gz (471.2 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.3.0-py3-none-any.whl (667.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yade_mcp-0.3.0.tar.gz
  • Upload date:
  • Size: 471.2 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.3.0.tar.gz
Algorithm Hash digest
SHA256 feb6cb4cc086dfd10d1742b26a884e0634ee05364643aa96f4b06403b9f368eb
MD5 bb9ee057847fe7adb1f0149c9802d357
BLAKE2b-256 2cb59d36d4c6778c3023fa7a8654d18ea7eaf82910e31113ccdeb5b20da021a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for yade_mcp-0.3.0.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.3.0-py3-none-any.whl.

File metadata

  • Download URL: yade_mcp-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 667.7 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee817d330cd80e27605c3dc51fb780841cbe5948fd68ce60a5d32497a57fd535
MD5 3e379ea3e3bcb910e0b68113eab9c198
BLAKE2b-256 e87293e8680662e663fc36b69ad74be0035146dd898f1cabb09f55da72ffbee8

See more details on using hashes here.

Provenance

The following attestation bundles were made for yade_mcp-0.3.0-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