这个项目是一个基于MCP (Model Context Protocol) 的服务器工具,名为 "MCP OKPPT Server"。它的核心功能是允许大型语言模型(如Claude、GPT等)通过生成SVG图像来间接设计和创建PowerPoint演示文稿。工具负责将这些SVG图像高质量地插入到PPTX幻灯片中,并保留其矢量特性,确保图像在PowerPoint中可缩放且清晰。
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"mcp-server-okppt": {
"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.
一个基于Model Context Protocol (MCP)的服务器工具,专门用于将SVG图像插入到PowerPoint演示文稿中。它能够保留SVG的矢量特性,确保在PowerPoint中显示的图像保持高品质和可缩放性。
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.
Click any tool to inspect its schema.
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 design
MCP server for accessing Figma plugin console logs and screenshots via Cloudflare Workers or local mode
Official Miro MCP server - Supports context to code and creating diagrams, docs, and data tables.
AI image generation and editing with prompt optimization and quality presets. Powered by Nano Banana
Coinbase Design System - MCP Server
MCP Security Weekly
Get CVE alerts and security updates for Mcp Server Okppt and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
一个基于Model Context Protocol (MCP)的服务器工具,专门用于将SVG图像插入到PowerPoint演示文稿中。它能够保留SVG的矢量特性,确保在PowerPoint中显示的图像保持高品质和可缩放性。
此项目是让大型语言模型(如Claude、GPT等)能够自主设计PowerPoint演示文稿的"曲线救国"解决方案。通过让AI生成SVG图像,再借助本工具将其全屏插入PPT幻灯片,我们成功实现了AI完全控制PPT设计的能力,而无需直接操作复杂的PPT对象模型。
这种方法带来三大核心优势:
这一创新思路通过SVG作为AI与PPT之间的桥梁,既保证了设计的高度自由,又兼顾了最终成果的实用性和可维护性。
以下是一些使用MCP OKPPT Server生成的PPT效果图:
2008年金融危机分析PPT封面
小红书爆款内容分析报告PPT页面
# 使用pip安装
pip install mcp-server-okppt
# 或使用uv安装
uv pip install mcp-server-okppt
在Claude Desktop配置文件中添加服务器配置:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
添加以下配置:
{
"mcpServers": {
"okppt": {
"command": "uvx",
"args": [
"mcp-server-okppt"
]
}
}
}
在Cursor IDE中,可以通过本地配置文件来设置MCP服务器:
Windows: C:\Users\用户名\.cursor\mcp.json
macOS: ~/.cursor/mcp.json
添加以下配置:
{
"mcpServers": {
"okppt": {
"command": "uv",
"args": [
"--directory",
"D:\\本地项目路径\\mcp-server-okppt\\src\\mcp_server_okppt",
"run",
"cli.py"
]
}
}
}
这种配置方式适合本地开发和测试使用,可以直接指向本地代码目录。
# 运行测试
mcp test server.py
def insert_svg(
pptx_path: str,
svg_path: List[str],
slide_number: int = 1,
x_inches: float = 0,
y_inches: float = 0,
width_inches: float = 16,
height_inches: float = 9,
output_path: str = "",
create_if_not_exists: bool = True
) -> str
将SVG图像插入到PPTX文件的指定位置。
参数:
pptx_path: PPTX文件路径svg_path: SVG文件路径或路径列表slide_number: 要插入的幻灯片编号(从1开始)x_inches: X坐标(英寸)y_inches: Y坐标(英寸)width_inches: 宽度(英寸)height_inches: 高度(英寸)output_path: 输出文件路径create_if_not_exists: 如果PPTX不存在是否创建返回: 操作结果消息
def list_files(
directory: str = ".",
file_type: Optional[str] = None
) -> str
列出目录中的文件。
参数:
directory: 目录路径file_type: 文件类型过滤,可以是"svg"或"pptx"返回: 文件列表
def get_file_info(
file_path: str
) -> str
获取文件信息。
参数:
file_path: 文件路径返回: 文件信息
def convert_svg_to_png(
svg_path: str,
output_path: Optional[str] = None
) -> str
将SVG文件转换为PNG图像。
参数:
svg_path: SVG文件路径output_path: 输出PNG文件路径返回: 操作结果消息
def get_pptx_info(
pptx_path: str
) -> str
获取PPTX文件的基本信息。
参数:
pptx_path: PPTX文件路径返回: 包含文件信息和幻灯片数量的字符串
def save_svg_code(
svg_code: str
) -> str
将SVG代码保存为SVG文件并返回保存的绝对路径。
参数:
svg_code: SVG代码内容返回: 操作结果消息和保存的文件路径
def delete_slide(
pptx_path: str,
slide_number: int,
output_path: Optional[str] = None
) -> str
从PPTX文件中删除指定编号的幻灯片。
参数:
pptx_path: PPTX文件路径slide_number: 要删除的幻灯片编号output_path: 输出文件路径返回: 操作结果消息
def insert_blank_slide(
pptx_path: s
... [View full README on GitHub](https://github.com/NeekChaw/mcp-server-okppt#readme)