{"id":47967332,"url":"https://github.com/yusong652/yade-mcp","last_synced_at":"2026-04-06T12:00:54.529Z","repository":{"id":348086407,"uuid":"1196130652","full_name":"yusong652/yade-mcp","owner":"yusong652","description":"MCP server connecting AI agents to YADE — run DEM simulations through natural conversation","archived":false,"fork":false,"pushed_at":"2026-04-04T11:51:04.000Z","size":14145,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-05T11:02:19.419Z","etag":null,"topics":["ai","anthropic","claude","dem","discrete-element-method","geomechanics","llm","mcp","mcp-server","particle-simulation","python","scientific-computing","simulation","yade"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/yade-mcp/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yusong652.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-30T12:00:18.000Z","updated_at":"2026-04-04T11:51:09.000Z","dependencies_parsed_at":"2026-04-06T12:00:53.553Z","dependency_job_id":null,"html_url":"https://github.com/yusong652/yade-mcp","commit_stats":null,"previous_names":["yusong652/yade-mcp"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/yusong652/yade-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusong652%2Fyade-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusong652%2Fyade-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusong652%2Fyade-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusong652%2Fyade-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yusong652","download_url":"https://codeload.github.com/yusong652/yade-mcp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusong652%2Fyade-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31471466,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-06T08:36:52.050Z","status":"ssl_error","status_checked_at":"2026-04-06T08:36:51.267Z","response_time":112,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","anthropic","claude","dem","discrete-element-method","geomechanics","llm","mcp","mcp-server","particle-simulation","python","scientific-computing","simulation","yade"],"created_at":"2026-04-04T10:36:53.084Z","updated_at":"2026-04-06T12:00:54.459Z","avatar_url":"https://github.com/yusong652.png","language":"Python","funding_links":[],"categories":["Scientific \u0026 Research Tools"],"sub_categories":[],"readme":"# yade-mcp\n\n\u003c!-- mcp-name: io.github.yusong652/yade-mcp --\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/yusong652/yade-mcp/assets/assets/header.gif\" alt=\"yade-mcp header\" width=\"720\"\u003e\n\u003c/p\u003e\n\n[English](https://github.com/yusong652/yade-mcp/blob/master/README.md) | [简体中文](https://github.com/yusong652/yade-mcp/blob/master/README.zh-CN.md)\n\n[![PyPI](https://img.shields.io/pypi/v/yade-mcp)](https://pypi.org/project/yade-mcp/)\n[![Downloads](https://img.shields.io/pypi/dm/yade-mcp)](https://pypi.org/project/yade-mcp/)\n[![Glama](https://glama.ai/mcp/servers/yusong652/yade-mcp/badges/score.svg)](https://glama.ai/mcp/servers/yusong652/yade-mcp)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n[![Python 3.10+](https://img.shields.io/badge/python-3.10%2B-blue)](https://www.python.org/)\n\n`O.engines += [LLM()]  # yet another engine.`\n\n**yade-mcp** connects AI agents to [YADE](https://yade-dem.org/) — the open-source discrete element method engine — through the [Model Context Protocol](https://modelcontextprotocol.io/). Browse API docs, run simulations, and execute code, all through natural conversation.\n\n![yade-mcp demo](https://raw.githubusercontent.com/yusong652/yade-mcp/assets/assets/demo.gif)\n\n## Tools (7)\n\n**2 documentation tools** — browse and search the YADE Python API with BM25 keyword search. No bridge required.\n\n**5 execution tools** — synchronous REPL, async task submission, progress monitoring, interruption, and task history. Requires bridge.\n\n## Quick Start\n\n### Prerequisites\n\n- **[YADE](https://yade-dem.org/doc/installation.html)** installed\n- **[uv](https://docs.astral.sh/uv/getting-started/installation/)** installed (for `uvx`)\n\n### Agentic Setup (Recommended)\n\nCopy this to your AI agent and let it self-configure:\n\n```text\nFetch and follow this bootstrap guide end-to-end:\nhttps://raw.githubusercontent.com/yusong652/yade-mcp/master/docs/agentic/yade-mcp-bootstrap.md\n```\n\n### Manual Setup\n\n**1. Register the MCP server** in your client config:\n\n```json\n{\n  \"mcpServers\": {\n    \"yade-mcp\": {\n      \"command\": \"uvx\",\n      \"args\": [\"yade-mcp\"]\n    }\n  }\n}\n```\n\n**2. Start the bridge inside YADE:**\n\n```bash\npip install yade-mcp-bridge\n```\n\nThen in a YADE Python console:\n\n```python\nimport yade_mcp_bridge\nyade_mcp_bridge.start()\n```\n\n### Verify\n\nRestart your AI agent (Claude Code, Codex CLI, Gemini CLI, etc.) and ask it to call `yade_execute_code` to verify the connection.\n\n## Features\n\n- **Rich class documentation** — covers the YADE Python API, enriched with real types, defaults, and docstrings\n- **Hierarchical API browsing** — agents navigate categories, subcategories, and classes with progressive disclosure, reducing hallucination\n- **BM25 keyword search** — fast, ranked search across all API docs by natural language queries\n- **Synchronous REPL** — rapid iteration for querying simulation state (`O.bodies`, `O.iter`, quick tests)\n- **Async task lifecycle** — submit long-running simulations, monitor progress, gracefully interrupt via PyRunner, and browse history\n- **Multi-client compatible** — works with Claude Code, Codex CLI, Gemini CLI, OpenCode, and other MCP clients\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for development setup and guidelines.\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusong652%2Fyade-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyusong652%2Fyade-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusong652%2Fyade-mcp/lists"}