Purpose
Prepublish is a remote MCP server for reviewing YouTube scripts before recording. It reads drafts that have not yet been filmed as videos, helping creators spot potential issues before they invest in shooting. Unlike other YouTube MCP servers that fetch transcripts of published videos, it reads scripts you have not yet filmed.
Main Capabilities
- Returns hook, structure, and pacing scores.
- Points out the segments most likely to lose viewers.
- Performs an unauthentic content check.
- Provides a YouTube policy precheck, citing YouTube's own published pages.
- Provides a word-count-to-runtime calculator based on measured speaking rate (script_runtime), returning three estimates.
- audit_script requires an email address because the full audit is delivered by email; the other five tools do not.
How to Use
Prepublish is a remote MCP server that is free, anonymous, requires no API key, and requires no account.
Claude Code can connect with a single command.
It can be configured in Cursor, VS Code, Windsurf, Claude Code project scope, or any client that reads an mcpServers object.
Claude Desktop: add a custom connector under Customize, then go to Connectors and paste https://mcp.prepublish.ai .
Codex CLI: configure it in ~/.codex/config.toml.
Clients that can only launch commands can use the stdio bridge in this repository, which requires Node 20 or newer and forwards to the same endpoint.
Agents installing this tool on a user's behalf should read llms-install.md.
Verify the connection: you can request a runtime estimate, for example "Use prepublish to convert 1500 words into a runtime range." script_runtime is local arithmetic, is never rate-limited, and returns three estimates. If the request responds, the connection is working.
Suitable Scenarios
Suitable for YouTube creators performing quality review of a script before recording, including checking hook appeal, structural soundness, pacing, viewer drop-off risk, unauthentic content, and policy compliance, and estimating video runtime.
Limitations
All AI-supported responses carry the same notice: these checks are based only on text and map relative attention risk within an unfilmed script. They do not measure or predict the retention that a published video will receive, and no output is a prediction of views, watch time, or revenue.
No tool fetches videos, transcripts, or channels. Each tool reads only the text you pass in.
The free tier is published live at GET https://mcp.prepublish.ai , returning a machine-readable server card containing that day's usage. script_runtime is local arithmetic and does not count toward any limit. A bearer token in PREPUBLISH_TOKEN can raise limits but does not change the tool list. When the daily cap is reached, the tool returns an error telling the model not to retry and pointing to the web alternative for that day. On failure it returns the next step rather than a stack trace.
Transport and Protocol
Uses Streamable HTTP, stateless. Supported revisions: 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05. Clients requesting a supported revision get that version; otherwise negotiation falls back to the latest implemented version, and the negotiated revision is reported consistently in the response headers and the initialize result.
The endpoint validates the Origin header. Requests without an Origin (that is, all non-browser clients) are always served. Browser origins other than prepublish.ai are rejected with 403, as required by the transport specification. An unsupported MCP-Protocol-Version header returns 400.
Aliases:https://prepublish.ai/mcp and https://mcp.prepublish.ai/mcp Served by the same processor.
The server itself lives in the Prepublish Web application, not in this repository. This repository contains the stdio bridge and the conformance test suite, used to ensure the hosted endpoint conforms to the specification.
The test suite drives the endpoint over Streamable HTTP using the official MCP SDK client, so the wire format is checked against the reference implementation rather than its own assumptions. It covers handshake, tool discovery, schema shape, script_runtime bidirectional, unknown tool errors, server card, batch rejection, notification handling, bidirectional protocol negotiation, Origin validation, protocol version validation, and stdio bridge round-trip.
An AI-backed test is skipped unless MCP_TEST_BILLABLE=1 is set, because real calls incur charges and write a record.
PREPUBLISH_MCP_URL can override the bridge's upstream endpoint. The bridge adds and hides nothing: the test asserts that its tool list equals the hosted side's tool list, so adding a tool on the server requires no release here.
Published to the official MCP registry under the name ai.prepublish/script-audit, a remote-only entry under the DNS-verified ai.prepublish namespace. See server.json.
Documentation:https://prepublish.ai/mcp-server Privacy:https://prepublish.ai/privacy Contact:https://prepublish.ai/contact MIT License. See LICENSE.