This is an MCP server implementation for Standard Bots that provides tools for controlling and managing routines through the Standard Bots API.
- Play, pause, and stop routines
- List available routines
- Get routine details and state
- Get step variables
- Full integration with Standard Bots API
- Make sure you have Python 3.9 or higher installed
- Install uv (if not already installed):
pip install uv
- Clone this repository:
git clone https://github.com/sub-arjun/mcp-standard-bots.git cd mcp-standard-bots - Create a virtual environment and install dependencies:
uv venv uv pip install -e . - Configure environment variables:
Then edit
cp .env.example .env
.envwith your Standard Bots URL and API key.
Run the MCP server:
python mcp_server.pyThe server provides the following MCP tools:
play_routine: Play a routine with optional initial variable statespause_routine: Pause a running routinestop_routine: Stop running routine and all ongoing motionslist_routines: List routines defined in Routine Editor UIget_routine: Get routine data by IDget_routine_state: Get the state from a running routineget_step_variables: Get all step variables from a running routine
The server requires the following environment variables:
STANDARD_BOTS_URL: The URL of your Standard Bots instance (e.g., https://mybot.sb.app)STANDARD_BOTS_API_KEY: Your Standard Bots API key
These can also be provided directly when instantiating the server:
server = MCPStandardBotsServer(
url="https://mybot.sb.app",
api_key="your_api_key_here"
)mcp_server.py: Main MCP server implementation with Standard Bots integrationpyproject.toml: Project configuration and dependencies.env.example: Example environment variables file
MIT License - see LICENSE file for details