The MCP server from Spice Labs to expand on the usability of our tools
Project description
Spice Labs MCP Server
Python server implementing Model Context Protocol (MCP) for various operations from Spice Labs. This allows LLMs to leverage the information and tooling provided with Spice Labs products.
rename to Spice Labs MCP, in line with spicelabs cli
Features
- Get public Artifact Dependency Graph (ADG) or alias
- Get entries 'upward'
- Get PURLS 'upward'
- Get high-level terminal nodes 'upward'
- Get ADG entries in bulk
- Get 'downstream' ADG nodes
Tools
-
get_entry
- Fetches the public ADG entry or alias from a given identifier
- Input:
- identifier (83 character gitoid URL)
-
get_north
- Returns the ADG entries 'up' from an identifier
- Input:
- identifier (83 character gitoid URL)
-
get_north_purls
- Return all PURLs of nodes 'up' from identifier
- Input:
- identifier (83 character gitoid URL)
-
get_north_terminals
- Return high-level terminal nodes above identifier
- Input:
- identifier (83 character gitoid URL)
-
bulk_lookup
- Fetch ADG entries from identifiers
- Input:
- identifiers (list of 83 character gitoid URLs)
-
flatten
- Return all downstream nodes from identifier
- Input:
- identifier (83 character gitoid URL)
-
flatten_source
- Return all downstream nodes via 'built:from' from identifier
- Input:
- identifier (83 character gitoid URL)
-
get package based on purl (zataar)
Getting Started
This section contains instructions on how to install, build, and run the server locally.
Option 1: Using venv and pip
- Prerequisites: Ensure you have Python (3.8 or higher) installed.
- Create a Virtual Environment: It is recommended to install the package within a virtual environment.
# Create the virtual environment python -m venv venv # Activate the environment # On macOS/Linux: source venv/bin/activate # On Windows: # venv\Scripts\activate
- Installation with Pip: Install the package from the Python Package Index (PyPI).
pip install spice-labs-mcp
Option 2: Using uv
- Install
uv: If you do not haveuvinstalled, you can install it with the following command:# On macOS and Linux curl -LsSf [https://astral.sh/uv/install.sh](https://astral.sh/uv/install.sh) | sh # On Windows (PowerShell) powershell -ExecutionPolicy ByPass -c "irm [https://astral.sh/uv/install.ps1](https://astral.sh/uv/install.ps1) | iex"
- Create a Virtual Environment:
uvcan create a virtual environment for the project.uv venv - Install Dependencies: Activate the environment and use
uvto install the required packages.# Activate the environment # On macOS/Linux: source .venv/bin/activate # On Windows: # .venv\Scripts\activate # Install the package uv pip install spice-labs-mcp
Connecting to Local LLM Clients
This MCP server can be connected to various AI assistants and development environments that support local stdio connections. Below are instructions for several leading platforms.
Anthropic Claude Desktop
For the desktop application, you configure a local server by editing a JSON configuration file.
-
Open Claude Desktop Settings:
- In the Claude Desktop app, navigate to the main application menu (e.g.,
Claudein the macOS menu bar) and selectSettings.... - Go to the Developer tab.
- In the Claude Desktop app, navigate to the main application menu (e.g.,
-
Edit the Configuration File:
- Click the Edit Config button. This will open the
claude_desktop_config.jsonfile in your default text editor. - The file is located at:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
- Click the Edit Config button. This will open the
-
Add the Server Configuration:
- Add the following JSON object to the
mcpServersdictionary. Replace"my-custom-server"with a spice_rack and update thecommandandargsto point to spice_rack.py.
{ "mcpServers": { "my-custom-server": { "command": "node", "args": ["/path/to/spice-labs-mcp.py"] } } }
- Add the following JSON object to the
-
Restart Claude Desktop:
- Completely quit and restart the application. The spice_rack and its tools will then be available in the tool selection menu within the chat interface.
Google Gemini
In environments like VS Code with the Gemini Code Assist extension, local MCP servers can be configured by editing a settings file.
-
Locate Gemini Settings: Open your Gemini settings JSON file. In many environments, this is located in your user home directory at
~/.gemini/settings.json. -
Add the Server Configuration: Add the server's details to the
mcp.serverslist in the JSON file.{ "mcp.servers": [ { "name": "spice_rack", "transport": "stdio", "command": ["node", "/path/to/spice-labs-mcp.js"] } ] }
-
Reload the Environment: Reload your IDE or application (e.g., in VS Code, open the Command Palette and run
Developer: Reload Window). The Gemini agent will now have access to the tools provided by your server. You can typically verify this by using a command like/mcpin the chat to list connected servers.
Codename Goose
-
Get to Add custon extension page: Under the Extensions tab of the Goose GUI, then click Add custom extension button at the top of the page
-
Input information for spice_rack Extension name: spice_rack Command: uv run absolute/path/spice_rack.py
-
Restart Goose: Relaunch your Goose session. The tools from your local MCP server will now be available to the agent.
Copyright and license
The contents of this repository are copyrighted by Spice Labs, Inc. and licensed under the Apache 2.0 license
Copyright 2025 Spice Labs, Inc. & Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spice_labs_mcp-0.1.0.tar.gz.
File metadata
- Download URL: spice_labs_mcp-0.1.0.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f743af7258c55e43947915cc32ab72a2c257d7fab5d6b03b04b56397490a95fa
|
|
| MD5 |
95d827646f80567459da4681a210281e
|
|
| BLAKE2b-256 |
40072f25067decd02f1baad5e304f075d2bc8739b5745eb7c8813fef598af4fe
|
File details
Details for the file spice_labs_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: spice_labs_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b6ce02b667370cb2afeac8921a91f02ae19fd2c42f87d5b8c808f4c012b3185
|
|
| MD5 |
31d4d037d02a5a448410ff7f1695ca0a
|
|
| BLAKE2b-256 |
298cd2bbb903a068a6e8dc1a3318d096d66e21429de943c50ff8a16b98292242
|