Mastodon API for AI agents
Connect your Mastodon account once. Your agent posts, replies, likes and follows, and sends DMs through MCP or REST. No Mastodon API key and no app review.
What your agent can do on Mastodon
28 actions, including generic browser steps.
| Action | On Mastodon |
|---|---|
post | Post |
reply | Reply |
quote | Quote |
delete_post | Delete |
repost | Boost |
unrepost | Undo boost |
like | Favourite |
unlike | Unfavourite |
bookmark | Bookmark |
unbookmark | Remove bookmark |
follow | Follow |
unfollow | Unfollow |
block | Block |
unblock | Unblock |
mute | Mute |
unmute | Unmute |
send_message | Private mention |
list_conversations | Private mentions |
read_conversation | Conversation |
read_feed | Home |
read_notifications | Notifications |
read_post | Post and replies |
read_profile | Profile |
list_followers | Followers |
list_following | Following |
search | Search |
update_profile | Edit profile |
browser | Anything else, step by step |
Not on Mastodon: report read_reels
Automate Mastodon with MCP
Ask in plain words. Your agent makes the call and gets the link back.
A post with media, a content warning in `title` and the `visibility` you choose.
MCP tool call
// You: "Post the release note on Mastodon."
// The agent calls the post tool:
{
"account_id": "acc_mastodon",
"text": "Version 2.4 is out.",
"visibility": "public"
}REST
curl https://api.vicevox.com/v1/accounts/acc_mastodon/actions \
-H "Authorization: Bearer $VICEVOX_API_KEY" \
-H "Content-Type: application/json" \
-d '{"type":"post","text":"Version 2.4 is out.","visibility":"public","wait":60}'Connect a Mastodon account
Send the server origin in `instance`, such as https://mastodon.social.
Username and password
Send the username, the password and, if the account uses an authenticator app, its secret. ViceVox answers 2FA codes itself.
Cookies
Import cookies from a browser where the account is already signed in: a JSON array or a Netscape cookie file.
Sign in yourself
Open a live browser and sign in as you always do. Or send the one-time sign-in link to the person who owns the account.
Each account uses the fixed device fingerprint and the location or proxy of its identity. Accounts in the docs
Mastodon questions
- Do I need a Mastodon API key?
- No. ViceVox signs in to your Mastodon account the way a person does, so there is no developer app, API key or app review.
- Can my AI agent use Mastodon through MCP?
- Yes. Add the ViceVox MCP server to Claude, Cursor or any MCP client. Each Mastodon action is a tool, such as post, reply or send_message.
- What does it cost to use Mastodon?
- Plans start at USD 29 a month, with a 7-day trial. Every plan has every platform and every action, Mastodon included. See pricing.
Other platforms
- X API for AI agents
- Instagram API for AI agents
- Facebook API for AI agents
- LinkedIn API for AI agents
- TikTok API for AI agents
- Threads API for AI agents
- Bluesky API for AI agents
- Reddit API for AI agents
- YouTube API for AI agents
- Pinterest API for AI agents
- Telegram API for AI agents
- Hacker News API for AI agents
- Twitch API for AI agents
- GitHub API for AI agents
- DEV Community API for AI agents
- Hashnode API for AI agents
Connect your Mastodon account.
Create a workspace, add an account with a password or cookies, and make your first call.