search
Pack: lemmy · Endpoint: https://gateway.pipeworx.io/lemmy/mcp
Full-text search across a Lemmy instance (default lemmy.world) for posts, comments, communities, or users matching query q. Filter by type (Posts/Comments/Communities/Users), listing (All/Local), and sort order.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
q | string | yes | |
type_ | string | no | All | Comments | Posts | Communities | Users | Url |
listing_type | string | no | All | Local | Subscribed |
sort | string | no | |
limit | number | no | |
page | number | no | |
instance | string | no |
Example call
Arguments
{
"q": "rust programming"
}
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":"search","arguments":{"q":"rust programming"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('search', {
"q": "rust programming"
});
More examples
{
"q": "python",
"type_": "Posts",
"sort": "TopMonth",
"limit": 15,
"instance": "lemmy.world"
}
Response shape
| Field | Type | Description |
|---|---|---|
type_ | string | Search type (All, Comments, Posts, Communities, Users, Url) |
comments | array | Search results: comments |
posts | array | Search results: posts |
communities | array | Search results: communities |
users | array | Search results: users |
Full JSON Schema
{
"type": "object",
"description": "Response from Lemmy API /search endpoint",
"properties": {
"type_": {
"type": "string",
"description": "Search type (All, Comments, Posts, Communities, Users, Url)"
},
"comments": {
"type": "array",
"description": "Search results: comments",
"items": {
"type": "object"
}
},
"posts": {
"type": "array",
"description": "Search results: posts",
"items": {
"type": "object"
}
},
"communities": {
"type": "array",
"description": "Search results: communities",
"items": {
"type": "object"
}
},
"users": {
"type": "array",
"description": "Search results: users",
"items": {
"type": "object"
}
}
}
}
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.