MCP server for controlling a simulated AI2-THOR home robot

MCP server for controlling a simulated AI2-THOR home robot

ai2thor-mcp•bypj0620

An MCP server that lets an LLM agent perceive, navigate, and record video of a camera-only robot in the AI2-THOR simulated home environment.

License: Not specified•Runtime: Awaiting documentation review•Category: ai agents-models

WHAT IT DOES

  • •Provides a tool that returns an annotated camera frame with numbered destination markers and a JSON list of objects and drivable passages.
  • •Plans navmesh paths to destinations and drives the robot asynchronously with status polling, cancellation, and preemption.
  • •Reads depth images to detect passages the robot can fit through, rejecting windows and mirrors.
  • •Records browser-playable overhead mp4 video in follow or fixed scene mode.

BEST FOR

  • •Testing LLM-driven embodied navigation and object discovery in a simulated home.
  • •Prototyping a nav2-style MCP interface that a real robot could later implement.
  • •Capturing overhead video of simulated robot behavior.

ABOUT AI2THOR-MCP

MCP server for controlling a simulated AI2-THOR home robot is cataloged as an MCP server attributed to pj0620. An MCP server that lets an LLM agent perceive, navigate, and record video of a camera-only robot in the AI2-THOR simulated home environment. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for controlling a simulated AI2-THOR home robot are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the robot have a manipulator arm?

No; the agent mode is a differential-drive locobot without manipulation, so it only moves and observes.

How are monitoring clients connected to the server?

It can run over streamable HTTP on a /mcp endpoint or over stdio, and HTTP is stateless so multiple clients share one simulator instance.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 0f33cf683c46 · 采集于 2026-11-13 13:50:22 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

ai2thor-mcp

An MCP server that gives an LLM agent control of a simulated home robot in AI2-THOR. The robot is camera-only (no arms): it looks around, discovers destinations — visible objects and drivable passages detected from depth — and drives to them with nav2-style asynchronous navigation. An overhead camera can record mp4 videos of what it does.

Built as the simulation backend for GPTPet; the tool contract mirrors ROS2 nav2's NavigateToPose semantics (async goal, status polling, cancel, preemption) so a real robot running nav2+SLAM can implement the same MCP interface later.

Tools

ToolWhat it does
get_current_view()Camera frame annotated with numbered destination markers, plus a JSON list: objects (green boxes, e.g. "Fridge, 2.3 m ahead, closed, contains 2 items") and passages (cyan boxes: doorways/hallways/openings wide enough for the robot). Ids are stable; markers restart each view.
set_nav_goal(destination_id, speed_mps=0.35)Plans a navmesh path to a destination and starts driving in the background. Returns waypoints + ETA immediately. An active goal is preempted.
get_nav_status()idle | planning | following | succeeded | canceled | failed(reason) plus distance traveled/remaining, percent, ETA, waypoint counts.
cancel_nav()Stops the robot within one step.
list_destinations()Everything seen so far, across views. Object ids re-resolve to current positions; passage ids are fixed world waypoints.
get_map()Top-down map: objects, robot pose, remaining path, destinations, goal.
do_move(action, moveMagnitude) / do_rotate(action, degrees)Manual control; preempts active navigation (nav2 teleop behavior).
start_overhead_recording(mode)mode="follow" (default): camera hovers ~2.3 m above the robot and tracks it. mode="scene": fixed orthographic view of the whole floor plan. One recording at a time.
end_overhead_recording()Finalizes and returns the path of a browser-playable H.264 mp4 (real-time: idle gaps are held frames) under data/recordings/.

Plus an MCP resource view://rgb with the raw camera frame.

Setup

Requires Python 3.10–3.12 and uv. The first run downloads the AI2-THOR Unity build (~0.5 GB) and opens a Unity window; the simulator boots lazily on the first tool call.

uv sync            # add --extra dev for the test suite

Running

# streamable HTTP on 0.0.0.0:8000 (endpoint: /mcp, stateless)
uv run python/ai2thor_mcp/main.py --http

# stdio transport
uv run python/ai2thor_mcp/main.py

# pick a scene (default FloorPlan2, a single kitchen; RoboTHOR apartments
# like FloorPlan_Train1_3 have real doorways and corridors)
uv run python/ai2thor_mcp/main.py --http --scene FloorPlan_Train1_3

HTTP is stateless, so multiple MCP clients share the same simulator instance.

Connecting clients

Claude Code:

claude mcp add --transport http ai2thor http://localhost:8000/mcp

Claude Desktop only speaks stdio in claude_desktop_config.json, so bridge it with mcp-remote:

"ai2thor": {
  "command": "npx",
  "args": ["-y", "mcp-remote", "http://localhost:8000/mcp"]
}

How it works

python/ai2thor_mcp/
├── main.py        MCP tools and wiring
├── sim.py         single lock-guarded owner of the AI2-THOR Controller
├── perception.py  depth → world backprojection; passage detection
├── describe.py    template descriptions + destination registry
├── annotate.py    numbered set-of-marks drawing on the frame
├── nav.py         nav2-style background goal follower
├── recorder.py    overhead mp4 recording (paced ffmpeg writer thread)
├── utils.py       top-down map rendering
└── config.py      all tunables (robot width, speeds, detection thresholds…)
  • Passages come from the depth image: points are backprojected to world space, binned into a polar free-space profile, and gaps are found by level-set scanning (a passage is a run of bins clear well beyond its flanking obstacles). Floor-visibility and navmesh-reachability checks reject windows/mirrors, and a minimum-width filter (MIN_PASSAGE_WIDTH_M = 0.65) keeps only gaps the robot fits through.
  • Path planning uses AI2-THOR's navmesh (GetShortestPath); a follower thread walks the corners at the requested speed with collision retries and one replan, so get_nav_status shows honest live progress.
  • Recording captures the third-party camera frame on every sim step; a paced writer streams one frame per tick to a bundled ffmpeg (imageio-ffmpeg), so the mp4 tracks wall-clock time without ever blocking the simulator. Note: AI2-THOR 5.0 can't remove a camera once added, so after the first recording every step renders it (small cost).

Testing

uv run --extra dev pytest regression -m "not live"   # offline, no Unity
uv run --extra dev pytest regression -m live         # boots Unity, drives the robot

Offline tests cover the geometry with analytic depth scenes (synthetic doorways must be found, narrow gaps and plain walls must not), the nav state machine against a kinematic fake sim, and the recorder's hold-to-wall-clock writer frame-by-frame. scripts/capture_fixture.py regenerates the captured real-frame fixture in data/.

Notes

  • Agent mode is locobot (differential-drive, no manipulation).
  • data/recordings/ is git-ignored output; data/example_* are test fixtures.
  • With Claude Code, the project skill /restart-ai2thor-mcp restarts the server on port 8000 and health-checks it.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for controlling a simulated AI2-THOR home robot from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/ai2thor-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related ai agents-models MCP Servers

Alternative and complementary servers in the same category

View all in ai agents-models →
Knowledge Graph Memory
@modelcontextprotocol/server-memory•Model Context Protocol

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

create_entitiescreate_relationsadd_observations+6 more
92K
AI & Multi-Agent
Sequential Thinking
@modelcontextprotocol/server-sequential-thinking•Model Context Protocol

Organize problem solving into revisable, branching thought steps through an MCP tool.

sequential_thinking
92K
AI & Multi-Agent

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.

146
AI & Multi-Agent