ChaNg1o1/tikz-mcp-server
3.1
If you are the rightful owner of tikz-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
TikZ MCP Server is a tool for rendering TikZ code into images, specifically designed to work with Cherry Studio.
TikZ MCP Server
TikZ图表渲染MCP服务器,将TikZ代码转换为图片。
功能特性
- 渲染TikZ图表为PNG图片
- 支持数学公式、流程图、技术图表
- 兼容Cherry Studio客户端
安装要求
必需依赖
- Python 3.10+
- TeX Live (包含xelatex)
- ImageMagick (包含convert命令)
- MCP库: 在虚拟环境中安装
macOS安装
# 安装TeX Live
brew install --cask mactex
# 安装ImageMagick
brew install imagemagick
# 创建虚拟环境并安装MCP库
python3 -m venv venv
source venv/bin/activate
pip install mcp
Cherry Studio配置
- 打开Cherry Studio设置
- 找到MCP Servers部分
- 添加新服务器,使用以下配置:
{
"mcpServers": {
"tikz-renderer": {
"name": "TikZ Renderer",
"type": "STDIO",
"command": "/path/to/tikz-mcp-server/venv/bin/python",
"args": ["/path/to/tikz-mcp-server/tikz_mcp_server.py"],
"env": {},
"description": "TikZ diagram renderer"
}
}
}
许可证
MIT License