MCP Server Project

Speech Bubble MCP Server

An automated pipeline that sizes and installs speech bubbles, thought balloons and text captions into both webcomics and animations.

MCP Server Python Pillow ffmpeg MIT Built with Claude
The Story
Three people at a banquet in a gilded hall, each with a speech bubble whose tail points to the speaker
A frame from the first manga video, lettered by the server. Every bubble was placed by hand.

I always planned to build a speech bubble MCP server, ever since I started the doomed Starry Knight project, because you know, webcomics need speech bubbles. But I've been putting it off, partly because I terminated the Starry Knight project, and because I've been focusing all of my attention on building my visual novel lately.

However, after reaching a milestone (Act 3: Mount Hua is now complete), I decided to take a short break and shifted my attention back to here. Actually, I shifted my attention into building a manga video because I've been seeing AI animations on my feed (particularly from Story Hub), and the incomplete videos left me frustrated. Not to mention, the constant drifts in costumes — characters would switch outfits or become totally different people — had me wondering.

What if I create my own manga video? There are already a few Japanese (and their English translated versions) manga video channels on YouTube, such as Sekai no Fushigi, RomCom Manga Chan, Akatsuki's RomCom Mangas, Manga Rabbit HoméNoba, Uta's RomCom Manga, and a few more (I still remember Sato Keiichi and his heroines, who alternate between Nagisa and Yui, and Tanaka Yuto). After all, the AI text-to-speech voices with no emotion and flat delivery grated on my ears, and I have no access to voice actors. So I decided I'll just create manga videos with speech bubbles instead of voice-acting.

A man clutching his head, with a thought in a white manga flash balloon ringed by radiating lines
A manga "flash" thought balloon
A couple at the center of a banquet, with a narration caption box in the top-left corner
A narration caption
A man shouting and a woman in a blue gown, each with a speech bubble, and a To Be Continued box in the corner
Two speakers, and the episode's last box
Creating the tools

The Bubble Layout page

Initially, I had Claude Code automatically place the speech bubbles and text captions, but they kept covering the characters' faces. Frustrated, I asked him to create an app or page that allows me to place the speech bubbles manually. I wanted to keep it easy, so I asked for a drag-and-drop and resize function. But he'll first install the speech bubbles so that I can drag and resize them manually to my satisfaction.

My workflow involves me writing the script on a separate piece of document first. So you don't actually write or edit the script or dialogue in this Bubble Layout page. Instead, I script the dialogue by hand, save it as a Word document, and then feed it to Claude. In fact, the script itself is part of a larger storyboarding workflow, the full process of which you'll see in my manga video project page.

The Bubble Layout page: one shot with three speech bubbles, each with a blue resize bar and a pink tail handle, and the shot's script listed underneath
One shot on the Bubble Layout page, with the handles showing.

The Bubble Layout page also allows me to check the final frames of each shot, as they will pause on the final frame long enough for the audience to read the caption text and dialogue. This actually has the additional benefit of catching torn frames and cutting them out as I assemble the final cut of the manga video.

Features

Lettering list

Toolbox

Nine tools

ToolWhat it does
parse_scriptturns a NAME: line script into bubbles, words untouched
fit_textshows the line breaks and size a line would get, without drawing, to check a translation fits
letter_imageletters a still
letter_videoanimates bubbles over a clip or a still, with single-frame previews first
set_project_stylesaves a project's fonts, type size, colors and thought style
get_project_styleshows the saved style
list_letteringlists saved lettering specs
get_letteringopens one, to re-render it in another language
check_statusreports ffmpeg, a font for each language and where it writes
Ecosystem

Part of the Webcomic MCP network

It works alongside the Background Generator, the Character & Panel Generator, Novel Translation, Anime Production, Music Generation and Visual Novel. For my manga video, I used the Character & Panel Generator to generate the frames, Anime Production to animate them, this Speech Bubble server to add the speech bubbles and caption text, and Music Generation to generate the background music (I wrote the lyrics). It's an entire ecosystem where the MCP servers work in concert and share notes to ensure consistency throughout the project.

For everyone's use

Get the server

It's open source (MIT), like the rest of the toolkit. Ask your AI harness to clone the webcomic-toolkit repository and follow the setup docs in speech-bubble-mcp. It needs Python 3.10 or newer, and ffmpeg only for video. No GPU.

View the code on GitHub →