Mastodon
liveSocialMediaNewsSearch accounts and statuses, browse trending posts, and read the public timeline on mastodon.social
Tools
searchrequired: querySearch Mastodon for accounts, statuses, or hashtags. Returns matching profiles, posts, and tags with follower counts and engagement metrics.
queryreqstringSearch query stringtypeoptstringType of results: accounts, statuses, or hashtags (default: statuses)limitoptnumberNumber of results to return (default: 10, max: 40)Try it
get_trendingGet currently trending posts on Mastodon. Returns popular statuses with engagement counts, authors, and trending tags.
limitoptnumberNumber of trending statuses to return (default: 10, max: 40)Try it
get_accountrequired: idGet a Mastodon account profile by ID (e.g., '109382839472938472'). Returns bio, follower/following counts, post history, and verification status.
idreqstringNumeric Mastodon account ID (e.g. "109302436954721982")Try it
get_timelineGet recent posts from the public Mastodon timeline. Returns statuses with authors, timestamps, engagement counts, and content.
limitoptnumberNumber of statuses to return (default: 20, max: 40)Try it
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
curl -X POST https://gateway.pipeworx.io/mastodon/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'curl -X POST https://gateway.pipeworx.io/mastodon/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"search","arguments":{"query": "hello"}}}'Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("search", {"query":"example"});// Or ask in plain English:
const answer = await px.ask("search accounts and statuses, browse trending posts, and read the public timeline on mastodon");Related packs
Other Pipeworx packs in the same categories (Social, Media, News):