bluesky-mcp-server
Provides tools for searching posts, profiles, feeds, threads, and trending topics on Bluesky via the AT Protocol public AppView, enabling read-only access to Bluesky social data without authentication.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@bluesky-mcp-serversearch for posts about AI"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Public Hosted Server: https://bluesky.caseyjhand.com/mcp
Tools
Seven tools for read-only access to the public Bluesky/AT Protocol AppView — no authentication required:
Tool | Description |
| Full-text search across public Bluesky posts, with author, language, tag, date, and sort filters |
| Fetch a Bluesky actor's public profile by handle or DID — the handle↔DID resolver |
| A user's recent posts ordered newest-first, filterable by post type |
| Fetch the conversation for a post by AT-URI — parent chain upward and reply tree downward, with what Bluesky counted but did not return |
| Find Bluesky accounts by name or handle fragment |
| Paginated social graph edges — who a user follows or who follows them |
| Real-time trending topics on Bluesky with post count, category, status, and the accounts driving each topic |
bsky_search_posts
Full-text search across public Bluesky posts.
Filters: author handle, language (BCP-47), hashtag, date range (
since/until), and sort order (toporlatest)Identifier, language, and date inputs are pattern-validated before the upstream call — a malformed handle, DID, AT-URI, language tag, or date fails locally with the expected shape instead of a generic upstream 400. Language is checked for BCP-47 shape only, matching Bluesky itself: a well-formed tag naming no indexed language returns unfiltered results rather than an error, and the field description says so
When Bluesky rejects a parameter anyway, its own explanation is surfaced as the error reason and recovery hint instead of a bare
Status: 400Returns posts with text, author, engagement counts (likes/reposts/replies/quotes), embeds, AT-URIs, and timestamps
hitsTotalwhen available, reported as the bound it is — Bluesky caps the count at 10,000, so exactly 10,000 means "at least 10,000" and both the field description and the rendered header say soTruncation is disclosed (
truncated,shown,cap, and guidance) in bothstructuredContentand thecontent[]trailer when more posts match than came back. A returned cursor alone does not trigger it — Bluesky sends one on every non-empty response, exhausted or not, sohitsTotalis what settles whether the page was cut shortPagination via opaque cursor; up to 100 results per call
Embeds normalized into a flat union:
images(also coversapp.bsky.embed.gallery),external(link cards),record(quoted posts),video,unknownA quoted post carries its own attachments under
embeds, so a quote of an image post is not reduced to a line of text, alongsidemediafor anything the quoting post attached beside the quote. The rendered output names which post each block belongs to, since the two belong to different accountsQuote nesting is followed three levels down, which is deeper than the AppView has been seen to hydrate. A quote at that bound reports the attachments it did not carry through as
omittedEmbedsand says so in the rendered text, so it never reads as a quote that had noneA quote that cannot be read — deleted, blocked, detached — or that points at a feed generator, list, starter pack, or labeler rather than a post carries
recordKindnaming the case, instead of arriving as an empty quoteModeration labels surfaced as-is — not filtered
bsky_get_profile
Fetch a Bluesky actor's public profile by handle or DID.
Returns displayName, handle, DID, description, pronouns, website, follower/following/post counts, avatar URL, moderation labels, and pinned post AT-URI
websiteis the one link a profile carries in a field of its own rather than inside the bio; both it andpronounsare absent for accounts that set neitherThe bio is rendered as a blockquote — it is text the account holder wrote, and can carry markdown of its own. The display name and pronouns render inside lines the server writes, with their line breaks folded to spaces, so neither can open a heading of its own
The resolution step for handle↔DID — use before tools that require a DID or AT-URI when you only have a handle
bsky_get_author_feed
A user's recent feed ordered newest-first — their own posts and their reposts.
Filter by post type:
posts_with_replies,posts_no_replies(excludes replies),posts_with_media, orposts_and_author_threads. None of them exclude reposts — the AppView has no repost filterReposts carry
repostedByandrepostedAt;authoralways names whoever wrote the postBecause
limitcounts reposts too, a page from an account that reposts heavily holds far fewer of that account's own posts than the limit suggests — 30 items from one such account came back as 10 originals and 20 reposts. The response reportsoriginalPostsandrepostswhenever a repost is present, so the yield is stated rather than reconstructed by countingReturns posts with full text, engagement counts, embeds, and AT-URIs for thread drilling
Pagination via cursor
bsky_get_post_thread
Fetch the conversation for a post by AT-URI.
Returns the root post, parent chain (upward), and nested reply tree (downward)
Configurable
depth(reply tree depth, default 6, max 10 — Bluesky returns no more than 10 levels however deep the request) andparent_height(parent chain height, default 80, max 100)Bluesky holds replies back past a per-post limit and exposes no way to page the rest, so a thread with thousands of replies commonly comes back with a few hundred. Any node returning fewer replies than its own
replyCountcarriestruncated: truewithunreturnedRepliesand atruncationReason:"depth"(the tree ends there — fetch that node's AT-URI as its own thread to continue) or"unavailable"(no request closes the gap). The response totals the difference for the whole threadRead those totals as an upper bound on what is missing, not a count of readable replies — Bluesky's reply counter keeps including replies that have left the index, so a difference of one or two often means nothing is left to fetch
The parent chain is disclosed the same way. Bluesky stops the chain at
parent_heightand gives no signal that it did, so the topmost post returned would otherwise be indistinguishable from the start of the conversation. When it is not, that node carriesparentChainTruncated: trueand the response names its AT-URI — unlike the reply shortfall this one is fully recoverable, sinceparent_heightis honored level for level and fetching that node as its own thread walks further upReply depth rides the author heading (
### ↳2 Name (@handle)— two levels below the top-level reply it descends from) rather than a left margin, so a nested reply stays readable markdown. Indenting instead would push every line below the second level past four spaces, which renders the whole nested half of a thread as a code block. The number is stated rather than repeated as a glyph, since a reply can sit nine levels down and a run of nine arrows has to be counted to be readSurfaces the author's reply gate when one is set: who may reply, and the AT-URIs of replies the author hid
Deleted posts surface as
notFound: trueand posts hidden by a block asblocked: true; both keep the AT-URI Bluesky reportedAT-URIs come from
bsky_search_postsorbsky_get_author_feed
bsky_get_follows
Fetch social graph edges for an account.
direction:followers(who follows the actor) orfollowing(who the actor follows)Returns paginated profiles with handle, DID, displayName, description, pronouns when the account set them, and follower count
Includes the subject's profile summary at the top level, pronouns included
No
website— the view these two endpoints return does not carry it; resolve the account withbsky_get_profilewhen it matters
bsky_get_trending
Fetch real-time trending topics on Bluesky.
Returns topics with display name, post count, category (politics, sports, pop-culture, etc.), status (hot/rising), and start time
Each topic carries the representative accounts driving it, so "who is talking about this" costs no follow-up search
No cursor — returns the current snapshot up to
limitUses
app.bsky.unspecced.getTrends— Bluesky may change this endpoint without notice
Related MCP server: Bluesky MCP
Resource
Type | Name | Description |
Resource |
| A Bluesky actor's public profile, addressable by handle or DID |
All resource data is also reachable via tools. Use bsky_get_profile for programmatic access or bsky://profile/{actor} to inject profile context directly.
Features
Built on @cyanheads/mcp-ts-core:
Declarative tool and resource definitions — single file per primitive, framework handles registration and validation
Unified error handling — handlers throw, framework catches, classifies, and formats
Pluggable auth:
none,jwt,oauthSwappable storage backends:
in-memory,filesystem,Supabase,Cloudflare KV/R2/D1Structured logging with optional OpenTelemetry tracing
STDIO and Streamable HTTP transports
Bluesky-specific:
No authentication required — all seven tools operate against
api.bsky.appwithout credentialsSingle
BlueskyServicewrapping the AT Protocol public AppView with retry (3 attempts, 500ms base), 15s timeout, and a versionedUser-AgentEmbed normalization — raw nested AT Protocol embed objects flattened to a clean
type-discriminated unionModeration labels surfaced verbatim — the agent and its human decide what to do
AT Protocol identifier types (handle, DID, AT-URI) explained at first encounter in every tool description
Agent-friendly output:
AT-URIs on every post and resource — chain
bsky_search_posts→bsky_get_post_threadwithout extra stepsDiscriminated embed union (
type: "images" | "external" | "record" | "video" | "unknown") — branch on data, not$typestrings; an unmapped lexicon type arrives asunknownwith its raw$typerather than vanishingUnreadable and non-post quotes discriminated by
recordKind— an agent can tell a deleted or blocked quote from one whose text was simply not returnedAttachments a quote nested past the mapped depth would have carried are counted in
omittedEmbedsrather than dropped, so the bound on embed recursion is visible in both channelsBoth response channels carry the same fields. A post and its embed normalize to exactly what the rendered
content[]emits — image and video URLs, alt text, link-card title and description, the AT-URI and CID of a quoted post, the author's handle, DID, display name, and avatar, and each moderation label with the labeler that applied it and when — so a client readingstructuredContentand one reading the rendered text see the same post. Pixel dimensions and a link card's preview thumbnail are left upstream rather than reaching one channel alone, and account-level detail is absky_get_profilelookup awayText Bluesky users wrote — post bodies, quoted-post bodies, profile bios, pronouns, image alt text, and link-card titles and descriptions — is rendered as a markdown blockquote, every line prefixed with
>and blank lines kept as a bare>. A post carrying its own###heading,---rule, or fenced code block stays inside the quote instead of merging with the server's own section structure, so third-party content never reaches a model in the same channel as the server's labels. Values that render inside a line rather than as a block — display names, pronouns, topic names, moderation label values — have their line breaks folded to spaces for the same reason.structuredContentcarries every string unchangedNothing in the rendered output indents past three spaces. Four leading spaces open a markdown code block, which would render that framing as literal characters instead of a quote — so nesting is carried by labels and headings, and both thread depth and embed depth are bounded by that budget rather than spending it
hitsTotalon search results, framed as a lower bound at Bluesky's 10,000 cap — communicate result scale without reporting a ceiling as a measurementTruncation signals on thread nodes (
truncated,unreturnedReplies,truncationReason,parentChainTruncated) plus a thread-wide total, stated as a bound rather than a cause — agents can tell how much of a conversation may be missing at either end, which part another request can still reach, and how much of the gap the thread author explains
Getting started
Public Hosted Instance
Connect directly — no installation required:
{
"mcpServers": {
"bluesky-mcp-server": {
"type": "streamable-http",
"url": "https://bluesky.caseyjhand.com/mcp"
}
}
}Self-hosted
Add the following to your MCP client configuration file. No API key required.
{
"mcpServers": {
"bluesky-mcp-server": {
"type": "stdio",
"command": "bunx",
"args": ["@cyanheads/bluesky-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}Or with npx (no Bun required):
{
"mcpServers": {
"bluesky-mcp-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cyanheads/bluesky-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}Or with Docker:
{
"mcpServers": {
"bluesky-mcp-server": {
"type": "stdio",
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "MCP_TRANSPORT_TYPE=stdio",
"ghcr.io/cyanheads/bluesky-mcp-server:latest"
]
}
}
}For Streamable HTTP, set the transport and start the server:
MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
# Server listens at http://localhost:3010/mcpPrerequisites
Bun v1.3.0 or higher (or Node.js v24+).
No API key or account required — all tools call
api.bsky.appwithout credentials.
Installation
Clone the repository:
git clone https://github.com/cyanheads/bluesky-mcp-server.gitNavigate into the directory:
cd bluesky-mcp-serverInstall dependencies:
bun installConfigure environment (optional):
cp .env.example .env
# edit .env to override any framework defaultsConfiguration
This server requires no API keys. All framework configuration is optional.
Variable | Description | Default |
| Transport: |
|
| Port for HTTP server |
|
| Auth mode: |
|
| Log level (RFC 5424) |
|
| Directory for log files (Node.js only) |
|
| Storage backend |
|
|
|
See .env.example for the full list of optional overrides.
Running the server
Local development
Build and run:
# One-time build bun run rebuild # Run the built server bun run start:stdio # or bun run start:httpRun checks and tests:
bun run devcheck # Lint, format, typecheck, security bun run test # Vitest test suite bun run lint:mcp # Validate MCP definitions against spec
Docker
docker build -t bluesky-mcp-server .
docker run --rm -p 3010:3010 bluesky-mcp-serverThe Dockerfile defaults to HTTP transport, stateless session mode, and logs to /var/log/bluesky-mcp-server. OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.
Project structure
Directory | Purpose |
|
|
| AT Protocol AppView HTTP client with retry, timeout, and |
| Tool definitions ( |
| Resource definitions ( |
| Unit and integration tests mirroring |
Development guide
See CLAUDE.md for development guidelines and architectural rules. The short version:
Handlers throw, framework catches — no
try/catchin tool logicUse
ctx.logfor request-scoped logging,ctx.statefor tenant-scoped storageRegister new tools and resources via the arrays in
src/index.tsWrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields
Contributing
Issues and pull requests are welcome. Run checks and tests before submitting:
bun run devcheck
bun run testLicense
Apache-2.0 — see LICENSE for details.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceMCP server for Bluesky/AT Protocol enabling LLM clients and agents to authenticate, search, post, like, follow, and manage chat on Bluesky.121MIT
- Alicense-qualityDmaintenanceMCP server for Bluesky/AT Protocol that enables AI agents to search, post, reply, like, and follow.91MIT
- Flicense-qualityCmaintenanceMCP server providing web search, news search, and X/Twitter search capabilities via HTTP or stdio.
- Alicense-qualityBmaintenanceA local stdio MCP server that exposes xAI-compatible server-side search through a Responses API relay, providing web and X search tools with citation and cost reporting.38MIT
Related MCP Connectors
Search Hacker News, Bluesky, and Substack from a single MCP interface
Query SEC EDGAR filings, XBRL financials, and company data through MCP. STDIO & Streamable HTTP.
Mastodon MCP — public Mastodon data via mastodon.social (no auth required)
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cyanheads/bluesky-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server