Lemmy data API

10 endpoints for Lemmy: profile, profile posts, post, post comments, search, trending, community, community posts, community comments, communities. 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/lemmy/profileA Lemmy user by name@instance: display name, bio, join date, post and comment counts, and their scores.115 min
profile/postsGET /v1/lemmy/profile/postsA Lemmy user's newest posts, with the community, score, comment count and any linked page.110 min
postGET /v1/lemmy/postOne Lemmy post by URL, with its engagement counts.110 min
post/commentsGET /v1/lemmy/post/commentsComments on one Lemmy post, replies included.15 min
searchGET /v1/lemmy/searchPosts, comments, communities and users on lemmy.ml matching a keyword.12 min
trendingGET /v1/lemmy/trendingTop posts of the day on lemmy.ml.130 min
communityGET /v1/lemmy/communityOne Lemmy community: description, icon, subscriber count and the day, week and month active user counts.115 min
community/postsGET /v1/lemmy/community/postsPosts one Lemmy community ranked for the chosen window, with score and vote split.530 min
community/commentsGET /v1/lemmy/community/commentsComments posted in one Lemmy community, newest or highest scoring first.530 min
communitiesGET /v1/lemmy/communitiesTop Lemmy communities across the federation, ranked by all-time activity.530 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"
      }
    }
  }
}
Lemmy data API for AI agents | KrillData