Bluesky MCP server
Add https://pubnio.com/mcp to your agent and it publishes posts, threads, and up to 4 images or one video to Bluesky through two Code Mode tools: search reads the API, execute runs a short program against it.
Connect your agent
claude mcp add --transport http pubnio https://pubnio.com/mcp
codex mcp add pubnio --url https://pubnio.com/mcp && codex mcp login pubnio
Sign in with OAuth when the agent asks, and choose the workspace that holds your Bluesky account. Setup for each client: Claude Code, Codex, Cursor, OpenCode, Grok, Dots, Muse Code.
Rules the agent reads
Before it writes a post, the agent reads the capability catalog. The Bluesky entry lists its placements, media, and caption limits:
{
"provider": "bluesky",
"label": "Bluesky",
"availability": "beta",
"accountKinds": [
"social_account"
],
"requiredScopes": [],
"placements": [
{
"placement": "feed",
"default": true,
"mediaTypes": [
"image",
"video"
],
"maxMedia": 4,
"captionCharacters": 300
}
]
}
The execute call
Asked "Post our changelog summary to Bluesky as a short thread.", the agent's Code Mode calls run like this:
search -> find the integrations, create-post, and read-post operations
execute -> list ready accounts, keep { provider: "bluesky" }
=> { accounts: [ { id: "…", provider: "bluesky" } ] }
execute -> create the post body below
Idempotency-Key: bluesky-changelog-thread
=> 202 { postId, targets: [bluesky/feed: queued] }
execute -> read post, sleep 1s between checks, within the 30s budget
=> { status: "published", url: "…" }
{
"text": "This week in the changelog, briefly.",
"publishNow": true,
"targets": [
{
"accountId": "7f3c2a10-5b4e-4d6f-8a9b-0c1d2e3f4a5b",
"provider": "bluesky",
"placement": "feed",
"settings": {
"thread": [
"Webhooks now retry for 24 hours.",
"Queues accept a time zone per slot."
]
}
}
]
}
A text-only thread needs no media, so the program skips the import.
Other requests it handles the same way:
- "Post the event photo to Bluesky with alt text."
- "Cross-post today's announcement to Bluesky, trimmed to fit."
- "Post the meetup recap to Bluesky as a three-post thread."
Errors the agent fixes
Validation names the field and says what to change, so the agent fixes the request before anything reaches Bluesky:
| Code | Message |
|---|---|
media_count | Bluesky posts accept up to four images or one video, not both. |
media_type | Bluesky posts accept JPEG or PNG images and MP4 video. |
Create answers 422 Invalid publication for these; validate lists them under errors.
Before posting to Bluesky
- Bluesky asks for no OAuth scope; the account connects with an app password.
- Post text is measured twice: at most 300 graphemes, so an emoji counts once, and at most 3,000 UTF-8 bytes.
- PubNio stops an image over 1 MB or a video over 300 MB before sending, so resize a large photo before importing it.
altTextholds up to 1,000 characters.- Video goes up as MP4 only; photos as JPEG or PNG only.
Limits
- Bluesky is in beta: accounts connect and publish, and behavior may still change.
- One
executecall runs at most 30 seconds, so a slow job returns the post ID and the next call reads its status. - Binary files do not stream through
execute: the agent imports media from an HTTPS URL or sends up to 8 MiB inline.

