Mastodon data API
8 endpoints for Mastodon: profile, profile posts, post, post comments, hashtag, trending, trending posts, trending links. One API key, one JSON schema, as MCP tools or REST.
Endpoints
Call any of them over MCP with call_endpoint and its path, or over REST.
| Endpoint | Returns | Credits | Cache |
|---|---|---|---|
| profileGET /v1/mastodon/profile | A Mastodon account by user@instance: display name, bio, profile fields, and follower, following and post counts. | 1 | 15 min |
| profile/postsGET /v1/mastodon/profile/posts | A Mastodon account's latest posts, boosts included, newest first, with like, reply and boost counts. | 1 | 10 min |
| postGET /v1/mastodon/post | One Mastodon post by URL, with its engagement counts. | 1 | 10 min |
| post/commentsGET /v1/mastodon/post/comments | Comments on one Mastodon post, replies included. | 1 | 5 min |
| hashtagGET /v1/mastodon/hashtag | Posts under a Mastodon hashtag. | 1 | 2 min |
| trendingGET /v1/mastodon/trending | Hashtags trending on mastodon.social. | 1 | 30 min |
| trending/postsGET /v1/mastodon/trending/posts | Posts the Mastodon server ranks as trending right now, with author, boosts and media. | 1 | 30 min |
| trending/linksGET /v1/mastodon/trending/links | News links shared across Mastodon most in the last days, with publisher and share totals. | 1 | 30 min |
Connect your agent over MCP
Remote MCP server: https://data.openkrill.app/mcp with your key in the x-api-key header.
claude mcp add --transport http krilldata \
https://data.openkrill.app/mcp \
--header "x-api-key: YOUR_API_KEY"{
"mcpServers": {
"krilldata": {
"url": "https://data.openkrill.app/mcp",
"headers": {
"x-api-key": "YOUR_API_KEY"
}
}
}
}{
"mcpServers": {
"krilldata": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://data.openkrill.app/mcp",
"--header",
"x-api-key:${API_KEY}"
],
"env": {
"API_KEY": "YOUR_API_KEY"
}
}
}
}