这是一个 MCP(模型上下文协议)服务器集合,包括几个实用工具服务器。
thesis_reference_manager.pysearch_papers_arxiv:在 arXiv 上搜索论文get_paper_details:获取论文的详细信息save_search_results:将搜索结果保存到本地analyze_citations:分析 LaTeX 引用clean_unused_references:清理未使用的引用convert_citations_to_superscript:转换引用格式docx_image_tagger.pylocal_image_analyzer.pyhelloworld.py# 创建 conda 环境
conda create -n docx-mcp python=3.9
conda activate docx-mcp
# 安装依赖
pip install mcp requests
在 ~/.cursor/mcp.json 中添加服务器配置到中间:
{
"mcpServers": {
"thesis-reference-manager": {
"command": "python",
"args": ["path/to/thesis_reference_manager.py"],
"description": "论文参考文献管理工具"
}
}
}
# 1. 搜索论文
results = await search_papers_arxiv("机器学习", max_results=5)
# 2. 保存到本地
await save_search_results(results, "D:/Users/username/Desktop/references")
# 分析引用
await analyze_citations("thesis_draft.tex")
# 清理未使用的参考文献
await clean_unused_references("thesis_draft.tex")
# 激活环境
conda activate docx-mcp
# 运行服务器
python thesis_reference_manager.py
# 测试初始化
echo '{"jsonrpc": "2.0", "id": 1, "method": "initialize", "params": {"protocolVersion": "2024-11-05", "capabilities": {}, "clientInfo": {"name": "test", "version": "1.0.0"}}}' | python thesis_reference_manager.py
mcp_servers/
├── thesis_reference_manager.py # 论文管理服务器
├── docx_image_tagger.py # DOCX 图像标签服务器
├── local_image_analyzer.py # 图像分析服务器
├── helloworld.py # 示例服务器
├── readme/ # 文档目录
├── test/ # 测试目录
└── README.md # 项目说明
欢迎提交 Issues 和 Pull Requests!
MIT 许可证
感谢 MCP 协议和 Cursor 团队的支持!