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.

EndpointReturnsCreditsCache
profileGET /v1/mastodon/profileA Mastodon account by user@instance: display name, bio, profile fields, and follower, following and post counts.115 min
profile/postsGET /v1/mastodon/profile/postsA Mastodon account's latest posts, boosts included, newest first, with like, reply and boost counts.110 min
postGET /v1/mastodon/postOne Mastodon post by URL, with its engagement counts.110 min
post/commentsGET /v1/mastodon/post/commentsComments on one Mastodon post, replies included.15 min
hashtagGET /v1/mastodon/hashtagPosts under a Mastodon hashtag.12 min
trendingGET /v1/mastodon/trendingHashtags trending on mastodon.social.130 min
trending/postsGET /v1/mastodon/trending/postsPosts the Mastodon server ranks as trending right now, with author, boosts and media.130 min
trending/linksGET /v1/mastodon/trending/linksNews links shared across Mastodon most in the last days, with publisher and share totals.130 min

Connect your agent over MCP

Remote MCP server: https://data.openkrill.app/mcp with your key in the x-api-key header.

Claude Code · Run in a terminal
claude mcp add --transport http krilldata \
  https://data.openkrill.app/mcp \
  --header "x-api-key: YOUR_API_KEY"
Cursor · Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "krilldata": {
      "url": "https://data.openkrill.app/mcp",
      "headers": {
        "x-api-key": "YOUR_API_KEY"
      }
    }
  }
}
Claude Desktop · Add to claude_desktop_config.json
{
  "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"
      }
    }
  }
}
Mastodon data API for AI agents | KrillData