Spline智能设计接口
一种使克劳德能够与Spline 3D设计工具交互的接口,允许通过自然语言命令执行导出场景、导入模型和创建动画等操作。
服务介绍
Spline MCP 服务器
一个用于与 Spline 3D 设计工具 API 进行交互的 MCP 服务器。该服务器为 Claude 提供了一个方便的接口,以利用 Spline 的功能,包括导出场景、导入模型、创建动画和管理项目。
功能
基本操作
- 将 Spline 场景导出为各种格式(GLB, GLTF, FBX, OBJ)
- 将 3D 模型导入 Spline
- 获取 Spline 场景的详细信息
- 列出可用的 Spline 场景
动画能力
- 为对象创建关键帧动画
- 触发现有动画
- 列出场景中的动画
- 创建事件触发的动画(如点击、悬停等)
安装
npm install spline-mcp-server
或者直接使用 npx:
npx spline-mcp-server
配置
创建一个包含您的 Spline API 凭证的 .env 文件:
SPLINE_API_KEY=your_api_key_here
SPLINE_API_URL=https://api.spline.design
使用方法
此 MCP 服务器可以与 Claude 一起使用来与 Spline 的功能进行交互。以下是一些使用示例:
基本操作
Export my Spline scene with ID "abc123" to GLB format
Import the 3D model from "https://example.com/model.glb" into my Spline project
Get details for my Spline scene with ID "abc123"
List my available Spline scenes
动画操作
Create an animation named "Rotate" for the cube object in my scene
Trigger the "Bounce" animation for the ball object
Create an onClick animation that makes an object move up when clicked
List all animations in my scene
动画示例
创建简单的旋转动画
Create an animation named "Spin" for object "cube-123" in scene "abc456" with keyframes for rotation
创建基于事件的动画
Create an onClick animation named "Grow" for object "button-123" in scene "abc456" that scales the object to 1.5x its size
触发动画
Trigger the "Pulse" animation for object "heart-123" in scene "abc456" with loop enabled
API 文档
有关 Spline API 的更多信息,请参阅 官方文档。
许可证
MIT