https://github.com/user-attachments/assets/fb293e54-0795-434f-a811-7f850d36619f
⚠️ 开发通知: 本项目使用Cursor AI开发,未经人工代码审查。仅供教育和实验用途。请谨慎在生产环境中使用,并在部署前进行彻底测试。
一个模型上下文协议(MCP)服务器,使AI助手能够通过AppleScript自动化控制Keynote演示文稿。
克隆仓库
git clone https://github.com/easychen/keynote-mcp.git
cd keynote-mcp
安装依赖项
pip install -r requirements.txt
配置环境(可选,用于Unsplash功能)
cp env.example .env
# 编辑.env文件并添加您的Unsplash API密钥
设置macOS权限
在您的MCP客户端中添加此配置:
{
"KeynoteServer": {
"command": "python",
"args": ["start_server.py"],
"env": {
"UNSPLASH_KEY": "your_unsplash_api_key_here"
},
"cwd": "/path/to/keynote-mcp",
"timeout": 5000
}
}
在您的claude_desktop_config.json中添加:
{
"mcpServers": {
"keynote": {
"command": "python",
"args": ["/path/to/keynote-mcp/start_server.py"],
"env": {
"UNSPLASH_KEY": "your_unsplash_api_key_here"
}
}
}
}
对于其他兼容MCP的客户端,请使用以下连接详情:
python["start_server.py"]/path/to/keynote-mcp{"UNSPLASH_KEY": "your_api_key"} (可选)该服务器提供了全面的Keynote自动化工具:
一旦连接到您的MCP客户端,您可以使用自然语言来控制Keynote:
要使用Unsplash图片功能:
.env文件中:
UNSPLASH_KEY=your_unsplash_access_key_here
我们欢迎贡献!请参阅 CONTRIBUTING.md 了解如何开始。
本项目采用MIT许可证 - 详情见 LICENSE 文件。
如果这个项目对您有帮助,请给它一个 ⭐️!
赋予AI助手轻松创建和管理Keynote演示文稿的能力。