tomato-writer-mcp
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., "@tomato-writer-mcplist my novels"
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
番茄小说作家后台的 MCP 服务:多本小说管理 · 阅读数据分析 · 章节发布/定时发布。
直接调用番茄作家后台的真实 HTTP 接口(Cookie 鉴权,无浏览器、无风控签名逆向),相比早期的 Puppeteer 方案稳定可靠。
工具
工具 | 作用 |
| 列出账号下所有小说(book_id、书名、字数、阅读数、连载状态) |
| 切换当前操作的小说(多本时使用) |
| 查看当前选中的小说 |
| 阅读数据:书级概览 + 各章读完率/追读率/字数 |
| 列出各分卷的章节(含定时待发 / 已发布状态) |
| 发布 / 定时发布一章(直接传内容,或从 Markdown 稿件按章节号提取) |
Related MCP server: mcp-server-fanqie
配置
复制 .env.example 为 .env,填入番茄作家后台鉴权:
TOMATO_COOKIE=... # 登录后任意 /api/author 请求的完整 Cookie 头
TOMATO_CSRF_TOKEN=... # 同一请求头里的 X-Secsdk-Csrf-Token(会话级固定)获取方法:浏览器登录 https://fanqienovel.com 作家后台 → F12 → Network → 任选一个 /api/author/... 请求 → 复制其 Cookie 和 X-Secsdk-Csrf-Token。Cookie 有失效期(约一两个月),失效后重新抓一次更新即可。
构建与接入
pnpm install
pnpm build在支持 MCP 的客户端(Claude Code / Claude Desktop / Cursor 等)的 MCP 配置里加入:
{
"mcpServers": {
"tomato-writer-mcp": {
"command": "node",
"args": ["/绝对路径/tomato-writer-mcp/dist/index.js"],
"env": {
"TOMATO_COOKIE": "...",
"TOMATO_CSRF_TOKEN": "..."
}
}
}
}(若已配置好 .env,env 字段可省略。)
使用示例
“列出我的小说” →
list_novels“切换到《重生:从掠夺气运之子开始》” →
switch_novel“看看这本书的阅读数据” →
get_novel_stats“把
/path/正文_第11-20章.md的第 19 章定时到 2026-06-20 15:00 发布” →publish_chapter
项目结构
src/
├── index.ts # MCP 入口,注册工具
├── tomato/
│ ├── client.ts # HTTP 客户端(Cookie + CSRF,统一 GET/POST,code≠0 抛错)
│ ├── config.ts # 鉴权加载 + 当前小说状态(data/state.json)
│ ├── content.ts # 正文转 <p> HTML / 从 Markdown 提取指定章节
│ └── service.ts # 业务封装(书单 / 数据 / 建草稿 / 发布)
└── tools/
├── novels.ts # list_novels / switch_novel / get_current_novel
├── stats.ts # get_novel_stats / list_chapters
└── publishing.ts # publish_chapter说明
定时发布:
publish_time给未来时间即预约,到点由番茄服务端自动发出,本机无需常驻;预约成功不代表一定过审,番茄正式发布时仍会做内容审核。请遵守番茄平台规则与内容合规要求。
许可证
MIT
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 Servers
- AlicenseBqualityDmaintenanceAn MCP server for managing and operating Minecraft servers through multiple backend protocols including MCSManager API, RCON, and MSMP. It provides tools for instance lifecycle management, file operations, console commands, player administration, and server configuration with built-in security controls.Last updated712MIT
- AlicenseBqualityDmaintenanceEnables searching and reading novels from FanQie Novel platform through MCP, supporting book details, chapters, comments, and multi-type content retrieval.Last updated144637MIT
- Alicense-qualityDmaintenanceMCP server for automatically publishing text, image, and video notes to Xiaohongshu (Little Red Book).Last updated1MIT
- Alicense-qualityDmaintenanceMCP server for Mybatis-Flex ORM framework providing API documentation, code examples, and changelog queries.Last updated171MIT
Related MCP Connectors
Personal MCP server for humans who create. Proof of authorship, license control.
MCP server for generating rough-draft project plans from natural-language prompts.
MCP server for Wan AI video generation
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/fuhei/tomato-writer-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server