Docs
Add ClipClear, then check a window.
ClipClear is an MCP server and CLI that checks a clip before it is cut. After you add the server, restart the agent session so framing_check and already_posted appear in the tool list.
Machine-specific paths from the product README are shown as placeholders.
Add the server
Point a stdio MCP entry at ClipClear, with PYTHONPATH set so clipclear imports.
Cursor / Claude Code — add this to the project or assistant MCP config (mcp.json):
{
"mcpServers": {
"clipclear": {
"command": "[path to python]",
"args": ["-m", "clipclear", "serve"],
"env": {
"PYTHONPATH": "[path to clipclear/src]"
}
}
}
}Equivalent command line:
PYTHONPATH=[path to clipclear/src] [path to python] -m clipclear serveframing_check
framing_check(video_url, start, end)
Sample the window, find the speaker, and return PASS or FAIL against the house 1080×1920 layout (≥20px headroom, hook ink top ~y1014, hook may cover the top 15% of the head only).
A YouTube URL uses a local storyboard cache when one is present. If no cache is present, the tool can fetch storyboard tiles and reuse them on later calls. It only errors if storyboards are also unavailable. Optional post-cut QC on render plates can also pass clean_url, overlay_url, and final_url.
framing_check(
video_url="https://www.youtube.com/watch?v=VIDEO_ID",
start=1513,
end=1732
)already_posted
already_posted(video_url, start, end)
Check whether that moment (not just the episode) is already up as a Short or a Clips upload. Needs an episode link plus a storyboard or transcript match, or a strong transcript match. A link or title alone is never a match.
Returns MATCH, NO_MATCH, or UNCERTAIN. NO_MATCH means the live official-clips and source-channel Shorts/uploads lists were consulted, not only records saved locally.
Live listings are on by default. Free sources are tried first. Results may be cached.
already_posted(
video_url="https://www.youtube.com/watch?v=VIDEO_ID",
start=1513,
end=1732
)CLI
The CLI runs the same checks. Paths to the interpreter are shown as python here; use your local environment.
# Framing check
clipclear framing_check \
--video 'https://www.youtube.com/watch?v=VIDEO_ID' --start 1513 --end 1732
# Already posted (exit 0 only on NO_MATCH)
python -m clipclear already_posted \
--video 'https://www.youtube.com/watch?v=VIDEO_ID' --start 1513 --end 1732
# Both tools (exit 0 only on framing PASS and already_posted NO_MATCH)
python -m clipclear check \
--video 'https://www.youtube.com/watch?v=VIDEO_ID' --start 1513 --end 1732