{
  "name": "YouTube Transcript MCP & REST API",
  "status": "online",
  "version": "1.0.0",
  "description": "Streamable HTTP MCP endpoint plus a direct REST API for YouTube transcripts.",
  "endpoints": {
    "rest_api": {
      "get": "/mcp?videoIdOrUrl=<url_or_id>&lang=<optional_lang>&format=<json|text>",
      "post": "/mcp"
    },
    "mcp_protocol": {
      "protocol": "MCP Streamable HTTP",
      "method": "POST /mcp",
      "tools": [
        "get_youtube_transcript",
        "summarize_youtube_transcript"
      ]
    }
  },
  "configuration": {
    "bot_protection": "For cloud deployments, set YOUTUBE_COOKIE if YouTube challenges the server IP; local stdio or a local tunnel keeps fetching on your residential IP."
  }
}