mcp-csdn-publisher
Allows AI agents to write and publish blog articles to CSDN, including saving drafts, managing categories and tags.
Click on "Deploy 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., "@mcp-csdn-publisher Write a tutorial on React Hooks and publish to CSDN."
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-csdn-publisher
🤖 一个基于 MCP (Model Context Protocol) 的 CSDN 博客自动发布服务器,让 AI 助手帮你写博客并一键发布到 CSDN!
✨ 功能特性
📝 AI 写博客 - 给一个主题,AI 自动生成高质量博客文章
🚀 一键发布 - 直接发布到 CSDN,无需手动操作
📋 草稿保存 - 支持保存为草稿,稍后编辑
🏷️ 分类标签 - 自动设置文章分类和标签
🖼️ 图文并茂 - 支持 Markdown 格式,包括图片、代码块、表格等
🔐 安全认证 - 基于 Cookie 的安全认证机制
Related MCP server: Banana Image MCP
📦 安装
git clone https://github.com/Ln129402/mcp-csdn-publisher.git
cd mcp-csdn-publisher
npm install
npm run build🔧 配置
Claude Desktop 配置
编辑配置文件:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"csdn-publisher": {
"command": "node",
"args": ["/path/to/mcp-csdn-publisher/dist/index.js"]
}
}
}Claude Code 配置
在项目根目录创建 .mcp.json:
{
"mcpServers": {
"csdn-publisher": {
"command": "node",
"args": ["/path/to/mcp-csdn-publisher/dist/index.js"]
}
}
}🎯 使用方法
1. 获取 CSDN Cookie
浏览器打开 CSDN 并登录
按
F12→ Network 标签刷新页面,点击任意请求
复制 Request Headers 中的 Cookie(确保包含
UserToken)
2. 登录
设置 CSDN Cookie: 你的cookie内容3. 发布博客
帮我写一篇关于 React Hooks 的博客发布到 CSDN🛠️ MCP 工具
工具 | 说明 |
| 设置 CSDN Cookie 认证 |
| 发布/保存博客文章 |
| 获取文章分类 |
| 获取常用标签 |
📄 许可证
MIT License
Available Tools
4 toolslist-categoriesA
获取当前 CSDN 账号的文章分类列表。
Inputs: no named parameters.
list-tagsB
获取当前 CSDN 账号常用的文章标签列表。
Inputs: no named parameters.
loginA
设置 CSDN Cookie 以完成认证。从浏览器开发者工具复制 Cookie 字符串。
Inputs: cookie (required).
publish-blogA
发布博客文章到 CSDN。支持 Markdown 格式,可选择直接发布或保存为草稿。
Inputs: title (required), content (required), tags, publish, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a distinct purpose: authentication, publishing, listing categories, and listing tags. No two tools overlap in functionality.
Tool names use a consistent lowercase-with-hyphens style, and most follow a verb-noun pattern. 'login' is the only slight deviation as a single verb, but it remains predictable.
With 4 tools covering authentication, publishing, and metadata retrieval, the count is well-scoped for a focused blog publishing server.
Core publishing workflow is covered, but missing tools for editing, deleting, or listing existing posts limit the server's completeness for a full publishing lifecycle.
Maintenance
Related MCP Connectors
Blog MCP server for AI agents. One signup call returns a blog, an API key and a live URL; then your agent publishes markdown posts and gets public URLs back. Your agent does the writing; you get a dashboard for stats.
WordPress MCP server: generate SEO posts, AI images, autoblog & WooCommerce on your self-hosted site
WordPress MCP server: publish posts, AI images, SEO and full site management, self-hosted
A blog CMS that AI agents write into over MCP: Markdown drafts, versions, media, human approval.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables users to automatically generate articles using large language models and publish them directly to Zhihu (a Chinese Q\&A platform).38-
- AlicenseAqualityCmaintenanceAn MCP server that generates high-quality blog cover images using Google Gemini AI and automatically uploads them to Qiniu Cloud storage. It provides automated WebP conversion and compression to deliver optimized CDN URLs for generated images.3264 npmMIT
- AlicenseAqualityDmaintenanceAn MCP server that automatically generates technical blog posts using AI (Gemini and Claude), supporting various input types, styles, and collaborative workflow.10MIT
- FlicenseNot gradedqualityDmaintenanceAI-powered content automation MCP server that enables researching topics, generating articles, formatting WeChat HTML, creating covers, and publishing drafts to WeChat Official Accounts.-