This MCP server for Spline provides a convenient interface for Claude to interact with Spline's 3D design tool features, including exporting scenes, importing models, creating animations, and managing projects.
You can install the server using npm:
npm install spline-mcp-server
Alternatively, use it directly with npx without installation:
npx spline-mcp-server
Before using the server, create a .env
file with your Spline API credentials:
SPLINE_API_KEY=your_api_key_here
SPLINE_API_URL=https://api.spline.design
The server supports various operations for managing Spline scenes and models.
You can export Spline scenes to different formats including GLB, GLTF, FBX, and OBJ. Example command:
Export my Spline scene with ID "abc123" to GLB format
Import 3D models from external sources into your Spline projects:
Import the 3D model from "https://example.com/model.glb" into my Spline project
Get details about specific scenes:
Get details for my Spline scene with ID "abc123"
List all available scenes in your account:
List my available Spline scenes
The server provides robust support for creating and managing animations in Spline.
Create keyframe-based animations for objects:
Create an animation named "Spin" for object "cube-123" in scene "abc456" with keyframes for rotation
Set up animations triggered by user interactions:
Create an onClick animation named "Grow" for object "button-123" in scene "abc456" that scales the object to 1.5x its size
Activate existing animations with various options:
Trigger the "Pulse" animation for object "heart-123" in scene "abc456" with loop enabled
View all animations available in a scene:
List all animations in my scene
To create a simple rotation animation:
Create an animation named "Rotate" for the cube object in my scene
To create animations triggered by user interactions:
Create an onHover animation that makes an object change color when the mouse hovers over it
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.