Lemmy integration
Federated social link aggregation and discussion platform API. Lemmy is a self-hosted, decentralized alternative to Reddit that supports ActivityPub federation. Create and manage communities, posts, comments, votes, and moderation across federated instances.
Say what should happen.
The workflow builds itself.
Common Lemmy use cases
- content discovery
- saving for later
- comment moderation
- content moderation
- creating reading list
- cleanup
- removing bookmarks
- sharing links
- enforcing rules
- correcting typos
What you can do with Lemmy
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Post, 8 operations
create_postCreate postPOSTCreates a new post in a community. Supports text, link, and image posts with Markdown formatting.delete_postDelete postPOSTSoft deletes a Lemmy post (reversible). The post is hidden from listings but can be restored.edit_postEdit postPUTEdits an existing Lemmy post's title, URL, body, or NSFW status. Only available to the post creator or moderators.get_postGet postGETRetrieves a specific post with full details. Use with get_comments for the comment thread.list_postsList postsGETLists posts with filtering by type, community, and sorting options. Returns post details with vote counts.lock_postLock postPOSTLocks or unlocks a Lemmy post to prevent new comments while keeping the post visible.remove_postRemove postPOSTRemoves or restores a post as a moderator action. Removal reason is logged in the public modlog.save_postSave postPUTSaves or unsaves a post as a bookmark for later viewing.
Comment, 6 operations
create_commentCreate commentPOSTCreates a comment on a post or as a reply to another comment. Supports Markdown formatting.delete_commentDelete commentPOSTSoft deletes a comment (reversible). Only the comment creator can delete their own comments.edit_commentEdit commentPUTEdits an existing comment's content. Only the comment creator can edit.get_commentGet commentGETFetches a single comment by its ID with full details.get_commentsGet commentsGETRetrieves comments with threading support. Filter by post, community, or parent comment for reply chains.save_commentSave commentPUTSaves or unsaves a comment as a bookmark for later viewing.
Community, 4 operations
block_communityBlock communityPOSTBlocks or unblocks a community. Blocked communities are hidden from all feeds.create_communityCreate communityPOSTCreates a new community on the Lemmy instance with name, title, and settings.get_communityGet communityGETRetrieves detailed information about a specific community. Returns full community data, moderators, and statistics.list_communitiesList communitiesGETLists communities with filtering by type and sorting options. Returns community details with subscriber counts.
Report, 2 operations
report_commentReport commentPOSTReports a Lemmy comment to moderators for rule violations with a reason explaining the issue.report_postReport postPOSTReports a Lemmy post to moderators for rule violations with a reason explaining the issue.
Vote, 2 operations
vote_commentVote commentPOSTVotes on a Lemmy comment with upvote (+1), downvote (-1), or removes existing vote (0).vote_postVote postPOSTVotes on a Lemmy post with upvote (+1), downvote (-1), or removes existing vote (0).
Auth, 1 operation
loginLoginPOSTAuthenticates a user and returns a JWT token. The token is used for authorized API requests.
Ban, 1 operation
ban_from_communityBan from communityPOSTBans or unbans a user from a Lemmy community. Moderator action with optional reason and duration.
Federation, 1 operation
get_federated_instancesGet federated instancesGETFetches the list of federated instances connected to this Lemmy instance.
Metadata, 1 operation
get_site_metadataGet site metadataGETFetches metadata for a URL including title, description, and embed information.
Modlog, 1 operation
get_modlogGet modlogGETRetrieves the public Lemmy moderation log showing moderator actions for transparency.
Private message, 1 operation
create_private_messageCreate private messagePOSTSends a private message to another user on the Lemmy instance.
Search result, 1 operation
searchSearchGETSearches across posts, comments, communities, and users. Supports filtering by type, community, and creator.
Site, 1 operation
get_siteGet siteGETRetrieves site information including configuration, admins, version, and user data if authenticated.
Subscription, 1 operation
follow_communityFollow communityPOSTSubscribes to or unsubscribes from a community. Subscribed communities appear in your feed.
User, 1 operation
get_userGet userGETRetrieves a user's profile with their account statistics and moderation info.
Lemmy API rate limits
- 180 requests per minute
- Bursts of up to 180 requests
Rate limits are instance-configurable. Default limits: 6 actions per 600 seconds for posting, 600 requests per 600 seconds for messages. Check instance documentation for specific limits.
These are the limits Lemmy documents, not ones LiveContext measured. They can change and often depend on your plan, so check the Lemmy documentation for current values.
Use Lemmy from Claude Code, Cursor or Codex
Connect Lemmy in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Lemmy operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect Lemmy
- Create your workspace
Sign up free. Nothing to install.
- Connect Lemmy once
Add your Lemmy connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
- Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
Lemmy integration FAQ
What can you do with the Lemmy integration?
LiveContext exposes 32 operations on Lemmy, covering post, comment, community and report. Common uses include content discovery, saving for later and comment moderation.
What are the Lemmy API rate limits?
Lemmy documents 180 requests per minute and bursts of up to 180 requests. Rate limits are instance-configurable. Default limits: 6 actions per 600 seconds for posting, 600 requests per 600 seconds for messages. Check instance documentation for specific limits. Limits are set by Lemmy and can depend on your plan.
