posts
Pack: lemmy · Endpoint: https://gateway.pipeworx.io/lemmy/mcp
List Lemmy posts (federated Reddit-alternative; ActivityPub) from a community or feed. Sort by Active / Hot / New / TopDay / TopWeek / etc. Returns post title, body, author, upvotes, comment count. Use for federated open-source discussion forum content.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
community | string | no | Community name (e.g. “[email protected]”) or id. |
sort | string | no | Active | Hot | New | Old | TopDay | TopWeek | TopMonth | TopYear | TopAll | MostComments | NewComments |
type_ | string | no | All | Local | Subscribed |
limit | number | no | |
page | number | no | |
instance | string | no |
Example call
Arguments
{
"community": "[email protected]",
"sort": "Hot",
"limit": 10
}
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":"posts","arguments":{"community":"[email protected]","sort":"Hot","limit":10}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('posts', {
"community": "[email protected]",
"sort": "Hot",
"limit": 10
});
More examples
{
"type_": "Local",
"sort": "New",
"page": 1,
"instance": "lemmy.world"
}
Response shape
| Field | Type | Description |
|---|---|---|
posts | array | List of posts |
Full JSON Schema
{
"type": "object",
"description": "Response from Lemmy API /post/list endpoint",
"properties": {
"posts": {
"type": "array",
"description": "List of posts",
"items": {
"type": "object",
"properties": {
"post": {
"type": "object",
"description": "Post object with id, name, url, body, etc."
},
"creator": {
"type": "object",
"description": "Post creator user object"
},
"community": {
"type": "object",
"description": "Community object"
},
"counts": {
"type": "object",
"description": "Post statistics (upvotes, downvotes, 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.