comments
Pack: lemmy · Endpoint: https://gateway.pipeworx.io/lemmy/mcp
List Lemmy comments under a post or thread. Returns author, body, score, parent, posted date. Use to read discussion threads on federated Reddit-alternative communities.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
post_id | number | no | |
parent_id | number | no | |
community | string | no | |
sort | string | no | |
max_depth | number | no | |
limit | number | no | |
page | number | no | |
instance | string | no |
Example call
Arguments
{
"post_id": 12345,
"sort": "Hot",
"limit": 20
}
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":"comments","arguments":{"post_id":12345,"sort":"Hot","limit":20}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('comments', {
"post_id": 12345,
"sort": "Hot",
"limit": 20
});
More examples
{
"post_id": 12345,
"parent_id": 98765,
"max_depth": 3
}
Response shape
| Field | Type | Description |
|---|---|---|
comments | array | List of comments |
Full JSON Schema
{
"type": "object",
"description": "Response from Lemmy API /comment/list endpoint",
"properties": {
"comments": {
"type": "array",
"description": "List of comments",
"items": {
"type": "object",
"properties": {
"comment": {
"type": "object",
"description": "Comment object with id, content, post_id, parent_id"
},
"creator": {
"type": "object",
"description": "Comment creator user object"
},
"community": {
"type": "object",
"description": "Community object"
},
"counts": {
"type": "object",
"description": "Comment statistics (upvotes, downvotes)"
}
}
}
}
}
}
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.