This MCP server acts as a bridge between Speckle's API and client applications, providing tools to interact with Speckle projects, models, and objects. It allows you to search projects, retrieve model versions, and query object properties from within interfaces that support the Model Context Protocol.
Clone the repository:
git clone https://github.com/bimgeek/speckle-mcp.git
cd speckle-mcp
Verify your Python version:
python --version # Should show Python 3.13.x
Install dependencies using uv:
uv pip install -r requirements.txt
The server requires the following environment variables:
SPECKLE_TOKEN
: Your Speckle personal access token (required)SPECKLE_SERVER
: The Speckle server URL (defaults to https://app.speckle.systems)To use this server with Claude, update your MCP configuration file, typically located at:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
Add or update the "speckle" entry in the mcpServers section:
{
"mcpServers": {
"speckle": {
"command": "uv",
"args": [
"--directory",
"/path/to/speckle-mcp",
"run",
"speckle_server.py"
],
"env": {
"SPECKLE_TOKEN": "YOUR_SPECKLE_API_TOKEN_HERE",
"SPECKLE_SERVER": "https://app.speckle.systems"
}
}
}
}
Be sure to replace /path/to/speckle-mcp
with the actual path to the directory containing the speckle_mcp package.
Lists all accessible Speckle projects.
Parameters:
limit
(optional): Maximum number of projects to retrieve (default: 20)Retrieves detailed information about a specific project.
Parameters:
project_id
: The ID of the Speckle project to retrievelimit
(optional): Maximum number of models to retrieve (default: 20)Searches for projects by name or description.
Parameters:
query
: The search term to look for in project names and descriptionsLists all versions for a specific model.
Parameters:
project_id
: The ID of the Speckle projectmodel_id
: The ID of the model to retrieve versions forlimit
(optional): Maximum number of versions to retrieve (default: 20)Retrieves objects from a specific version.
Parameters:
project_id
: The ID of the Speckle projectversion_id
: The ID of the version to retrieve objects frominclude_children
(optional): Whether to include children objects (default: false)Queries specific properties from objects in a version.
Parameters:
project_id
: The ID of the Speckle projectversion_id
: The ID of the version to retrieve objects fromproperty_path
: The dot-notation path to the property (e.g., "elements.0.name")If you encounter issues:
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "speckle" '{"command":"uv","args":["--directory","/path/to/speckle-mcp","run","speckle_server.py"],"env":{"SPECKLE_TOKEN":"YOUR_SPECKLE_API_TOKEN_HERE","SPECKLE_SERVER":"https://app.speckle.systems"}}'
See the official Claude Code MCP documentation for more details.
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 > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"speckle": {
"command": "uv",
"args": [
"--directory",
"/path/to/speckle-mcp",
"run",
"speckle_server.py"
],
"env": {
"SPECKLE_TOKEN": "YOUR_SPECKLE_API_TOKEN_HERE",
"SPECKLE_SERVER": "https://app.speckle.systems"
}
}
}
}
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 explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"speckle": {
"command": "uv",
"args": [
"--directory",
"/path/to/speckle-mcp",
"run",
"speckle_server.py"
],
"env": {
"SPECKLE_TOKEN": "YOUR_SPECKLE_API_TOKEN_HERE",
"SPECKLE_SERVER": "https://app.speckle.systems"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect