# MyoAmigo > MyoAmigo exposes an OAuth-secured MCP server for AI agents working with a user's > training data. Agents can read history, analyze progress, log activity, and create > routines and plans on the user's behalf after interactive approval. ## MCP - Endpoint: https://api.myoamigo.com/mcp - Transport: stateless JSON-RPC 2.0 over HTTP POST (no server-to-client stream) - Protocol version: 2025-06-18 - Setup guide: https://api.myoamigo.com/connect ## Authentication Two ways in: 1. OAuth 2.1 (interactive MCP clients — the MCP endpoint is a protected resource): - Dynamic client registration (RFC 7591): https://api.myoamigo.com/api/auth/oauth2/register - Authorization server metadata: https://api.myoamigo.com/.well-known/oauth-authorization-server - Protected resource metadata: https://api.myoamigo.com/.well-known/oauth-protected-resource/mcp - PKCE required (S256). - Send resource=https://api.myoamigo.com/mcp on authorization so the access token is audience-bound. 2. Personal API key (headless clients — curl, scripts, agents without a browser): - Authorization: Bearer myo_sk_… on POST https://api.myoamigo.com/mcp - One key per account; created at https://api.myoamigo.com/connect (sign in first). - Rate-limited per account. Accounts: https://api.myoamigo.com/sign-up ## Tools 34 tools total. Machine-readable catalog with input schemas: https://api.myoamigo.com/tools.json Selected by category: - History: get_history, list_workouts, get_pr, get_cardio - Logging: log_set, log_cardio, finish_workout, delete_workout - Routines: list_routines, create_routine, update_routine, delete_routine - Plans: list_plans, create_plan, update_plan, delete_plan - Analytics: get_stats, get_progress, get_strength_standards, get_muscle_balance, get_training_consistency, get_week_review, assess_session - Profile & catalog: get_user_context, set_profile, search_exercises, get_body_metrics, estimate_starting_weight