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

NameTypeRequiredDescription
qstringyes
type_stringnoAll | Comments | Posts | Communities | Users | Url
listing_typestringnoAll | Local | Subscribed
sortstringno
limitnumberno
pagenumberno
instancestringno

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

FieldTypeDescription
type_stringSearch type (All, Comments, Posts, Communities, Users, Url)
commentsarraySearch results: comments
postsarraySearch results: posts
communitiesarraySearch results: communities
usersarraySearch 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.

Regenerated from source · build July 6, 2026