MCP DOCX Thesis Server
一个基于 MCP (Model Context Protocol) 的论文生成服务器,支持将 Markdown 格式的论文内容转换为符合高校格式要求的 DOCX 文档。
功能特性
- 支持多所高校论文模板(中山大学、华南师范大学等)
- 自动处理论文结构(封面、摘要、目录、正文、参考文献等)
- 支持 Markdown 格式输入
- 自动生成目录和页码
- 符合各高校格式规范的字体、字号、行距设置
支持的大学模板
| 大学 | 模板代码 | 状态 |
|---|---|---|
| 中山大学 | sysu |
✅ 已支持 |
| 华南师范大学 | scnu |
✅ 已支持 |
| 通用模板 | generic |
✅ 已支持 |
安装
pip install mcp-docx-thesis-server
使用
在 Cherry Studio 中配置
- 打开 Cherry Studio 设置
- 进入 MCP 配置页面
- 添加新的 MCP Server:
{
"mcpServers": {
"docx-thesis": {
"command": "python",
"args": ["-m", "mcp_docx_thesis_server.server"]
}
}
}
可用工具
1. generate_thesis
生成标准格式的论文 DOCX 文件。
参数:
markdown_content(string): 论文的 Markdown 内容university(string): 大学模板代码(如sysu,scnu,generic)output_path(string): 输出文件路径metadata(object): 论文元数据title(string): 论文标题author(string): 作者姓名student_id(string): 学号major(string): 专业advisor(string): 指导教师date(string): 日期
示例:
请帮我生成一篇中山大学的毕业论文,保存到 ~/thesis.docx
论文内容:
# 人工智能在教育领域的应用研究
## 摘要
本文研究了人工智能技术在高等教育中的应用...
## 第一章 绪论
### 1.1 研究背景
随着人工智能技术的快速发展...
## 参考文献
[1] 张三. 人工智能导论[M]. 北京: 清华大学出版社, 2024.
2. list_universities
列出所有支持的大学模板。
3. get_university_format
获取指定大学的格式要求详情。
参数:
university(string): 大学模板代码
论文 Markdown 格式规范
# 论文标题
## 摘要
中文摘要内容...
## Abstract
English abstract content...
## 关键词
关键词1, 关键词2, 关键词3
## Keywords
Keyword1, Keyword2, Keyword3
## 第一章 绪论
### 1.1 研究背景
正文内容...
### 1.2 研究意义
正文内容...
## 第二章 相关理论与技术
...
## 参考文献
[1] 作者. 文献标题[类型]. 出版信息, 年份.
开发
# 克隆仓库
git clone https://github.com/yourusername/mcp-docx-thesis-server.git
cd mcp-docx-thesis-server
# 创建虚拟环境
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
# 安装依赖
pip install -e ".[dev]"
# 运行测试
pytest
# 代码格式化
black src/
ruff check src/
# 类型检查
mypy src/
许可证
MIT License
Metadata
Release files for mcp-docx-thesis-server 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mcp_docx_thesis_server-1.1.0.tar.gz | 102.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_docx_thesis_server-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 119.2 kB
Release files / mcp_docx_thesis_server-1.1.0.tar.gz
| Download URL | mcp_docx_thesis_server-1.1.0.tar.gz |
|---|---|
| Size | 102.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4144cc1e95b94ddecf1579850b80e1a800abb885d45db373f9afae1ceb4ea497
|
|
BLAKE2b-256 checksum How to use checksums |
9e4ea8811b2caff38b40835b590b42353fa8c462c2f53048170072c8d06de29f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / mcp_docx_thesis_server-1.1.0-py3-none-any.whl
| Download URL | mcp_docx_thesis_server-1.1.0-py3-none-any.whl |
|---|---|
| Size | 16.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d5a2325162b5d1a794c817daef5d4155704023f3e2e84c6a79abf8dafe8aa33e
|
|
BLAKE2b-256 checksum How to use checksums |
ea1741bc7dbaf61d89cb5cb68798f6d2041aaf2ec0f3d672140cd33a08a97e98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for mcp-docx-thesis-server 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.