Authentication
Token resolution order (first available wins):
- Session token — set by calling
bunnystudio_login(used for all later calls in that session) - CLI flag —
--token=YOUR_JWT_TOKEN - Environment variable —
BUNNY_API_TOKEN
Option A — Environment variable (recommended)
export BUNNY_API_TOKEN="YOUR_JWT_TOKEN"
npx @bunnystudio/mcp
Option B — CLI flag
npx @bunnystudio/mcp --token=YOUR_JWT_TOKEN
Option C — Login via MCP tool
Call the bunnystudio_login tool from your AI client. The returned token is stored for the session and used automatically for all subsequent calls.
Example prompts:
- "Log me in to Bunny Studio with email you@example.com and password your-password"
- "Authenticate me to the Bunny Studio API."
Custom API URL
For testing against a staging or local instance:
npx @bunnystudio/mcp --api-url=http://localhost:3000 --token=YOUR_JWT
See Environment variables for BUNNY_PUBLIC_API_URL.