Skip to main content
Glama

owncast

MCP connector for a self-hosted Owncast 0.3.0 server. It speaks the HTTP API over stdio and over stateless Streamable HTTP on localhost.

Owncast is MIT software. This connector does not copy that code. It only calls the HTTP API on the server you configure. It is not affiliated with Owncast.

owncast.routes.json maps every operation in Owncast 0.3.0 openapi.yaml. scripts/gen-operations.mjs writes src/operations.ts from that table. Do not edit src/operations.ts by hand. The spec lists 239 operations. 117 are tools. 122 are excluded (CORS OPTIONS, browser IndieAuth and Fediverse OTP, player metrics, Prometheus proxy, multipart uploads, and the public-page remote follow form).

OWNCAST_URL is required. There is no default origin.

Setup

npm install
npm run ci
npm start
npm run start:http

npm start speaks stdio. npm run start:http serves Streamable HTTP at http://127.0.0.1:3000/mcp and GET /health. HTTP mode has no authentication of its own. Keep it on localhost.

{
  "mcpServers": {
    "owncast": {
      "command": "node",
      "args": ["/workspace/connectors/owncast/dist/index.js"],
      "env": {
        "OWNCAST_URL": "http://127.0.0.1:8095",
        "OWNCAST_ADMIN_PASSWORD": "...",
        "OWNCAST_ACCESS_TOKEN": "...",
        "OWNCAST_ALLOW_WRITES": "false",
        "OWNCAST_TOOLSETS": "status,chat,config"
      }
    }
  }
}

You can set OWNCAST_ADMIN_PASSWORD, OWNCAST_ACCESS_TOKEN, or both. Public routes need neither. Admin routes need the password. Integration routes need the access token.

Docker (HTTP, no authentication, keep it on localhost):

docker build -t owncast-mcp .
docker run -p 127.0.0.1:3000:3000 \
  -e OWNCAST_URL=http://127.0.0.1:8080 \
  -e OWNCAST_ADMIN_PASSWORD=... \
  owncast-mcp

Do not put passwords or tokens in the image.

Regenerate the registry after an OpenAPI bump.

npm run gen:operations

scripts/live-check.mjs talks to a real server over stdio. It needs OWNCAST_URL and OWNCAST_ADMIN_PASSWORD (or /workspace/tools/owncast/admin.pw). It sets OWNCAST_TOOLSETS=all and unsets DATABASE_URL. Gated writes run only when OWNCAST_ALLOW_WRITES=true. It prints pass or fail lines only.

Related MCP server: forgejo-mcp-rs

Config

Variable

Meaning

OWNCAST_URL

Required. Origin, http or https, no userinfo, query, or hash. Example http://127.0.0.1:8080.

OWNCAST_ADMIN_PASSWORD

Admin password. Sent as HTTP basic auth with user admin on /api/admin/*. Redacted everywhere.

OWNCAST_ACCESS_TOKEN

Integration access token. Sent as Authorization: Bearer on /api/integrations/*.

OWNCAST_ALLOW_WRITES

Must be the literal true before a confirmed write is sent.

OWNCAST_TOOLSETS

Comma list of toolsets, or all. Default is the read-focused set below.

OWNCAST_PER_MINUTE

Local request budget. Default 30. Cache hits do not spend it.

OWNCAST_TIMEOUT_MS

Upstream timeout. Default 20000.

OWNCAST_CACHE_TTL_SEC

Read cache TTL. Default 60. Writes clear the cache.

OWNCAST_CONTACT

Contact token in the User-Agent. Must not contain a secret.

MCP_TRANSPORT

stdio or http. --http overrides.

PORT

HTTP port. Default 3000.

Invalid values are reported by field name and issue code. The rejected value is not included. Passwords, access tokens, stream keys, webhook secrets, and authorization headers are redacted in logs, errors, tool results, thrown messages, and URLs.

Auth is chosen per route. Public paths send no credentials. /api/admin sends Authorization: Basic for user admin. /api/integrations sends Authorization: Bearer. The connector never puts credentials in the API URL.

Safety

GET is a read. POST, PUT, PATCH, and DELETE are writes.

A write needs confirm: true as a boolean and OWNCAST_ALLOW_WRITES=true. The string "true" is rejected. Otherwise the tool returns a dry-run preview of method, path, query, and redacted body, and it sends nothing. Destructive actions add a warning on the tool and on the preview. That set covers disconnecting the inbound stream, changing stream keys or the admin password, banning or disabling users, and deleting webhooks or access tokens.

Access token create and webhook create return the secret once, with a shown-only-once note. Later list calls redact it. Admin config reads redact streamKeys, key, adminPassword, and webhook secret fields. Error text drops stack traces and filesystem paths.

HTTP 401 is unauthorized. HTTP 403 is forbidden. HTTP 404 is not found. HTTP 400 and 422 are invalid input. HTTP 429 includes Retry-After. Other failures are server, network, or timeout. Response bodies are capped at 1,000,000 bytes.

Tools

Default OWNCAST_TOOLSETS publishes 3 tools. OWNCAST_TOOLSETS=all publishes 7 tools (117 operations, 39 reads and 78 writes). Each tool takes action plus optional params, query, body, and confirm.

action help with optional target returns the path, query, and body fields for one action. Descriptions list action names only, so the tool list stays small.

Toolset

Tool

Operations

Default

status

owncast_status

10

yes

chat

owncast_chat

11

yes

config

owncast_config

17

yes

moderation

owncast_moderation

13

no

config_write

owncast_config_write

55

no

webhooks

owncast_webhooks

6

no

ops

owncast_ops

5

no

owncast_status covers public info (/status, /config, emoji, YP, ping, followers) plus integration status. owncast_chat reads chat and sends integration, system, and action messages. owncast_config is admin reads, including server config with stream keys redacted. owncast_moderation hides or shows messages, bans IPs, and manages moderators. owncast_webhooks covers webhooks and access tokens. owncast_ops disconnects the inbound stream and related server actions.

What this is not

This is not the Owncast web UI, the admin dashboard, or an RTMP ingest. It does not start Owncast. It does not upload logos, favicons, or custom emoji files. It does not proxy Prometheus. It does not complete IndieAuth or Fediverse OTP in a browser.

Compared with other Owncast MCP servers

A GitHub search for owncast mcp and owncast mcp-server on 3 Nov 2026 found no Owncast MCP server.

Nearest alternatives that talk to Owncast, without MCP:

This connector adds confirm-gated writes with dry-run previews, per-route public/admin/integration auth, stream-key redaction, toolset scoping, vitest coverage, and a live check against Owncast 0.3.0.

License

MIT. Owncast itself is also MIT. See owncast/owncast.

Available Tools

3 tools
owncast_chatA

owncast_chat covers the chat toolset (11 operations). Public routes send no auth. /api/admin uses HTTP basic auth as user admin with OWNCAST_ADMIN_PASSWORD. /api/integrations uses Bearer OWNCAST_ACCESS_TOKEN. OWNCAST_URL is required. action help with target returns one action's parameters. Writes need confirm set to the boolean true and OWNCAST_ALLOW_WRITES=true. Omit confirm for a dry-run preview that sends nothing. Actions: external_get_chat_messages, external_get_connected_chat_clients, get_chat_messages, get_chat_messages_admin, get_connected_chat_clients, register_anonymous_chat_user, send_chat_action, send_integration_chat_message, send_system_message, send_system_message_to_connected_client, send_user_message.

Inputs: action (required), body, query, params, +2 more.

owncast_configA
Read-only

owncast_config covers the config toolset (17 operations). Public routes send no auth. /api/admin uses HTTP basic auth as user admin with OWNCAST_ADMIN_PASSWORD. /api/integrations uses Bearer OWNCAST_ACCESS_TOKEN. OWNCAST_URL is required. action help with target returns one action's parameters. Actions: get_active_viewers, get_admin_federated_servers, get_blocked_and_rejected_followers, get_directory_followers, get_feature_requests, get_federated_actions, get_followers_admin, get_hardware_stats, get_logs, get_pending_follow_requests, get_playback_clients, get_server_config, get_users, get_video_playback_metrics, get_viewers_over_time, get_warnings, status_admin.

Inputs: action (required), body, query, params, +1 more.

owncast_statusA
Read-only

owncast_status covers the status toolset (10 operations). Public routes send no auth. /api/admin uses HTTP basic auth as user admin with OWNCAST_ADMIN_PASSWORD. /api/integrations uses Bearer OWNCAST_ACCESS_TOKEN. OWNCAST_URL is required. action help with target returns one action's parameters. Actions: external_get_status, get_all_social_platforms, get_custom_emoji_list, get_federated_servers, get_followers, get_status, get_video_stream_output_variants, get_web_config, get_yp_response, ping.

Inputs: action (required), body, query, params, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 3 tools

    Disambiguation3/5

    The three tools split cleanly by domain (config, status, chat), but individual actions overlap across facades: federated servers appear in both config (get_admin_federated_servers) and status (get_federated_servers), followers appear in both (get_followers_admin vs get_followers), and get_server_config/get_web_config/get_status are close in purpose. Because everything is hidden behind a single 'action' parameter, an agent must read the help output to resolve these boundaries rather than inferring from the tool names.

    Naming Consistency4/5

    Tool names use a consistent owncast_<domain> prefix, and all actions inside them are consistently snake_case. The only minor inconsistency is that action names mix verb_noun patterns (get_users, send_user_message) with bare nouns/status calls (ping, status_admin).

    Tool Count3/5

    Three tools is thin for a surface that actually exposes 38 operations, forcing heavy nesting behind a single 'action' parameter. The facade grouping is logical, but agents must discover operations indirectly via 'action help', which makes the small tool count feel under-decomposed rather than well-scoped.

    Completeness3/5

    The surface covers status, config, and chat reads plus chat sends, but it is largely read-only where it matters: there is no update/set config action despite a 'config' toolset, no accept/reject for pending follow requests, no block/unblock follower action, and no chat moderation (delete message, ban user). These are notable lifecycle gaps an admin agent would hit.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables MCP clients to read a Forgejo, Codeberg, or Gitea instance—including users, repositories, issues, pull requests, search, notifications, comments, reviews, and Actions runs—with opt-in, time-boxed guarded writes for repository, branch, issue, pull request, comment, migration, push-mirror, and workflow operations.
      59
      2
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables MCP clients to manage a self-hosted Zipline instance's files, folders, short URLs, invites, tags, and account or instance information through the official JSON API, with confirmation-gated writes and redacted secrets.
      6
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Connects MCP clients to a self-hosted Syncthing instance's GUI REST API for reading configuration, folders, devices, and connections, plus gated write actions like adding or patching folders and devices, scanning, pausing, restarting, and shutting down. Supports stdio and localhost-only Streamable HTTP with API-key auth, dry-run write previews, redaction of secrets, caching, and rate limiting.
      5
      MIT