Token导航 LogoToken导航TokenDH.com
Stage Lighting MCP logo
设计创作stdio官方级别未说明来源级核验

Stage Lighting MCP

MCP Server

用于生成图像提示的确定性舞台灯光设计词汇库,提供灯光风格分类、技术参数提取和提示增强功能。

工具数

10

提示词数

0

GitHub Stars

0

资源数

0
PythonClaude设计Claude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

dmarsters

提供方

dmarsters

最后核验

2026/5/17 20:20

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

pip install fastmcp

详细介绍

舞台灯光设计MCP服务器

用于图像生成提示的确定性舞台灯光设计词汇。

建筑

三层分类层次结构:

  • 层2:纯确定性分类法(0个标记)-灯具、色温、比率、位置
  • 层3:使用技术词汇(0个标记)进行快速增强-字符串连接

成本节约:通过使用确定性参数提取,与纯LLM方法相比,约为60-85%

域名覆盖范围

照明风格(7)

  • film_noir:强烈对比,图形阴影(关键点100%,填充10%,边缘100%)
  • low_key:戏剧性,高对比度(关键100%,填充20%,边缘80%)
  • rembrandt:经典肖像,三角形高光(关键100%,填充30%,边缘60%)
  • natural:平衡、逼真(关键100%,填充50%,边缘30%)
  • high_key:明亮、均匀、最小的阴影(关键点100%,填充70%,边缘50%)
  • beauty:柔软,讨人喜欢(关键100%,填充80%,边缘40%)
  • dramatic:方向性强(关键100%,填充15%,边缘90%)

技术参数

  • 夹具:菲涅耳、椭球面、标准杆数、洪水、软箱
  • 颜色时间:1850K(蜡烛)→ 10000K(深蓝色天空)
  • 凝胶库:10+标准Rosco/Lie凝胶,具有开尔文位移
  • 职位:8个带角度的标准剧场位置
  • 动机:8个自然/实用光源

一天中的时间预设

  • 黎明、早晨、中午、下午、黄金时段、黄昏、夜晚
  • 每个都有色温、角度、质量规格

安装

本地开发

# Install FastMCP
pip install fastmcp

# Run server
python stage_lighting_mcp.py

FastMCP云部署

# Deploy to FastMCP Cloud
fastmcp deploy stage_lighting_mcp.py:mcp

入口点: stage_lighting_mcp.py:mcp (注意 .py 需要延期)

使用示例

示例1:基本风格分类

# Input description
classify_lighting_setup("moody film noir detective scene")

# Returns:
{
  "lighting_style": "film_noir",
  "key_light": {
    "color_temp_kelvin": 2700,
    "intensity_percent": 100,
    "position": {"horizontal_angle": 45, "elevation_angle": 20}
  },
  "fill_light": {
    "intensity_percent": 10,
    "color_temp_kelvin": 4100
  },
  "rim_light": {
    "intensity_percent": 100,
    "position": {"horizontal_angle": 135, "elevation_angle": 45}
  },
  "key_to_fill_ratio": 10.0
}

示例2:完整的技术规范

extract_lighting_parameters(
    lighting_style="rembrandt",
    subject_type="portrait",
    intensity=0.7
)

# Returns:
{
  "key_light": {
    "fixture_type": "fresnel",
    "beam_angle": 36,
    "color_temp_kelvin": 3200,
    "intensity_percent": 70,
    "position": {
      "horizontal_angle": 45,
      "elevation_angle": 35,
      "throw_distance_meters": 2.5
    }
  },
  # ... fill and rim specs
  "key_to_fill_ratio": 3.3,
  "lighting_contrast": "medium_high"
}

示例3:快速增强(金钱射击)

enhance_lighting_design(
    base_prompt="portrait of detective in office",
    lighting_style="film_noir",
    emphasis="dramatic"
)

# Returns:
"portrait of detective in office, film_noir lighting with dramatic 
with strong shadow side modeling, key light from 45° camera-right 
at 35° elevation, 2700K (warm tungsten), 100% intensity, creating 
strong directional quality, fill light at 10% intensity from 45° 
opposite side, 4100K (neutral fill), preserving deep shadows, 
rim light from 135° rear position at 45° elevation, 100% intensity, 
5600K creating edge separation, defining edges and creating 
dimensional separation"

示例4:动力照明

map_lighting_motivation(
    scene_context="office interior with large windows",
    time_of_day="afternoon"
)

# Returns:
{
  "primary_motivation": "window_light",
  "key_source": {
    "type": "window_light",
    "color_temp_kelvin": 5600,
    "direction_angle": 30,
    "quality": "soft_directional"
  },
  "secondary_sources": [
    {
      "type": "overhead_fluorescent",
      "color_temp_kelvin": 4100,
      "contribution": "ambient_fill"
    }
  ]
}

示例5:动画照明提示

# Dawn to noon transition
start = extract_lighting_parameters("natural", intensity=0.3)  # Dawn
end = extract_lighting_parameters("natural", intensity=0.8)    # Noon

calculate_lighting_cue_sequence(
    start_state=start,
    end_state=end,
    duration_seconds=10.0,
    num_steps=5,
    curve_type="s_curve"
)

# Returns 5 keyframes with interpolated temps and intensities

工具参考

第2层:确定性提取(0个令牌)

classify_lighting_setup(description, prefer_style="auto")

从自然语言中提取照明风格。

  • 输入:“喜怒无常的侦探场景”
  • 输出:完整的技术规格,包括比率、温度、角度
  • 成本:0个标记(关键字匹配+字典查找)

extract_lighting_parameters(lighting_style, subject_type="portrait", intensity=0.5)

生成完整的可测量规范。

  • 输入:样式名称+主题类型+强度等级
  • 输出:开尔文温度、百分比、角度、距离
  • 成本:0个令牌(算术+查找)

map_lighting_motivation(scene_context, time_of_day="auto")

确定自然/实际光源的合理性。

  • 输入:场景描述
  • 输出:具有物理特性的激励来源
  • 成本:0个令牌(上下文映射)

calculate_lighting_cue_sequence(start_state, end_state, duration_seconds, num_steps=10, curve_type="linear")

计算平滑的照明过渡。

  • 输入:两种照明状态+持续时间+插值曲线
  • 输出:带定时的关键帧序列
  • 成本:0个标记(算术插值)

第3层:快速增强(0个令牌)

enhance_lighting_design(base_prompt, lighting_style=None, subject_type="portrait", intensity=0.5, emphasis="balanced")

将照明词汇应用于图像提示。

  • 输入:基本提示+可选参数
  • 输出:通过明确的几何规格增强提示
  • 强调模式:

- "technical":完整规格,包括夹具类型、比率 - "dramatic":专注于阴影质量、建模 - "natural":强调动力来源 - "balanced":全面但简洁

  • 成本:0个令牌(字符串连接)

实用工具

get_lighting_design_info()

域统计和使用工作流。

list_lighting_styles(category=None)

浏览带有规格的可用样式。

list_gel_library(manufacturer="all", color_family=None)

浏览带有开尔文位移的彩色凝胶。

list_lighting_positions()

带角度的标准戏剧位置。

list_motivation_sources()

自然/实用光源。

构图模式

模式1:自动增强

# Claude detects style automatically
result = enhance_lighting_design(
    "film noir detective in shadowy alley"
)
# Style detection + enhancement in one call

模式2:显式控制

# Precise technical specification
style = classify_lighting_setup("portrait")
params = extract_lighting_parameters(
    style["lighting_style"],
    subject_type="full_body",
    intensity=0.8
)
result = enhance_lighting_design(
    base_prompt="fashion model",
    lighting_style=params["lighting_style"],
    emphasis="technical"
)

模式3:动机现实主义

# Build from natural sources
motivation = map_lighting_motivation(
    "bedroom at dawn with window",
    time_of_day="dawn"
)
result = enhance_lighting_design(
    "person waking up in bed",
    emphasis="natural"
)

模式4:多域组合

# Combine with other aesthetic MCPs
spark_enhanced = spark_dynamics_mcp.enhance("sparkler portrait")
lighting_enhanced = enhance_lighting_design(
    spark_enhanced,
    lighting_style="dramatic",
    emphasis="technical"
)
# Compositional = Spark ⊗ Lighting

坐标系

水平角度 (相机相对):

  • 0°=直行
  • +45°=摄像头右侧(常用按键位置)
  • -45°=摄像头左侧(常用填充位置)
  • +90°=右侧硬边灯
  • 180°=背光

仰角:

  • 0°=与受试者水平
  • 35-45°=标准键/轮缘高度
  • 90°=直下(戏剧性的顶灯)

距离 (取决于受试者类型):

  • 人像:2.5米按键,3.0米边框
  • 全身:4.0m钥匙,5.0m轮圈
  • 产品:1.5米钥匙,2.0米轮圈

色温标度

1850K  - Candle flame (deep warm amber)
2700K  - Tungsten warm (residential warm)
3200K  - Tungsten (theatrical standard)
4100K  - Neutral white (office fluorescent)
5600K  - Daylight balanced (studio standard)
6500K  - Overcast sky (cool daylight)
8000K  - Blue sky (cool blue)
10000K - Deep blue (theatrical blue)

填充比率的关键

  • 10:1 -黑色电影,强烈对比
  • 5:1 -戏剧性、强烈的阴影
  • 3:1 -伦勃朗,经典肖像画
  • 2:1 -自然、适中的造型
  • 1.5:1 -高音,柔和的阴影

与图像生成集成

此MCP提供了什么:

  • 明确的几何规格(“45°关键,35°标高”)
  • 可测量的物理参数(开尔文温度,强度%)
  • 技术词汇(夹具类型、光束角度)
  • 动机源论证(窗户、灯、壁炉)

避免什么:

  • 无技术支持的暗示语气词
  • “戏剧性的灯光”→ 取而代之的是:“按键填充比10:1,2700K按键,10%填充”
  • “穆迪氛围”→ 取而代之的是:“低调的照明,135°后方100%边缘”

图像生成器翻译: 详细的技术规格有助于图像生成器理解:

  1. 方向:光线从哪里来(角度)
  2. 质量:硬与软(夹具类型、光束角度)
  3. 颜色:温与冷(开尔文温度)
  4. 强度:明亮与微妙(百分比、比率)
  5. 动机:现实与戏剧(来源正当性)

性能特征

  • 代币成本:0(所有操作都是确定性的)
  • 延迟:每次工具调用\<10ms(字典查找+算术)
  • 决定论:100%可重复输出
  • 构图:功能(按键不依赖于边框)

验证

运行验证测试:

python test_stage_lighting.py

验证:

  • 风格分类准确性
  • 参数提取完整性
  • 快速增强格式化
  • 线索序列插值
  • 往返一致性

域名扩展

潜在补充:

  • 实践课:摄像机上的光源(灯、监视器、火)
  • 大气的:雾、霾、体积效果
  • 色彩效果:五子棋、图案、移动的灯光
  • 工作室设置:蛤壳、蝴蝶、环形照明
  • 电影摄影:相机移动照明

许可证

MIT许可证-Lushy MCP生态系统的一部分

作者

达尔·马斯特斯- 郁郁葱葱

版本

1.0.0-初始版本有7种照明风格、10种凝胶、8种位置、8种动机

目录标签

目录标签

PythonClaude设计舞台灯光本地部署图像生成技术参数提取灯光风格分类确定性词汇库

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

10

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP