post-comment-skill

Post a comment to a Xiaohongshu feed via MCP endpoint.

2|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/imsatoshi/bot_article --skill post-comment-skill-imsatoshi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: post-comment-skill
Source: https://github.com/imsatoshi/bot_article/tree/main/skills/xiaohongshu/skills/post-comment-skill
Command: npx skills add https://github.com/imsatoshi/bot_article --skill post-comment-skill-imsatoshi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

It helps you publish a comment to a specific Xiaohongshu feed without manually using the Xiaohongshu app, streamlining engagement workflows for creators and teams.

Core Features & Use Cases

  • Feed targeting with required identifiers: Uses a feed_id to ensure the comment is posted to the correct feed.
  • Authenticated posting: Uses xsec_token to authorize the comment action for that feed.
  • Custom content delivery: Accepts content so you can post different messages for different feeds or campaigns.
  • Use Case: Automate replying to a product announcement post by posting a predefined message to the feed where the announcement was shared.

Quick Start

Set XIAOHONGSHU_FEED_ID, XIAOHONGSHU_XSEC_TOKEN, and XIAOHONGSHU_COMMENT_CONTENT in your environment, then run the post-comment script.

Frequently Asked Questions about post-comment-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I post a comment to a Xiaohongshu feed via API?

To post a comment to a Xiaohongshu feed via API, you call an MCP endpoint and invoke the post_comment_to_feed tool using the feed_id, xsec_token, and content arguments. The Skill sends this HTTP request and parses the JSON text result to publish your message.

Can I automate Xiaohongshu comment posting for campaign replies?

Yes, you can automate Xiaohongshu comment posting for campaign replies by setting the feed_id, xsec_token, and content variables in your environment. This allows programmatic social interactions without manually opening the Xiaohongshu app.

What identifiers are required to use the Xiaohongshu comment posting API?

Posting a comment requires the feed_id to target the specific feed and the xsec_token to authorize the action. You must also provide the content string to specify the message you want to publish.

Does this Xiaohongshu MCP tool require a local server to run?

Yes, the Xiaohongshu MCP tool defaults to calling the local server endpoint at http://127.0.0.1:18060/mcp. You need this MCP server running to handle the tools/call request and return the JSON response.

What is the best way to programmatically interact with Xiaohongshu feeds?

The best way to programmatically interact with Xiaohongshu feeds is using a deterministic HTTP-triggered MCP tool call. This approach streamlines engagement workflows for creators by automating actions like posting predefined messages to announcement posts.

Why does my automated Xiaohongshu comment posting fail?

Automated Xiaohongshu comment posting fails if the required xsec_token or feed_id is missing or invalid. You must ensure the MCP endpoint is running and correctly receive the JSON text result after invoking the tools/call method.