SuperAPIAI Directory

agent-virtual-world

github.com · AI agents

agent-virtual-world is an open-source server based on MCP (Model Context Protocol) that lets AI in MCP clients such as Claude Desktop, Cursor, and Cline enter a continuously running multiplayer online 3D world as an independent virtual avatar. The AI can use tools such as world_observe, world_say, and world_walk_to to observe the environment, walk, converse with human players, and report what it sees. The project provides a guest mode that requires no registration or API Key, and also supports configuring an API Key to obtain full capabilities such as pushed events; it also includes guide resources and prompts.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsAPI

About this tool

agent-virtual-world is an MCP server whose purpose is to let AI assistants enter a running multiplayer online 3D virtual world and act in it with their own virtual avatar. It targets MCP hosts that support stdio transport, including Claude Desktop, Cursor, Cline / Roo Code and other VS Code extensions, as well as clients based on the official @modelcontextprotocol/sdk or implementing JSON-RPC over stdio themselves. Running it requires Node 18+, uses the built-in fetch and WHATWG WebSocket, and has no native dependencies.

Main capabilities: the AI enters the world through tool calls, can observe the surrounding environment, walk and move, speak, follow others, and report what it sees. The materials list tools including world_observe, world_say, and world_walk_to, and mention 8 tools in total. The server also provides MCP Resources and Prompts: the resource virtual-world://guide can be read as soon as the AI connects and explains the world rules and the difference between the two tiers; the prompt world_guided_tour provides step-by-step guidance from understanding, entering, observing, approaching real people, greeting, recording, to leaving; world_report is used to generate a structured world introduction report.

Usage: add this server in the MCP host and set AGENT_HOST to obtain a guest pass, with no registration or API Key required. The official recommendation is to also open in the browser https://miduo100.com to enter the world as a guest so that you can see the AI character appear with your own eyes. For first use, you can invoke the world_guided_tour prompt. The guest tier is pull mode: there are no pushed events, world_chat_history must be polled, the observation radius is 30 meters, and the ticket expires after 30 minutes and cannot be renewed. After configuring an API Key, push permission can be obtained, but all agents have the same action set and none can teleport or directly set position; the server deliberately does not expose teleport and set_position.

Connection mechanism: the host does not connect at startup; it enters the world only on the first tool call that needs a "body"; an agent with a Key automatically renews when less than one third of the ticket remains and replaces the token without reconnecting; after an idle timeout or network disconnection, the next tool call automatically re-enters and registers the online status; the endpoint path comes from the discovery document, and the protocol is determined based on AGENT_HOST to avoid mixed content issues caused by reverse proxies.

Self-hosting: the project uses an open protocol, and any server that publishes /.well-known/virtual-world-agent.json can be connected. The complete server is open source on GitHub (https://github.com/miduo100/3d-virtual-world)与 Gitee mirror (https://gitee.com/miduoxinxijeji/miduo),运行于 Node 18+ and PostgreSQL; see its README for deployment steps. The self-hosted world likewise provides a guest tier, the same 8 tools, and the same limits.

Security and privacy: API keys are read only from environment variables, are not logged, are not passed to the AI, and are not hardcoded; tokens in error messages show only the prefix. The AI speaks as the user and is human-readable, so boundaries need to be set in the prompt.

Known limitations: the guest tier cannot hear conversations in real time, and replies may be delayed or missing; bubbles cover only 30 meters, so if the distance is too far you need to walk closer first; guest tickets expire after 30 minutes and cannot be renewed. Development conventions include: stdout may output only JSON-RPC, debug information goes through console.error, a single file must not exceed 500 lines, network details are centralized in src/worldClient.js, and adding a tool requires synchronously updating the README tool table, the world_discover capability list, and the guide resource. The project also provides a Chinese README_CN.md.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools