communities

Pack: lemmy · Endpoint: https://gateway.pipeworx.io/lemmy/mcp

List communities on a Lemmy instance (default lemmy.world), sortable by Active/Hot/New/TopMonth/etc. and filterable by type (All/Local/Subscribed). Returns community name, description, and subscriber count.

Parameters

NameTypeRequiredDescription
type_stringno
sortstringno
limitnumberno
pagenumberno
instancestringno

Example call

Arguments

{
  "sort": "Active",
  "limit": 25
}

curl

curl -X POST https://gateway.pipeworx.io/lemmy/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"communities","arguments":{"sort":"Active","limit":25}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('communities', {
  "sort": "Active",
  "limit": 25
});

More examples

{
  "type_": "Local",
  "page": 2,
  "instance": "lemmy.world"
}

Response shape

FieldTypeDescription
communitiesarrayList of communities
Full JSON Schema
{
  "type": "object",
  "description": "Response from Lemmy API /community/list endpoint",
  "properties": {
    "communities": {
      "type": "array",
      "description": "List of communities",
      "items": {
        "type": "object",
        "properties": {
          "community": {
            "type": "object",
            "description": "Community object with id, name, title, description"
          },
          "counts": {
            "type": "object",
            "description": "Community statistics (subscribers, posts, comments)"
          }
        }
      }
    }
  }
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "lemmy": {
      "url": "https://gateway.pipeworx.io/lemmy/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026