プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。Google でログインするとレビューを書けます。プロトタイプ · 30分ごとに更新
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説 ログイン

mjguard

作者:SamKo88927バージョン 0.3.2i★ 0iパソコンで動くリポジトリ ↗

インストール方法

できること

Drive any MuJoCo-modelled robot arm; every motion is checked in the model before it runs.

作者による原文

  • 接続方法 パソコンで動く
  • アカウントまたはキー キー不要
  • カテゴリ その他

この順位の理由

一覧は利用スコア(100 点満点)で並びます。内訳は次のとおり

人気0/80GitHub スターか週間ダウンロード数。大きい方を 60、小さい方を 20 で数えます
新しさ12/1230 日以内のリリースかコード更新で満点
応答中0/8前回の確認でクラウドのエンドポイントが応答
利用スコア12/100

品質: 基本チェック 3/3 項目に合格(表示のみ、並び順には不使用) · 勢い: データなし (「急上昇」タブでのみ使用)

インストール

使っているAIアプリを選んで、設定をコピーしてください。

ひとことで AI にインストールしてもらう

mjguard をインストールして。https://mcp.popnx.com/i/samko88927-mjguard.md に従い、コマンドを見せて、私が OK するまで実行しないで。

パソコンで作業できる AI(Claude Code や Cursor など)に貼り付けます。手順を読み、コマンドを見せて、あなたの OK を待ちます。キー不要・登録不要。 · AI が読む全文を見る

チェック 3/3 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月25日

まず:どの AI を使っていますか?

使っているアプリを選ぶと、下に手順が表示されます。

Claude につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません

AI にインストールしてもらう

このメッセージを Claude のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude に MCP server mjguard を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "mjguard": { "command": "uvx", "args": [ "mjguard", "serve", "ur5e" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、mjguard のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. パソコン版 Claude アプリの設定ファイルを開く

    SettingsDeveloperEdit Config

  3. この設定を貼り付けて保存

    {
      "mcpServers": {
        "mjguard": {
          "command": "uvx",
          "args": [
            "mjguard",
            "serve",
            "ur5e"
          ]
        }
      }
    }
  4. Claude を終了してもう一度開く

  5. 試してみる

    mjguard を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude が mjguard を使っていると言うか、回答に mjguard のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

ChatGPT はまだ mjguard につなげません

mjguard はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません

代わりにできること

A · mjguard につなげるアプリを使う

  • 先にパソコンへ Python (uv) を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
  • 先にパソコンへ Python (uv) を入れてください(1 回だけ)
  • 先にパソコンへ Python (uv) を入れてください(1 回だけ)
  • 先にパソコンへ Python (uv) を入れてください(1 回だけ)

B · その他 の中で ChatGPT につなげる別のサーバー

同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました

Claude Code につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Claude Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude Code に MCP server mjguard を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):claude mcp add --scope user mjguard -- uvx mjguard serve ur5e 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、mjguard のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. ターミナルを開く

    Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く

  3. このコマンドを貼り付けて Enter

    claude mcp add --scope user mjguard -- uvx mjguard serve ur5e
  4. Claude Code で /mcp と入力

    mjguard が一覧にあり、接続済みと表示されれば OK です

  5. 試してみる

    mjguard を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude Code が mjguard を使っていると言うか、回答に mjguard のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Cursor につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Cursor のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Cursor に MCP server mjguard を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "mjguard": { "command": "uvx", "args": [ "mjguard", "serve", "ur5e" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、mjguard のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. このボタンで Cursor を開く

    Cursor で開く

    Cursor がインストールの確認をするので Install を押します

  3. Cursor の AI チャットを Agent モードで開く

  4. 試してみる

    mjguard を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Cursor が mjguard を使っていると言うか、回答に mjguard のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

VS Code につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを VS Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの VS Code に MCP server mjguard を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "servers": { "mjguard": { "type": "stdio", "command": "uvx", "args": [ "mjguard", "serve", "ur5e" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、mjguard のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. このボタンで VS Code を開く

    VS Code で開く

    VS Code がインストールの確認をするので Install を押します

  3. VS Code の AI チャットを Agent モードで開く

  4. 試してみる

    mjguard を使って、私に何ができるか教えて、1 つやってみせて

    ✓ VS Code が mjguard を使っていると言うか、回答に mjguard のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください

MCP を使えるアプリをすべて見る →

JSON 設定は下の「開発者向け」にあります

つまずいたら?mjguard を使っている人に聞いてみましょう💬 ディスカッション →
開発者向け:ターミナルのコマンドと JSON 設定

パソコンにインストール

Claude Code

claude mcp add --scope user mjguard -- uvx mjguard serve ur5e

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "mjguard": {
      "command": "uvx",
      "args": [
        "mjguard",
        "serve",
        "ur5e"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "mjguard": {
      "command": "uvx",
      "args": [
        "mjguard",
        "serve",
        "ur5e"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "mjguard": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mjguard",
        "serve",
        "ur5e"
      ]
    }
  }
}

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

ひと目でわかる

レジストリ名
io.github.SamKo88927/mjguard
週あたりのダウンロードi
npm/PyPIにない
接続方法
パソコンで動く
最新バージョンi
0.3.2
カテゴリi
その他
レジストリ公開日i
2026年11月25日
コードの最終更新i
2026年11月25日
作者
SamKo88927
パッケージ
pypi: mjguard
レジストリでの状態
有効

使えるアプリ

このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。

パソコン上で動かせるアプリ

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

すべてのアプリと長所・短所 →

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月26日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント SamKo88927 で確認済みです

  • ✓ 合格

    今もメンテナンスされている

    コードの最終更新:昨日

  • ✓ 合格

    ライセンスがある

    Apache-2.0を使用

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

公開済みの脆弱性(OSV.dev)

まだ確認していません

確認していること → · JSON

作者の方へ:再確認の依頼・情報の誤りの報告
作者向け:README にバッジを付ける

作者の方は、このコードを README に貼れます。バッジはこのページにリンクします。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/samko88927-mjguard.svg)](https://mcp.popnx.com/en/servers/samko88927-mjguard)

話し合い

質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。

まだ投稿はありません。最初の質問や共有をどうぞ。

ここの投稿は利用者によるもので、PopNx チームのものではありません。

ログインして投稿

ユーザーレビュー

まだレビューはありません

ログインしてレビューを書く

その他のほかのサーバーとの比較i

  • このカテゴリのほかの22308件のうち0%よりスターが多い
  • このカテゴリのほかの22308件のうち97%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの22308件のうち99%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

mjguardは安全ですか?

当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は昨日、最新バージョン(0.3.2)がレジストリに届いたのは昨日です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv)も必要です。

代わりに使えるものは?

同じカテゴリには:World Monitor, openstatus, Oh My Posh Validator, Strata, Jitsu

似た働きのほかの候補

同じカテゴリでほかの作者のもの。コマンドは確認済み。公式を先に、次にスター順。

カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

World Monitor

Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 100 tools.

作者:koala73広く使われている★ 9.1万10 日前更新

すぐ接続できる(URL あり) · ログインが必要✓ 提供元 · worldmonitor.app

openstatus

Manage monitors, status pages, incidents and maintenances in your openstatus workspace.

作者:openstatusHQ広く使われている★ 92813 か月前更新

すぐ接続できる(URL あり) · ログインが必要✓ 提供元 · openstatus.dev

Oh My Posh Validator

Validate oh-my-posh configurations and segment snippets against the official schema.

作者:JanDeDobbeleer広く使われている★ 2.4万 リポジトリ全体のスター37 日前更新

すぐ接続できる(URL あり)ツール 2 個 · 軽め✓ 提供元 · ohmyposh.dev

Strata

MCP server for progressive tool usage at any scale (see https://klavis.ai)

作者:Klavis-AI成長中★ 582114 か月前更新

すぐ接続できる(URL あり) · キーが必要リポジトリはアーカイブ済み✓ klavis.ai

Jitsu

Manage Jitsu data pipelines: destinations, streams, connections, functions, live events.

作者:jitsucom広く使われている★ 51394 か月前更新

すぐ接続できる(URL あり) · ログインが必要✓ 提供元 · jitsu.com
似たものと比べる
これ
mjguard
World MonitoropenstatusOh My Posh ValidatorStrataJitsu
動く場所パソコンにインストールが必要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要
キーが必要いいえいいえいいえいいえいいえいいえ
Claude で + から追加いいえいいえいいえいいえいいえいいえ
基本チェック3/34/44/44/41/44/4
ライセンスApache-2.0AGPL-3.0AGPL-3.0MITApache-2.0MIT
料金登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

mjguard

Let an LLM agent drive any MuJoCo-modelled robot arm over MCP, with every motion checked in the model before it runs.

Language models refuse unsafe requests in chat, then carry them out when they hold a robot's tools: refusal falls from 73% of text requests to 18-25% once the model controls the arm ("Refuses in Chat, Complies with Arms", Sun et al., 2026). mjguard puts the check below the model, where a prompt cannot reach it: the agent asks for a pose, mjguard plans it, checks every waypoint against the robot's own MuJoCo model, and either moves or returns a refusal the model can act on.

uvx mjguard check panda    # first run downloads MuJoCo Menagerie (about a minute)

uvx mjguard serve panda # MCP over stdio; or ur5e, or your own robot.toml

Franka Panda from MuJoCo Menagerie with a parts bin configured as an obstacle, driven through the same executor and guard the MCP server uses (scripts/record_demo.py). A move into the bin is refused and its suggestion followed; then a straight-line descent, a grasp, a straight-line lift, and a refused move into the table.

Why the check has to live below the model, and the bugs this project's own tests found: docs/why-below-the-model.md.

What it checks

Every motion is planned into joint-space waypoints, and every waypoint is checked before anything moves:

CheckRefusal code
Joint ranges from the model, minus a marginJOINT_LIMIT
Contacts between moving links and the rest of the scene, from MuJoCo's own collision pipelineCOLLISION, TABLE_COLLISION
Distance from every moving collision geom (meshes included) and the tool point to the floor or table, with a planning margin above the hard limitTABLE_CLEARANCE
Distance from every moving collision geom to every obstacle in the config, with the same planning marginOBSTACLE_CLEARANCE, COLLISION
An optional workspace box for the tool pointWORKSPACE
IK convergence: a miss beyond 1 mm or 1.5° is a refusal, never a "close enough" planUNREACHABLE

While the motion runs, and again after the servos settle, a monitor checks what the robot actually did and halts it (ENVELOPE_BREACH) if the measured arm crosses a hard limit (floor or obstacle) or touches anything. Plans keep a margin (10 mm by default) above that limit: under physics, the UR5e and Panda presets settle about 6 mm below their plan, and a test pins that they stay above the hard limit.

Refusals a model can use

{

"ok": false, "refusal": { "code": "UNREACHABLE", "message": "no joint solution reaches the target; the closest misses by 2032.0 mm and 40.7 deg", "suggestion": {"x_mm": 890.7, "y_mm": 125.3, "z_mm": 277.5, "note": "farthest checked-safe point on the straight line toward the target (19% of the way)"} } }

The suggestion is the farthest point toward the target that passed every check, rounded the way a model will send it back, and re-planned deterministically, so following it (with the tool_down it names) is accepted. A property test sends random targets and follows every suggestion to keep it that way.

Built-in robots

Thirteen arms from MuJoCo Menagerie, downloaded on first use. CI runs every one of them end to end with its own servos under gravity: reach a target, refuse one in the table and one out of reach, stay above the hard clearance limit, follow the suggestion.

Hobby and researchCollaborative and industrial
so_arm100, so_arm101 (LeRobot)ur5e, ur10e (Universal Robots)
low_cost_robot_armpanda, fr3 (Franka)
piper (AgileX)iiwa14 (KUKA)
yam (I2RT)gen3 (Kinova)
z1 (Unitree)xarm7 (UFACTORY)

Each preset's planning margin covers the tracking error its model's servos show in simulation (10 mm for most, 40 mm for the Z1). Grippers are configured for the Panda, SO-ARM100, SO-ARM101, low-cost arm, PiPER and YAM.

Your own robot

Write a small TOML file next to your MJCF:

name = "my_arm"

[model] mjcf = "scene.xml" # or "menagerie: " floor_geom = "floor" # a plane; clearance is measured against it keyframe = "home" # start and rest pose

[arm] joints = ["joint1", "joint2", "joint3", "joint4", "joint5", "joint6"] tcp_site = "tool" # or tcp_body = "hand" with tcp_offset_m = [0, 0, 0.1] tool_axis = "z" # the axis that points out of the tool actuators = ["a1", "a2", "a3", "a4", "a5", "a6"] # position servos: simulate with physics; omit for kinematic

[limits] min_clearance_mm = 20 # hard limit, enforced on the measured arm planning_margin_mm = 10 # plans keep 30 mm workspace_mm = { x = [-600, 600], y = [-600, 600] } obstacle_clearance_mm = 10 # hard limit on the measured arm; plans keep 10 + planning_margin_mm

[gripper] # optional joints = ["finger_left", "finger_right"] closed = [0.0, 0.0] open = [0.04, -0.04] actuator = "gripper" # optional: drive it in physics ctrl_closed = 0.0 ctrl_open = 0.04

[[obstacles]] # boxes, cylinders and spheres on the table; millimetres, z = height of the centre name = "parts_bin" shape = "box" size_mm = [120, 160, 140] # box: x, y, z; cylinder: diameter, height; sphere: diameter center_mm = [300, 0, 70]

mjguard check robot.toml     # loads it, checks the rest pose, prints the envelope

mjguard serve robot.toml # MCP over stdio

Two kinds of contact are part of a model's design rather than a collision, and mjguard treats them that way: contacts the model already has in its rest pose (Kinova Gen3's base and shoulder hulls overlap; closed fingers touch; a UR shoulder sits on the floor) are allowed up to the depth they have at rest, and mjguard check lists them; and bodies whose relative pose depends only on gripper joints (two fingers) are not checked against each other. Fingers against the arm, the table and obstacles are. Contacts with a configured obstacle are never allowed, at rest or otherwise.

Links whose moving joints all spin about a vertical axis (a turret on its base) cannot change height, so they are exempt from the clearance check; they are still collision-checked.

Claude Code
claude mcp add ur5e -- uvx mjguard serve ur5e

Tools

get_state, get_limits, move_to(x_mm, y_mm, z_mm, tool_down=true, speed, path="joint"), move_joints({name: value}), gripper(opening) (when configured), rest, stop.

path="line" makes the tool point travel a straight line, sampled every 5 mm, with IK solved point to point so the arm cannot flip configuration mid-way; a line that crosses a singularity or leaves reach is refused, and a refusal's suggestion says which path it was checked with. Resources: mjguard://limits, mjguard://trace/latest. Millimetres and degrees; z is the height above the floor plane.

Real hardware

mjguard drives a Transport: anything that can report joint positions and follow a list of checked waypoints. It ships the MuJoCo simulator transport. A real arm needs a transport for its driver; the guard, the monitor and the MCP surface stay the same. roarm-mcp is the RoArm-M3 application this library was extracted from.

stop() is a software stop. On real hardware a physical e-stop is the only real emergency stop.

Limits of the method

  • The check is only as good as the model. Objects that are not in the MJCF scene are invisible to it.
  • Joint-space straight lines between waypoints are checked at a fixed spacing (3° by default), not continuously.
  • Dynamics (speed, torque, payload) are not checked; the envelope is geometric.

Development

uv sync

uv run ruff check . && uv run ruff format --check . && uv run pyright && uv run pytest -q

License

Apache-2.0. Robot models come from MuJoCo Menagerie under their own licenses and are downloaded at runtime, not redistributed.