# Mastodon — Pipedream Connect

> Mastodon is a decentralized social network made up of independent servers organized around specific themes, topics, or interests.

- API slug: `mastodon` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Marketing
- Website: https://joinmastodon.org/
- This page (HTML): https://pipedream.com/apps/mastodon
- Tools: 21 actions · 4 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: mastodon`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "mastodon",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Bookmark Status:
const result = await mcp.callTool({
  name: "mastodon-bookmark-status",
  arguments: {
    statusId: "Status ID",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a Mastodon endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://api.example.com/v1/me

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkuZXhhbXBsZS5jb20vdjEvbWU?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "mastodon-bookmark-status",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    mastodon: { authProvisionId: "apn_xxxxxxx" },
    statusId: "Status ID",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (21)

### `mastodon-bookmark-status` — Bookmark Status (Write)

Privately bookmark a status. See the docs here

Full schema: https://pipedream.com/apps/mastodon/actions/bookmark-status.md

### `mastodon-boost-status` — Boost Status (Write)

Reshare a status on your own profile. See the docs here

Full schema: https://pipedream.com/apps/mastodon/actions/boost-status.md

### `mastodon-delete-status` — Delete Status (Write)

Delete one of your own statuses. See the docs here

Full schema: https://pipedream.com/apps/mastodon/actions/delete-status.md

### `mastodon-edit-status` — Edit Status (Write)

Edit a given status to change its text or sensitivity. See the docs here

Full schema: https://pipedream.com/apps/mastodon/actions/edit-status.md

### `mastodon-favorite-status` — Favorite Status (Write)

Add a status to your favourites list. See the docs here

Full schema: https://pipedream.com/apps/mastodon/actions/favorite-status.md

### `mastodon-get-accounts-following` — Get Accounts Following (Read-only)

Get the accounts that the given account is following. See the documentation

Full schema: https://pipedream.com/apps/mastodon/actions/get-accounts-following.md

### `mastodon-mute-conversation` — Mute Conversation (Write)

Do not receive notifications for the thread that this status is part of. Must be a thread in which you are a participant. See the docs here

Full schema: https://pipedream.com/apps/mastodon/actions/mute-conversation.md

### `mastodon-perform-search` — Perform Search (Read-only)

Search for content in accounts, statuses or hashtags. See the docs here

Full schema: https://pipedream.com/apps/mastodon/actions/perform-search.md

### `mastodon-pin-status` — Pin Status to Profile (Write)

Feature one of your own public statuses at the top of your profile. See the docs here

Full schema: https://pipedream.com/apps/mastodon/actions/pin-status.md

### `mastodon-post-multiple-statuses` — Post Multiple Statuses (Write)

Publish multiple statuses with the given parameters, the subsequent statuses will be posted as a reply of of the first status. See the documentation

Full schema: https://pipedream.com/apps/mastodon/actions/post-multiple-statuses.md

### `mastodon-post-status` — Post Status (Write)

Publish a status with the given parameters. See the documentation

Full schema: https://pipedream.com/apps/mastodon/actions/post-status.md

### `mastodon-unbookmark-status` — Undo Bookmark of a Status (Write)

Remove a status from your private bookmarks. See the docs here

Full schema: https://pipedream.com/apps/mastodon/actions/unbookmark-status.md

### `mastodon-unboost-status` — Undo Boost of a Status (Write)

Undo a reshare of a status. See the docs here

Full schema: https://pipedream.com/apps/mastodon/actions/unboost-status.md

### `mastodon-unfavorite-status` — Undo Favorite of a Status (Write)

Remove a status from your favourites list.. See the docs here

Full schema: https://pipedream.com/apps/mastodon/actions/unfavorite-status.md

### `mastodon-unmute-conversation` — Unmute a Conversation (Write)

Start receiving notifications again for the thread that this status is part of. See the docs here

Full schema: https://pipedream.com/apps/mastodon/actions/unmute-conversation.md

### `mastodon-unpin-status` — Unpin Status from Profile (Write)

Unfeature a status from the top of your profile. See the docs here

Full schema: https://pipedream.com/apps/mastodon/actions/unpin-status.md

### `mastodon-view-hashtag-timeline` — View Hashtag Timeline (Read-only)

View public statuses containing the given hashtag. See the docs here

Full schema: https://pipedream.com/apps/mastodon/actions/view-hashtag-timeline.md

### `mastodon-view-home-timeline` — View Home Timeline (Read-only)

View statuses from followed users. See the docs here

Full schema: https://pipedream.com/apps/mastodon/actions/view-home-timeline.md

### `mastodon-view-list-timeline` — View List Timeline (Read-only)

View statuses in the given list timeline. See the docs here

Full schema: https://pipedream.com/apps/mastodon/actions/view-list-timeline.md

### `mastodon-view-public-timeline` — View Public Timeline (Read-only)

View public statuses. See the docs here

Full schema: https://pipedream.com/apps/mastodon/actions/view-public-timeline.md

### `mastodon-view-single-status` — View Single Status (Read-only)

Obtain information about a status. See the docs here

Full schema: https://pipedream.com/apps/mastodon/actions/view-single-status.md

## Triggers (4)

### `mastodon-new-status` — New Status (Polling)

Emit new event when a new status is posted to your Profile. See the docs here

Full schema: https://pipedream.com/apps/mastodon/triggers/new-status.md

### `mastodon-new-bookmark` — New Status Bookmarked (Polling)

Emit new event when the specified status is bookmarked. See the docs here

Full schema: https://pipedream.com/apps/mastodon/triggers/new-bookmark.md

### `mastodon-new-status-boosted` — New Status Boosted (Polling)

Emit new event when the specified status is boosted. See the docs here

Full schema: https://pipedream.com/apps/mastodon/triggers/new-status-boosted.md

### `mastodon-new-status-favorited` — New Status Favorited (Polling)

Emit new event when the specified status is favorited. See the docs here

Full schema: https://pipedream.com/apps/mastodon/triggers/new-status-favorited.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
