Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"mcp-server-csdn": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
一个基于 Spring AI MCP Server 的 CSDN 文章发布服务,支持通过 AI 自动发布 Markdown 文章到 CSDN 平台。
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in other
Pi Coding Agent extension (CLI-first) — routes bash/read/grep/find/ls through lean-ctx CLI for strong token savings. Optional MCP bridge can register advanced tools.
Apify MCP Server
97% token reduction for AI coding sessions — zero deps, 21 languages, MCP server
MCP proxy that compresses prose fields (tool descriptions, etc.) using caveman rules. Same accuracy, fewer context tokens.
MCP Security Weekly
Get CVE alerts and security updates for Mcp Server Csdn and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
一个基于 Spring AI MCP Server 的 CSDN 文章发布服务,支持通过 AI 自动发布 Markdown 文章到 CSDN 平台。
mcp-server-csdn/
├── src/
│ └── main/
│ ├── java/
│ │ └── cn/bugstack/mcp/server/csdn/
│ │ ├── domain/ # 领域层
│ │ │ ├── adapter/ # 端口接口
│ │ │ ├── model/ # 领域模型
│ │ │ └── service/ # 领域服务
│ │ ├── infrastructure/ # 基础设施层
│ │ │ └── adapter/ # 适配器实现
│ │ ├── gateway/ # 网关层
│ │ │ └── dto/ # 数据传输对象
│ │ ├── types/ # 类型定义
│ │ │ ├── properties/ # 配置属性
│ │ │ └── utils/ # 工具类
│ │ └── McpServerApplication.java
│ └── resources/
│ └── application.yml
├── Dockerfile
├── build.sh
└── push.sh
在 src/main/resources/application.yml 中配置 CSDN Cookie:
csdn:
api:
categories: Java场景面试宝典 # 文章分类
cookie: your-csdn-cookie-here # CSDN 登录 Cookie
spring:
application:
name: mcp-server-csdn
ai:
mcp:
server:
name: ${spring.application.name}
version: 1.0.0
如何获取 CSDN Cookie:
Cookie 值mvn clean package
stdio 模式(默认):
java -jar target/mcp-server-csdn-app.jar
SSE 模式:
修改 application.yml,注释掉 web-application-type: none,然后运行:
java -jar target/mcp-server-csdn-app.jar
服务将在 http://localhost:8101 启动。
# 构建镜像
docker build -t mcp-server-csdn:1.0.0 .
# 运行容器
docker run -d \
-p 8101:8101 \
-v $(pwd)/data:/app/data \
mcp-server-csdn:1.0.0
通过 @Tool 注解暴露的工具方法,AI 可以调用 saveArticle 方法发布文章。
请求参数:
title: 文章标题markdowncontent: Markdown 格式的文章内容tags: 文章标签(多个标签用逗号分隔)返回信息:
项目采用 DDD(领域驱动设计)架构:
数据流转:
AI → @Tool 方法 → CSDNArticleService → ICSDNPort → CSDNPort → ICSDNService → CSDN API
当作为 MCP Server 运行时,AI 可以通过以下方式调用:
{
"method": "tools/call",
"params": {
"name": "saveArticle",
"arguments": {
"title": "Spring Boot 入门教程",
"markdowncontent": "# Spring Boot 入门\n\n这是一篇关于 Spring Boot 的教程...",
"tags": "Spring Boot,Java,后端"
}
}
}
saveArticle 工具方法CSDNArticleService 中添加新的 @Tool 注解方法ICSDNPort 接口中定义新的端口方法CSDNPort 中实现适配逻辑ICSDNService 中添加对应的 API 接口日志文件位置:data/log/mcp-server-csdn.log
本项目采用 MIT 许可证。
Daniel G