CCClaude Code+MaMastodon

Post to Mastodon from Claude Code

Claude Code can post to Mastodon on Mastodon through ClipSpeed. Add the ClipSpeed server with one command, sign in, and then ask Claude Code to post to Mastodon, pick the time, and apply Mastodon's settings, without leaving the terminal, VS Code and JetBrains. Mastodon is on the roadmap on ClipSpeed's rail; this page describes how it works and says so.

On the roadmapVerified end to end

Keep a human in the loop: Claude Code shows the plan and asks before anything is public. Posting today: YouTube, TikTok, Instagram, X (Twitter) and LinkedIn.

Claude Code
Post the announcement to Mastodon at 9am. Preview first.
Preview — nothing booked yet. Would schedule on: • Mastodon — text under 500 · visibility: public Times are in America/New_York. Book it?
via ClipSpeed · Mastodon

Also try

How to post Mastodon from Claude Code

One terminal command registers the server. Start a session, run /mcp to sign in to ClipSpeed in the browser tab that opens, and every tool is available. Connect Mastodon in ClipSpeed, then describe the post. Setup takes about a minute.

setup once, then just ask
# One-time setup (OAuth, no API key)
claude mcp add --transport http clipspeed https://api.clipspeed.ai/mcp

# Then ask Claude Code:
> Post the announcement to Mastodon at 9am
Claude Code: Preview — nothing booked yet. Mastodon — text under 500. Book it?

Servers load at session start. If the tools do not appear, run claude mcp list, then start a new session.

  1. Run claude mcp add --transport http clipspeed https://api.clipspeed.ai/mcp in your terminal.
  2. Start claude and run /mcp. Pick clipspeed and authenticate; a browser tab opens for the ClipSpeed sign-in. Approve it.
  3. Ask it to list your channels. Claude Code calls list_channels and shows what is connected.
  4. Connect Mastodon in the ClipSpeed app, or ask Claude Code for a connect link: it is private, valid for ten minutes, and Mastodon signs you in itself.

Developer reference: the Claude Code MCP page.

What can Claude Code do on Mastodon?

On Mastodon, Claude Code can post 500-character text, images and video to a Mastodon account on any server. Every booking runs through the same rules as the ClipSpeed app.

Text, Image and Video posts

Mastodon takes text, image and video through ClipSpeed. Video: MP4 or WebM. Image: JPG, PNG or GIF; up to four per post on Mastodon.

500 characters, checked at booking

Mastodon's own arithmetic, with every link counted as 23. Too long is refused with the real count, never trimmed at send time.

Exact time or refused

Name the minute and Claude Code books it, or you are told why not and offered the next open slot. A booked Mastodon post is never moved behind your back.

Preview before anything posts

preview: true runs the whole booking and writes nothing. Claude Code shows the plan, with each slot and the day's remaining cap, and books only on your yes.

Clips cut in the same session

Submit a video or stream link, get captioned 9:16 clips with a viral score, and post the best as native video on Mastodon. No download, no re-upload.

Pacing and numbers

Planned: Text posts on Mastodon are at least 30 minutes apart, up to 10 a day. Video on Mastodon is at least 4 hours apart, up to 4 a day under your plan. After a post goes out, Claude Code can read back views and engagement where Mastodon provides them.

How does Claude Code post to Mastodon through ClipSpeed?

You describe what you want in plain language and Claude Code makes the ClipSpeed calls. A typical conversation has three beats.

1

Find your Mastodon channel

Ask Claude Code whether Mastodon is connected. It calls list_channels and reads platform_settings, so it also knows what Mastodon accepts and the limits before you write a word.

Is my Mastodon account connected to ClipSpeed?
Mastodon is on the roadmap on ClipSpeed; I can't book there yet. Your YouTube channel is connected if you'd like to use that.
2

Compose within the rules

Describe the post. Claude Code drafts within Mastodon's limits, counting links as 23; mention a clip or a file and it attaches it.

Draft a Mastodon post about the launch with the best clip from the demo.
Here's the draft (400/500): "…" Clip 2 (score 88) attached. Want me to schedule it?
3

Schedule or publish

Name a time, or say now. The slot is booked exactly or refused with the next open one, and the reply carries the id you can cancel or edit by.

Yes — tomorrow at 9am.
Scheduled on: • Mastodon — Tue, 9:00 AM · id 7c2… Times are in America/New_York.

Mastodon settings reference

These are the schedule_post fields that apply to Mastodon. Mention any of them in plain language and Claude Code sets them; the server checks them at booking. Fields marked planned land with the Mastodon release.

FieldTypeRequiredWhat it does on Mastodon
platformsstring[]YesInclude "mastodon". Up to ten platforms per call; each books its own slot.
textstringYes for a text postUp to 500 characters on a default server; links count as 23.
visibilitypublic | unlisted | followersPlannedMastodon's post visibility.
media_kindtext | image | videoNoDetected from the file when omitted.
clip_id or media_urlstringNoA clip or a public link.
scheduled_atISO 8601NoExact or refused with the next open slot.
previewbooleanNoPlan only.

Common Mastodon configurations

Ask Claude Code for any of these and it applies the matching settings.

Public post

Post the announcement to Mastodon at 9am
Got it. Applying: text under 500 · visibility: public

Unlisted test

Post it unlisted first so I can check the formatting
Got it. Applying: visibility: unlisted

Clip as video

Post clip 2 to Mastodon at 5pm
Got it. Applying: clip_id

Day of posts, previewed

Plan six posts across the day, show me first
Got it. Applying: preview: true

Example prompts for Mastodon in Claude Code

Type these into the terminal, VS Code and JetBrains, or pass one to release.sh in a script. Claude Code calls ClipSpeed and confirms before publishing.

Just ask

Post Mastodon with a scheduled time

Post the announcement to Mastodon at 9am. Keep the text under 500 characters with links counted as 23. Preview first.
Clips first

Cut the clips, then post the best

Clip this link, keep the top three by viral score, and schedule them to Mastodon at 11am, 3pm and 7pm tomorrow. Show me the plan before booking.
Headless

From a script with Claude Code

claude -p "Summarise the changes since the last git tag as one Mastodon post under 500 characters. Schedule it via ClipSpeed for today at 10am; preview first and book if nothing is refused."

Mastodon limits and gotchas to know

Mastodon enforces a few rules that Claude Code and ClipSpeed respect automatically, but knowing them helps you phrase requests.

  • 500 characters is the default limit, with every link counted as 23. Some servers allow more; ClipSpeed will use your server's limit at booking.
  • Your account lives on one server; you connect that server, not mastodon.social in general.
  • Mastodon is on ClipSpeed's roadmap, not the next rail. Bookings are refused plainly until it posts.
  • Content warnings and alt text are planned fields.
  • Planned pacing: ten text posts a day 30 minutes apart, video four hours apart.
RuleMastodon
AcceptsText, Image, Video
Text limit500 characters; every link counts as 23 (500 is the default; your server may allow more)
TitleNo title field
Links in the captionKept; every link counts as 23 characters
PacingPlanned: Text posts on Mastodon are at least 30 minutes apart, up to 10 a day. Video on Mastodon is at least 4 hours apart, up to 4 a day under your plan.
FormatsImage: JPG, PNG or GIF; up to four per post on Mastodon. Video: MP4 or WebM. Aspect: any
StatusOn the roadmap; described here, not yet bookable

What Postiz-style schedulers cannot do

Cut the clips first

Claude Code does not need finished video to start. Hand it a YouTube link, a podcast, a stream VOD or a local export. ClipSpeed finds the moments, cuts them to 9:16 with word-by-word captions, scores each one 0 to 100 for shareability, and returns them in the same conversation. Claude Code picks by score, writes the caption from the transcript, and books the clips on Mastodon. Three tool calls, one approval, no download and no re-upload.

  • Clips arrive with a title written from the hook, a transcript and a viral score, so the agent can choose and caption without watching the footage.
  • Live streams can be clipped while they are still on air; the agent books the highlights for the next morning before the stream ends.
  • Every clip is already hosted, so schedule_post takes its id directly. Nothing moves through your laptop.
1
submit_to_clipspeedPaste the link. ClipSpeed starts the job and returns a project id.
2
check_clipsPoll with the project id. Back come the finished 9:16 clips with titles, transcripts, viral scores and preview links.
3
schedule_postPass the clip id, the platforms, a caption and a time. Claude Code shows the plan with preview: true, you say yes, it books.
1
generate_image or generate_videoDescribe the shot. ClipSpeed runs it on the model that fits (Seedance, Kling, Veo, Nano Banana Pro, GPT Image and others) and quotes the credits first.
2
wait_for_generationReturns the hosted result link and a preview the agent can show you.
3
schedule_post with media_urlThe result link goes straight into the booking on Mastodon. The caption, the time and the file are approved together.

The other half nobody else has

Generate the image or video, then post it

A product shot for Instagram, a 16:9 announcement graphic for X, a six-second opener before a clip: Claude Code can make an image or a short video with ClipSpeed's image and video models and book the result in the same reply. There is no separate design tool, no export, no upload page. The generated file is hosted, so media_url is the only thing the booking needs.

  • The price in credits is quoted before anything renders, within the per-generation and daily caps you set in Settings.
  • Results are previewed in the conversation, so you approve the picture and the post at once.
  • Images post as JPG, PNG or WebP up to 25 MB; video posts as MP4, MOV or WebM up to 1 GB.

What is Claude Code?

Claude Code is Anthropic's agentic coding tool. It runs in your terminal, with extensions for VS Code and JetBrains, reads your codebase, runs commands and calls MCP tools to finish multi-step work. With ClipSpeed registered as an MCP server, it can also clip a video, generate images and video, and schedule posts to your connected platforms from the same session, or from a script with claude -p.

How ClipSpeed works with Claude Code

  • claude mcp add registers the HTTP server; /mcp in a session completes the OAuth sign-in
  • Claude Code discovers the ClipSpeed tools at session start and chains them: submit_to_clipspeed → check_clips → schedule_post
  • platform_settings is read before composing so X's 280 and YouTube's 100-character title are met the first time
  • A time you name is booked exactly or refused with the next open slot; a taken slot is never silently moved
  • Works with Claude.ai, Console, Bedrock and Vertex AI accounts; the ClipSpeed sign-in is separate and OAuth

Claude Code vs Claude Cowork vs the Claude connector: Claude Code (terminal, vs code, jetbrains), Claude Cowork (claude desktop), Claude (claude.ai) (browser, desktop, mobile). This page is about Claude Code; the Claude Code guide compares them.

terminal
# Register the server (OAuth; sign in with /mcp inside a session)
claude mcp add --transport http clipspeed https://api.clipspeed.ai/mcp

# No browser on this machine? Use an API key header instead
export CLIPSPEED_API_KEY="csai_live_..."
claude mcp add --transport http clipspeed https://api.clipspeed.ai/mcp \
  --header "Authorization: Bearer $CLIPSPEED_API_KEY"

# Verify
claude mcp list
claude "List my connected ClipSpeed channels"
tool list (abridged)
# What the agent reads at connect time (tool descriptions, abridged)
list_channels           Connected platforms, what each accepts, limits, your time zone
connect_channel         A private 10-minute link to connect one platform
platform_settings       Limits, title rules, link handling, pacing per platform
schedule_post           clip_id | text | media_url → platforms[], scheduled_at, preview
list_scheduled_posts    Scheduled, sending, posted, failed — with post links
update_scheduled_post   Edit copy while still scheduled (the time never moves)
cancel_scheduled_post   Cancel; undoable 72 h in the app
post_analytics          Views, likes, comments, shares where the platform gives them
submit_to_clipspeed     Start clipping a video or stream link → projectId
check_clips             Finished 9:16 clips with titles, transcripts, viral scores
generate_image / generate_video / wait_for_generation

# Mastodon: text/image/video · text 500 (links = 23)

Post to Mastodon and other platforms from Claude Code

One request can book the same content to Mastodon and other channels, each keeping its own settings and its own slot. Every platform below has its own Claude Code guide.

Post the launch to Mastodon and Bluesky tomorrow at 9am, then a daily tip on Bluesky every weekday at 10am. Preview first.
Preview — nothing booked yet: • Mastodon — Tue 9:00 AM (refused: on the roadmap) • Bluesky — Tue 9:00 AM (refused: coming next) • Bluesky daily tips — Mon–Fri 10:00 AM Book it?

Also works with

Mastodon and Claude Code: frequently asked questions

How do I post to Mastodon from Claude Code?

Run claude mcp add --transport http clipspeed https://api.clipspeed.ai/mcp in your terminal. Start claude and run /mcp. Pick clipspeed and authenticate; a browser tab opens for the ClipSpeed sign-in. Approve it. Connect Mastodon in ClipSpeed (or ask Claude Code for a connect link; it is private and valid for ten minutes), then describe the post in plain language. Claude Code reads the Mastodon rules, drafts within them, shows the plan and books on your yes. Mastodon is on the roadmap; until the badge changes, the booking is refused with a plain message.

What can Claude Code post to Mastodon through ClipSpeed?

Post 500-character text, images and video to a Mastodon account on any server. Mastodon takes text, image and video posts. Text is limited to 500 characters, with every link counted as 23.

Which Mastodon settings can Claude Code control?

The fields in the settings reference above: text, visibility, media_kind, clip_id or media_url, scheduled_at, preview. Mention any of them in plain language ("unlisted", "tomorrow at 9", "preview first") and Claude Code sets the matching field before it books.

Do I need a Mastodon API key or developer account?

No. You connect Mastodon to ClipSpeed once through Mastodon's own sign-in, and Claude Code talks to ClipSpeed over OAuth. No Mastodon developer key, bearer token or password is pasted anywhere.

How many Mastodon posts a day can Claude Code schedule?

Planned: Text posts on Mastodon are at least 30 minutes apart, up to 10 a day. Video on Mastodon is at least 4 hours apart, up to 4 a day under your plan. When a time is taken, the booking is refused with the next open slot rather than moved. Ask for preview to see a day's plan and the remaining cap before anything is booked.

Can Claude Code post to Mastodon from a script or a cron job?

Yes. Claude Code's headless mode (release.sh) runs one prompt and exits, and the ClipSpeed server registered on that machine does the booking. On a runner with no browser, authenticate with a ClipSpeed API key header. Keep preview on so the run reports a plan before it books.

Is posting to Mastodon from Claude Code different from Claude Cowork?

The booking is identical: the same rules, the same calendar, the same refusals. What differs is where you work. Claude Code: terminal, vs code, jetbrains; headless with claude -p. Claude Cowork: claude desktop, works with local folders and desktop apps, no terminal.

Start posting to Mastodon from Claude Code

Mastodon is on the roadmap. Start with the five platforms that post today and your Mastodon channel joins the same calendar when the badge changes.

Claude Code is a product of Anthropic, PBC. ClipSpeed is an independent product and is not affiliated with or endorsed by Anthropic.

Mastodon is a trademark of its owner. ClipSpeed is not affiliated with Mastodon; names are used to describe compatibility. Status badges come from ClipSpeed's own rail and change when the facts do.

Scheduling is included on every paid ClipSpeed plan. The $1 trial starts the same account. Plans · Status · MCP reference

ClipSpeedAI

AI video, AI images, AI influencers and AI clipping on one credits wallet, in the web app and inside Claude and ChatGPT.

Start creating
© 2026 ClipSpeedAITerms · Privacy · DMCA