Xiaohongshu (RedBook) MCP Server
Generates Xiaohongshu (Little Red Book) content including intelligent outline generation, image creation, outline editing, and project management for multi-page posts.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Xiaohongshu (RedBook) MCP Server帮我生成一个关于周末露营的小红书图文,需要6页"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
小红书 MCP Server
⚠️ 项目已过时 / Deprecated
本项目的功能已完全可以通过 Claude Code 的 skill 来实现,无需单独安装和配置 MCP 服务器。
推荐方式:直接在 Claude Code 中使用相关 skill(如内容生成、图片生成等功能),更简单、更强大、更易维护。
本仓库仅作为历史参考保留。
基于 MCP 的小红书图文内容生成服务。
功能
智能大纲生成
图片生成
大纲编辑
项目管理
Related MCP server: Xiaohongshu MCP Python
快速开始
编辑 Claude Desktop 配置文件:
macOS/Linux:
~/.config/claude/config.jsonWindows:
%APPDATA%\Claude\config.json
添加配置:
{
"mcpServers": {
"xiaohongshu": {
"command": "npx",
"args": ["-y", "@xeron688/xiaohongshu-mcp"],
"env": {
"IMAGE_API_URL": "your_api_url",
"IMAGE_API_KEY": "your_api_key",
"IMAGE_MODEL": "your_model_name",
"ENDPOINTS": "/v1/images/generations",
"DATA_DIR": "./data"
}
}
}
}重要说明:
使用
npx -y参数自动确认安装,避免 MCP 服务器启动时卡住替换
your_api_url、your_api_key、your_model_name为你的实际配置
重启 Claude Desktop。
使用
在 Claude 中:
帮我生成一个关于"春季穿搭"的小红书图文,9页示例


工具
generate_outline- 生成大纲update_outline- 更新大纲generate_images- 生成图片get_project- 获取项目
资源
projects://list- 项目列表project://{projectId}- 项目详情project://{projectId}/images- 项目图片
开发
pnpm install # 安装依赖
pnpm build # 编译
pnpm test:run # 测试配置详情
项目来源
本项目改编自 RedInk
许可证
见 LICENSE 文件
Available Tools
5 toolsgenerate_imagesA
Generate images for a project (cover first, then others). Use the built-in prompt to generate images with Xiaohongshu style.
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | Optional specific page numbers to generate | |
| projectId | Yes | The project ID |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full behavioral disclosure burden. It does reveal the built-in prompt, cover-first ordering, and target style, but it says nothing about side effects, persistence, overwriting behavior, or the potentially long-running/costly nature of image generation. This leaves the tool only partially transparent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two short sentences with the core action front-loaded. The second sentence repeats 'generate images' but earns its place by specifying the built-in prompt and Xiaohongshu style, so the definition stays tight and scannable.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool with only two parameters, no nested objects, and no output schema, the description is largely complete: it states scope, sequence, prompt source, and style. The main missing piece is what the agent should expect as a result, but schema coverage and sibling clarity keep this from being a major gap.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% for both parameters, so the baseline is 3. The description's cover-first clause adds an ordering nuance but does not explain how the optional pages array interacts with that ordering or with the built-in prompt, so it adds little real parameter semantics beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description names the exact action (generate images) and the resource (a project), and adds distinguishing details: cover-first ordering and Xiaohongshu style. This cleanly separates it from the outline and project siblings without needing to open the schema.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It clearly implies when to choose this tool—when project images are needed—and gives explicit operational guidance: use the built-in prompt and generate the cover before other pages. It does not state exclusions or alternatives, but the sibling set makes those unnecessary.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
generate_outlineA
Create a project and save the Xiaohongshu content outline generated by Claude. Use the built-in prompt to generate outlines with proper formatting.
| Name | Required | Description | Default |
|---|---|---|---|
| theme | Yes | The content theme, e.g., 'autumn nail art' | |
| outline | Yes | The outline text generated by Claude (with <page> tags). Generate using this prompt: 你是一个小红书内容创作专家。用户会给你一个要求以及说明,你需要生成一个适合小红书的图文内容大纲。 用户的要求以及说明: {topic} 要求: 1. 第一页必须是吸引人的封面/标题页,包含标题和副标题 2. 内容控制在 6-12 页(包括封面)。如果用户明确指定了页数,则严格按照用户要求生成,不要超出或不足。 3. 每页内容简洁有力,适合配图展示 4. 使用小红书风格的语言(亲切、有趣、实用)... | |
| referenceImage | No | Optional path to a reference image |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description must carry behavioral disclosure, and it does state the core action of creating and saving. It does not explain side effects such as whether each call creates a fresh project, what the mutation requires (e.g., a Claude-generated outline with <page> tags), or what is returned. This is acceptable but not rich.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two short, front-loaded sentences with no filler; the primary action appears in the first clause. The second sentence is slightly vague ('proper formatting') but still earns its place by pointing the agent to the prompt.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a low-complexity tool whose parameters are fully documented in the schema, the description covers the basic workflow. However, with no annotations and no output schema, it would be stronger if it mentioned what happens after creation or pointed to get_project/list_all_projects for verification. The omission is a real but moderate gap.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already fully documents theme, outline, and referenceImage, including the full outline prompt. The tool description adds only a generic directive to use the built-in prompt, which is not new semantic information.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description opens with a precise action: 'Create a project and save the Xiaohongshu content outline generated by Claude.' This clearly identifies the outcome and distinguishes it from sibling tools such as update_outline and generate_images. No tautology or missing resource.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
'Create a project' establishes a clear context: use this when you need a new project with an outline, as opposed to updating an existing outline. It does not explicitly name alternatives or state when not to use the tool, so it just misses the top score.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_projectC
Get complete project details
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | The project ID |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description must carry the full behavioral burden. 'Get complete project details' implies a read operation, but it does not disclose side-effect-freeness, authorization requirements, potential errors, or what 'complete' entails. This is thin for a tool with no annotation safety signals.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence with no filler, and the core action and resource are front-loaded. It is appropriately concise for the tool's simplicity, though 'complete' is slightly vague and could be more specific.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a one-parameter retrieval tool, the description is minimally adequate. However, without annotations or an output schema, it lacks explicit behavioral and usage context, such as how projectId is used, what 'complete details' includes, and how it differs from list_all_projects.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%; the projectId parameter is documented in the schema. The description adds no additional parameter meaning, but since the schema already covers the single parameter, the baseline of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb ('Get') and a clear resource ('project'), and the word 'complete' signals it returns full details for a single project. It is reasonably distinguishable from siblings like list_all_projects, though it does not state the unique retrieval-by-ID behavior explicitly.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is given about when to use this tool versus alternatives. It does not mention that list_all_projects is for enumerating projects, nor does it explain that this tool is for fetching one project's details. The agent must infer usage from the tool name and sibling names.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_all_projectsA
List all created projects with their basic information
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
There are no annotations, so the description carries full responsibility for behavioral disclosure. It implies a read-only operation via 'List', but provides no details about authentication, pagination, sorting, data scope, or what 'basic information' includes.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single, concise sentence with no filler. The action and resource appear first, making the purpose immediately scannable.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a parameterless list operation this is minimally adequate, but the phrase 'basic information' is vague and there is no output schema describing the returned fields. An agent cannot know exactly what data it will receive.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool has zero parameters, so the empty schema is complete. The description does not need to add parameter-level meaning, and the baseline of 4 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states a specific action (list) on a specific resource (all created projects) and mentions 'basic information' as the scope. The plural 'all projects' differentiates this from the singular get_project sibling.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is given about when to use this tool versus get_project or the other siblings. There are no explicit conditions, exclusions, or alternative suggestions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
update_outlineB
Update an existing project outline
| Name | Required | Description | Default |
|---|---|---|---|
| outline | Yes | The updated outline pages | |
| projectId | Yes | The project ID |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It only says 'update' and 'existing', without explaining whether the entire outline is replaced, whether partial updates are supported, what happens if the project does not exist, or what the response looks like. For a mutation tool, this is a significant gap.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is one clean sentence with no filler, and the action and target are front-loaded. It is appropriately concise for the simplicity of the tool.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Even with full schema coverage, this is a mutation tool with no annotations and no output schema. An agent would not know whether the outline is overwritten wholesale, whether the operation is reversible, or what a successful update returns. Additional behavioral context is missing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents projectId and outline. The description adds no further parameter semantics, such as the required structure of outline pages or whether the update is a full replacement.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific action ('Update') on a specific resource ('an existing project outline'), and 'existing' clearly distinguishes it from generate_outline, which creates a new outline. It also differentiates it from the get/list and image-generation siblings.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies this tool should be used when an outline already exists and needs modification, but it does not explicitly say when to use it versus generate_outline, nor does it mention alternatives or exclusions. Usage guidance is left mostly to inference.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
5 tool updates
v1.0.4- First observed
generate_images - First observed
generate_outline - First observed
get_project - First observed
list_all_projects - First observed
update_outline
TDQS
Each tool targets a distinct action and resource: outlining, image generation, single-project retrieval, and project listing. There is no functional overlap or ambiguity between them.
All tool names follow a consistent snake_case verb_noun pattern, such as generate_outline, update_outline, and list_all_projects. The naming is predictable and clear.
Five tools is a well-scoped set for a Xiaohongshu content creation workflow. Each tool serves a necessary role without redundancy or bloat.
The core workflow of creating and updating outlines, generating images, and viewing projects is covered. A delete project or image regeneration operation is missing, but these are minor gaps that do not block the main workflow.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
搜索笔记、浏览首页推荐、查看笔记内容与评论,并发表你的评论。直接在工作流中与小红书内容互动,高效跟进话题。
XHS note/product search/detail, suggestions, comments/replies; PGY 20pts success, failures uncharged
Schedule, generate and publish social posts to X, LinkedIn, Instagram, Threads and YouTube
AI-native social media publishing to LinkedIn, Instagram, Threads, TikTok, and X.
Related MCP Servers
- FlicenseBqualityDmaintenanceEnables automated interaction with Xiaohongshu (Little Red Book) social media platform through browser automation. Supports login management, status checking, and publishing text content with images to Xiaohongshu accounts.33-
- FlicenseNot gradedqualityFmaintenanceEnables automated content publishing and management on Xiaohongshu (Little Red Book) platform, supporting image/video posts, content search, user profiles, and interactions through the Model Context Protocol.139-
- AlicenseNot gradedqualityDmaintenanceEnables content creators to manage, analyze, and publish Xiaohongshu (Little Red Book) content through browser automation, with built-in templates, data analytics, and scheduling capabilities accessible via CLI or AI assistants.481MIT
- FlicenseNot gradedqualityDmaintenanceEnables automated interaction with Xiaohongshu (Little Red Book) platform including searching posts, retrieving content and comments, and posting AI-generated comments with persistent login support.448-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Xeron2000/redBookMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server