ATMD

One address. Every record on the the Atmosphere.

An MCP server and a URL for agents. Put an at:// URI, a handle or a link after atproto.md/ and get the record from its own PDS as raw JSON, exactly as stored.

The response appears here. Paste an address or pick an example.

For agents

The MCP server has seven tools: resolve, get, list_records, backlinks, discover, lexicon and labels. The skill sheet teaches the HTTP routes to any agent that can run curl.

MCP server

Install in Claude Code

claude mcp add --transport http atproto-md https://atproto.md/mcp

Skill sheet

Saved as the /atproto command

curl -s https://atproto.md/skill.md > ~/.claude/commands/atproto.md

MCP server URL

For any other MCP client

https://atproto.md/mcp

HTTP routes

Every route returns one JSON object as application/json and takes this option. /repo/car and /blob redirect to the file.

pretty
Indent the JSON. It is compact by default.
Errors
{ "error", "status" } with the same HTTP status.

Records

Read from each account’s own PDS. Values are returned exactly as stored, with direct blob URLs.

GET/{link}A web link in place of the AT URI. Returns the account, collection or record the link shows.

Path parameters

NameTypeWhat it does
linkURLA link from a Bluesky-style client, an explorer such as pdsls.dev, or any page that publishes its AT URI with at-tags.
ReturnsThe same response as the matching /at:// route.

A link that names no record or account returns a 400 that lists what is supported.

curl "https://atproto.md/https://bsky.app/profile/bsky.app/post/3n2mkgfb4tk2d"
GET/at://{actor}The account’s identity and repo in one response.

Path parameters

NameTypeWhat it does
actorhandle or DIDThe account, as a handle such as bsky.app or a did:plc or did:web.
Returns{ did, handle, pds, entryway, active, status, pdsSince, collections, didDoc }

active and status come from the PDS: status says deactivated, takendown or suspended when active is false. pdsSince is when the account moved to its PDS. collections is null when the PDS does not answer describeRepo.

curl "https://atproto.md/at://bsky.app"
GET/at://{actor}/{collection}Records in one collection, newest first.limitcursorreverseexpandlabelsauthorlabelers

Path parameters

NameTypeWhat it does
actorhandle or DIDThe account, as a handle such as bsky.app or a did:plc or did:web.
collectionNSIDThe collection, such as app.bsky.feed.post.

Query parameters

NameTypeDefaultWhat it does
limit1 to 10025Records per page.
cursorstringThe cursor from the previous page.
reverseflagOldest first.
expandflagAlso fetch the records these reference (reply parent and root, quoted post, like or repost subject), one level deep, up to 25, under expanded.
labelsflagAttach each record’s labels, under labels.
authorflagAlso attach the labels on each record’s account, under authorLabels.
labelersall, handles or DIDsWhich labelers to ask: all for every known one, or handles and DIDs separated by commas. Bluesky’s moderation labeler when left out.
Returns{ did, handle, pds, entryway, collection, cursor, records: [{ uri, cid, value, blobs }] }

cursor is null on the last page.

curl "https://atproto.md/at://bsky.app/app.bsky.feed.post?limit=5"
GET/at://{actor}/{collection}/{rkey}One record.expandlabelsauthorlabelers

Path parameters

NameTypeWhat it does
actorhandle or DIDThe account, as a handle such as bsky.app or a did:plc or did:web.
collectionNSIDThe record’s collection.
rkeystringThe record key, such as self or 3l6oveex3ii2l.

Query parameters

NameTypeWhat it does
expandflagAlso fetch the records these reference (reply parent and root, quoted post, like or repost subject), one level deep, up to 25, under expanded.
labelsflagAttach each record’s labels, under labels.
authorflagAlso attach the labels on each record’s account, under authorLabels.
labelersall, handles or DIDsWhich labelers to ask: all for every known one, or handles and DIDs separated by commas. Bluesky’s moderation labeler when left out.
Returns{ uri, cid, value, blobs, expanded }

blobs lists a getBlob URL for each image or video in value. expanded is present only with expand.

curl "https://atproto.md/at://bsky.app/app.bsky.actor.profile/self"
GET/blob/{actor}/{cid}Redirects to the blob on its PDS, or with transform options, to a resized copy from the co/infra image CDN.

Path parameters

NameTypeWhat it does
actorhandle or DIDThe account, as a handle such as bsky.app or a did:plc or did:web.
cidCIDThe blob, as listed in a record’s blobs.
paramsoptionalTransform options for the co/infra image CDN, such as p=avatar or w=400,f=webp. With them, the response redirects to the CDN.
ReturnsA redirect to the PDS, or to img.infra.coop

The CDN’s options and presets are listed at github.com/co-infra/co-infra-img.

curl "https://atproto.md/blob/bsky.app/bafkreihwihm6kpd6zuwhhlro75p5qks5qtrcu55jp3gddbfjsieiv7wuka"
GET/repo/car/{actor}Redirects to the whole repo as a CAR file, streamed by the account’s PDS.

Path parameters

NameTypeWhat it does
actorhandle or DIDThe account, as a handle such as bsky.app or a did:plc or did:web.
ReturnsA redirect to the PDS’s getRepo

The PDS’s own rate limits apply. Large repos take a while.

curl "https://atproto.md/repo/car/pds.rip"
GET/getUp to 25 records in one call, fetched in parallel.uriexpandlabelsauthorlabelers

Query parameters

NameTypeWhat it does
urirepeatableAn at:// record URI or a link to the record: a Bluesky-style client, an explorer such as pdsls.dev, or any page that publishes at-tags. Repeat it for each record, up to 25.
expandflagAlso fetch the records these reference (reply parent and root, quoted post, like or repost subject), one level deep, up to 25, under expanded.
labelsflagAttach each record’s labels, under labels.
authorflagAlso attach the labels on each record’s account, under authorLabels.
labelersall, handles or DIDsWhich labelers to ask: all for every known one, or handles and DIDs separated by commas. Bluesky’s moderation labeler when left out.
Returns{ records, errors, expanded }

Each account is looked up once per call. An address that fails goes into errors as { address, error }, and the rest still come back.

curl "https://atproto.md/get?uri=https://bsky.app/profile/bsky.app/post/3n2mkgfb4tk2d&expand"

Identity

Handles and DIDs both work. The PLC routes need a did:plc.

GET/resolve/{actor}The same response as /at://{actor}.

Path parameters

NameTypeWhat it does
actorhandle or DIDThe account, as a handle such as bsky.app or a did:plc or did:web.
Returns{ did, handle, pds, entryway, active, status, pdsSince, collections, didDoc }
curl "https://atproto.md/resolve/bsky.app"
GET/did/doc/{actor}The DID document, as plc.directory or the did:web domain serves it.

Path parameters

NameTypeWhat it does
actorhandle or DIDThe account, as a handle such as bsky.app or a did:plc or did:web.
Returns{ id, alsoKnownAs, verificationMethod, service }
curl "https://atproto.md/did/doc/bsky.app"
GET/did/trace/{actor}Every step of resolving the account, with what each one returned.

Path parameters

NameTypeWhat it does
actorhandle or DIDThe account, as a handle such as bsky.app or a did:plc or did:web.
Returns{ did, handle, handleVerified, pds, entryway, ok, steps: [{ step, request, ok, ms, status, result, error }] }

Runs the DNS and HTTPS handle lookups, the DID document fetch and a PDS check itself. A handle needs only one of the two lookups to work.

curl "https://atproto.md/did/trace/bsky.app"
GET/plc/data/{actor}The current PLC state, as plc.directory serves it.

Path parameters

NameTypeWhat it does
actorhandle or DIDThe account, as a handle such as bsky.app or a did:plc or did:web.
Returns{ did, verificationMethods, rotationKeys, alsoKnownAs, services }

rotationKeys are in priority order. did:web accounts get a 400.

curl "https://atproto.md/plc/data/bsky.app"
GET/plc/audit/{actor}Every PLC operation, dated.

Path parameters

NameTypeWhat it does
actorhandle or DIDThe account, as a handle such as bsky.app or a did:plc or did:web.
Returns{ did, operations: [{ operation, cid, nullified, createdAt }] }

Compare consecutive operations to date PDS migrations, handle changes and key rotations.

curl "https://atproto.md/plc/audit/bsky.app"
GET/plc/last/{actor}The latest PLC operation.

Path parameters

NameTypeWhat it does
actorhandle or DIDThe account, as a handle such as bsky.app or a did:plc or did:web.
Returns{ did, operation }
curl "https://atproto.md/plc/last/bsky.app"

Labels

Asked of each labeler directly. Bluesky’s moderation labeler unless labelers names others.

GET/labels/{target}The labels on a record or an account.labelersauthor

Path parameters

NameTypeWhat it does
targetat:// URI, handle, DID or linkA record, or an account by handle, DID or profile link.

Query parameters

NameTypeWhat it does
labelersall, handles or DIDsWhich labelers to ask: all for every known one, or handles and DIDs separated by commas. Bluesky’s moderation labeler when left out.
authorflagFor a record, also return the labels on its account.
Returns{ target, labels: [{ val, uri, cts, exp, labeler }], authorLabels, labelers: [{ did, handle, ok, error }] }

Negated and expired labels are left out. A labeler that fails is listed in labelers, and the rest still answer.

curl "https://atproto.md/labels/bsky.app?labelers=all"
GET/labelersThe known labelers that labelers=all asks.
Returns{ default, labelers: [{ did, handle, name }] }
curl "https://atproto.md/labelers"

Network

Answers no single PDS can give, from the Bluesky relay, DNS and Constellation.

GET/discover/{collection}Every repo with at least one record in a collection.limitcursor

Path parameters

NameTypeWhat it does
collectionNSIDThe collection, such as site.standard.document.

Query parameters

NameTypeDefaultWhat it does
limit1 to 2000100Repos per page.
cursorstringThe cursor from the previous page.
Returns{ collection, cursor, repos: [did] }
curl "https://atproto.md/discover/site.standard.document?limit=20"
GET/lexicon/{nsid}The published Lexicon schema, found through the NSID’s _lexicon DNS record.

Path parameters

NameTypeWhat it does
nsidNSIDThe lexicon, such as app.bsky.feed.post.
Returns{ nsid, authority, did, uri, cid, schema }
curl "https://atproto.md/lexicon/app.bsky.feed.post"
GET/backlinks/{target}Records anywhere on the network that link to a record, account or URL.sourcehydratelimitcursor

Path parameters

NameTypeWhat it does
targetat:// URI, DID or URLWhat the records link to.

Query parameters

NameTypeDefaultWhat it does
sourcecollection:pathOne source from the summary, such as app.bsky.feed.like:subject.uri. Leave it out for the summary.
hydrateflagWith source, return the linking records instead of their URIs.
limit1 to 10050Records per page with source. At most 25 with hydrate.
cursorstringThe cursor from the previous page.
ReturnsWithout source: { target, total, sources: [{ source, records, dids }] }. With source: { target, source, total, cursor, records }
curl "https://atproto.md/backlinks/at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3n2opitxdyc2j?source=app.bsky.feed.post:reply.parent.uri&hydrate&limit=5"

XRPC

Set your SDK’s service URL to atproto.md and read any account without resolving it first. Each call goes to the server that answers it, for Bluesky and any other app. Public calls only.

Service URL

For any SDK or XRPC client

https://atproto.md

XRPC

Standard XRPC calls, each sent to the server that answers it, for Bluesky and any other app. Calls with an Authorization header are refused.

GET/xrpc/com.atproto.repo.*Sent to the account’s PDS. repo takes a handle or a DID.repoparams

Query parameters

NameTypeWhat it does
repohandle or DIDThe account. A handle is resolved, and the PDS gets the DID.
paramsper methodThe method’s own parameters, exactly as its lexicon defines them.
ReturnsThe PDS’s response, unchanged

getRecord, listRecords and describeRepo. The X-Upstream-Host header names the PDS that answered.

curl "https://atproto.md/xrpc/com.atproto.repo.getRecord?repo=bsky.app&collection=app.bsky.actor.profile&rkey=self"
GET/xrpc/com.atproto.sync.*With did, sent to the account’s PDS. Without, to the relay.didparams

Query parameters

NameTypeWhat it does
didhandle or DIDThe account. A handle is resolved, and the PDS gets the DID.
paramsper methodThe method’s own parameters, exactly as its lexicon defines them.
ReturnsThe response unchanged, or for getBlob and getRepo a redirect to the PDS

Blobs and whole repos redirect to the PDS, which streams them.

curl "https://atproto.md/xrpc/com.atproto.sync.getLatestCommit?did=bsky.app"
GET/xrpc/com.atproto.identity.*Answered by atproto.md: resolveHandle, resolveDid and resolveIdentity.params

Query parameters

NameTypeWhat it does
paramsper methodThe method’s own parameters, exactly as its lexicon defines them.
Returns{ did }, { didDoc } or { did, handle, didDoc }

resolveIdentity returns handle.invalid when the handle does not point back at the DID.

curl "https://atproto.md/xrpc/com.atproto.identity.resolveHandle?handle=bsky.app"
GET/xrpc/app.bsky.*Sent to Bluesky’s public app view.params

Query parameters

NameTypeWhat it does
paramsper methodThe method’s own parameters, exactly as its lexicon defines them.
ReturnsThe app view’s response, unchanged
curl "https://atproto.md/xrpc/app.bsky.actor.getProfile?actor=bsky.app"
GET/xrpc/{nsid}Any other app’s methods, sent to that app’s app view.params

Query parameters

NameTypeWhat it does
paramsper methodThe method’s own parameters, exactly as its lexicon defines them.
ReturnsThe app view’s response, unchanged

The app view is found on the app’s own domain: social.grain.* goes to did:web:grain.social. An atproto-proxy header, such as did:web:grain.social#grain_appview, names the service for any method. Procedures that need no sign-in are forwarded with POST. com.atproto procedures are refused.

curl "https://atproto.md/xrpc/social.grain.actor.getProfile?actor=grain.social"
atproto.md/

Every PDS. One address.