Streamfog MCP

Streamfog MCP

AI-driven AR lens orchestrator for live OBS streams that enables control of Streamfog face filters, AR effects, and Vtuber avatars through MCP tools via the local Streamer.bot WebSocket bridge.

Category
Visit Server

README

Streamfog MCP

Version Python FastMCP MCP Ruff

AI-driven AR lens orchestrator for live OBS streams. Control Streamfog face filters, AR effects, and Vtuber avatars through MCP tools via the local Streamer.bot WebSocket bridge. Your AI assistant becomes a stream producer.

You might use this if… You want your AI to switch AR lenses, toggle Vtuber avatars, or clear effects during live OBS broadcasts — controlled by Twitch chat events, channel points, or agentic automation.
What it connects to Streamfog desktop app → Streamer.bot WebSocket → this MCP server
Ports Backend 10994, Dashboard 10995
Start just bootstrap then start.ps1

Architecture

┌─────────────┐     MCP SSE      ┌──────────────────┐     WebSocket      ┌──────────────┐
│  LLM Agent  │ ───────────────→ │  streamfog-mcp   │ ────────────────→ │ Streamer.bot  │
│  (Claude,   │ ←─────────────── │  :10994 (FastMCP) │ ←──────────────── │ :8080         │
│   Gemini)   │   JSON-RPC stdio │  :10995 (React)   │   DoAction JSON   │               │
└─────────────┘                  └──────────────────┘                    └──────┬────────┘
                                                                               │ Native Hook
                                                                        ┌──────▼────────┐
                                                                        │  Streamfog    │
                                                                        │  Desktop App  │
                                                                        └──────┬────────┘
                                                                               │ Browser Source
                                                                        ┌──────▼────────┐
                                                                        │  OBS Studio   │
                                                                        └───────────────┘

Quick Start

uv sync
# Edit lenses.json with your Streamer.bot action names
# Set STREAMFOG_MCP_STREAMERBOT_TOKEN in .env if using auth
.\start.ps1

MCP-only via stdio (for Cursor, Claude Desktop):

uv run -m streamfog_mcp --stdio

Prerequisites

  1. Streamfog installed and running
  2. Streamer.bot installed and running
  3. Streamfog → Streamer.bot integration enabled in Streamfog's Integrations panel
  4. Streamer.bot WebSocket server enabled (Settings → WebSocket Server)
  5. Actions created in Streamer.bot (e.g. SetLens_BeautySmooth, ClearEffects, ToggleAvatar)
  6. lenses.json populated with your action→lens mappings

Configuration

Variable Default Description
STREAMFOG_MCP_STREAMERBOT_HOST 127.0.0.1 Streamer.bot WebSocket host
STREAMFOG_MCP_STREAMERBOT_PORT 8080 Streamer.bot WebSocket port
STREAMFOG_MCP_STREAMERBOT_TOKEN Streamer.bot auth token
STREAMFOG_MCP_LENS_MAP_PATH lenses.json Path to lens→action mapping file
STREAMFOG_MCP_PORT 10994 Backend port

Lens Map (lenses.json)

{
  "beauty_smooth": "SetLens_BeautySmooth",
  "cyber_helmet": "SetLens_CyberHelmet",
  "vtuber_avatar": "SetLens_VTuberAvatar"
}

Keys are human-readable lens identifiers used in MCP tool calls. Values are the corresponding Streamer.bot action names.

MCP Tools (5)

Lens Control

Tool Description
streamfog_set_lens Activate a specific AR lens or face filter
streamfog_clear_effects Strip all effects, return camera to baseline
streamfog_toggle_avatar Toggle Vtuber-style avatar on/off

Discovery — READ_ONLY

Tool Description
streamfog_list_lenses List all configured lenses from lenses.json
streamfog_status Bridge connection health + lens count

REST API

Endpoint Method Description
/api/v1/status GET Server + bridge health
/api/v1/lenses GET List all lenses
/api/v1/lenses/set POST Activate a lens ({"lens_identifier": "beauty_smooth"})
/api/v1/lenses/reload POST Reload lens map from disk
/api/v1/effects/clear POST Clear all effects
/api/v1/avatar/toggle POST Toggle avatar

Web Dashboard

Single-page dark dashboard at :10995:

  • Connection status indicator (Streamer.bot bridge health)
  • Lens grid with one-click activation
  • Quick action buttons (Clear Effects, Toggle Avatar)
  • Lens map reload
  • Auto-refresh every 5 seconds

Project Structure

streamfog-mcp/
├── src/streamfog_mcp/
│   ├── _mcp.py              FastMCP singleton
│   ├── server.py            Unified FastAPI + FastMCP gateway
│   ├── __main__.py           CLI entry (--stdio / --serve)
│   ├── config.py             Pydantic settings (STREAMFOG_MCP_ prefix)
│   ├── tools/
│   │   ├── __init__.py       Portmanteau import
│   │   └── core_tools.py     5 @mcp.tool() decorators
│   └── services/
│       └── streamerbot.py    Streamer.bot WebSocket client
├── webapp/                   Vite + React 19 + Tailwind
│   └── src/
│       └── pages/Dashboard.tsx
├── lenses.json               Lens → action mapping
├── pyproject.toml
├── start.ps1 / start.bat
├── justfile
└── tests/
    └── test_basic.py         5 tests

Known Limitations

  • Streamfog does not expose a native CLI or local API — all control goes through Streamer.bot
  • Lens activation is fire-and-forget (Streamer.bot does not report success/failure for actions)
  • No lens preview or thumbnail retrieval (Streamfog desktop is a black box)
  • Lumia/Crowd Control bridge path is documented but not yet implemented as an alternative transport

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured