Skip to main content
Glama
sanchorelaxo

OpenSimulator MCP Server

by sanchorelaxo

run

Execute raw OpenSimulator console commands for region management, user administration, terrain editing, object manipulation, and HyperGrid operations not covered by other tools.

Instructions

Run any raw OpenSimulator console command. Use this for commands not covered by get/set categorization.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYes

Implementation Reference

  • The 'run' tool handler: an async function that takes a command string and sends it directly to the OpenSimulator console API via the global console instance.
    @mcp.tool() async def run(command: str) -> str: """ Run any raw OpenSimulator console command. Use this for commands not covered by get/set categorization. """ return await console.send_command(command)
  • The @mcp.tool() decorator registers the 'run' function as an MCP tool.
    @mcp.tool()
  • Function signature and docstring defining the input (command: str) and output (str), with description for schema generation.
    async def run(command: str) -> str: """ Run any raw OpenSimulator console command.
  • The send_command method of OpenSimConsole class, which performs the actual HTTP requests to send the command and retrieve response.
    async def send_command(self, command: str) -> str: if not self.session_id: await self.start_session() async with await self._get_client() as client: response = await client.post( f"{self.base_url}/SessionCommand/", data={"ID": self.session_id, "COMMAND": command}, ) if response.status_code != 200: raise Exception( f"Command failed: {response.status_code} - {response.text}" ) # Wait for command to be processed before reading response await asyncio.sleep(0.3) read_response = await client.post( f"{self.base_url}/ReadResponses/{self.session_id}/" ) return read_response.text
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sanchorelaxo/opensim-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server