MCP
There are two ways to use MCP.
| Endpoint | What it can do | What you need |
|---|---|---|
The site’s /mcp |
Search, get details, get the rebuild source (read-only) | Nothing (no login) |
Local spst mcp |
The three above, plus uploading a baked model | The repository, pnpm install, and a token for uploading |
The site’s MCP (/mcp)
Section titled “The site’s MCP (/mcp)”The URL is https://spritestack.dev/mcp. It uses Streamable HTTP and keeps no state (responses are JSON).
In Claude Code, add it with:
claude mcp add --transport http spritestack https://spritestack.dev/mcpAn example for a configuration file:
{ "mcpServers": { "spritestack": { "type": "http", "url": "https://spritestack.dev/mcp" } }}A skill for making models
Section titled “A skill for making models”Claude Code 2.1.331 or later receives the spritestack skill through Skills over MCP from /mcp using the new protocol (2026-07-28 or later). It contains SKILL.md with steps to create, edit, and upload models, plus the Japanese and English specifications. No login is required.
Baking and uploading require a local spst. Without it, an AI can prepare a .parts.json file and hand it to the user. The MCP tools do not bake parts. Older clients can continue using the same three read-only tools.
| Tool | Input | Returns |
|---|---|---|
search_models |
query? (string), limit? (1 to 50), offset? (0 or more) |
The same JSON as GET /api/v1/models (items and nextOffset) |
get_model |
id |
The same JSON as GET /api/v1/models/<ID> (details) |
get_model_source |
id |
The content of the rebuild source (parts JSON). It does not write a file |
- There is no tool for uploading. Use the local
spst mcpor the command to upload. - On failure,
isErroristrueand the body is{"code":…,"message":…}. Examples ofcode:not_found(no such model, or no source),invalid_query(for example, search words too long),invalid_arguments(wrong input shape or range),internal_error(a failure on the site side). - The values come from the same functions as the HTTP API. The shape of each field is in the API reference.
Local spst mcp
Section titled “Local spst mcp”A tool for people who have the repository (npm distribution is in preparation). Run pnpm install at the root of the repository before setting it up.
{ "mcpServers": { "spst": { "command": "node", "args": ["<repo>/packages/spst/src/cli.ts", "mcp"], "env": { "SPST_SITE_URL": "https://spritestack.dev", "SPST_TOKEN": "<key issued at /account>" } } }}<repo> is the absolute local path. This configuration contains a token, so treat it as a secret. SPST_TOKEN is not needed for searching or getting.
| Tool | Input | Behavior |
|---|---|---|
search_models |
query?, limit?, offset? |
Searches models on the site |
get_model |
id |
Gets a model’s details |
get_model_source |
id, out |
Writes the rebuild source to out (a path ending in .parts.json), overwriting it if it exists |
publish_model |
path, titleJa?, titleEn?, description?, tags? (array of strings), derivedFrom? |
Uploads a local .ss. Needs SPST_TOKEN. Up to 16 MiB |
How to confirm an upload is in Remix and upload.
WebMCP
Section titled “WebMCP”On the model list (/) and the model pages (/m/<ID>), an agent inside a browser that supports WebMCP can use the same three tools as /mcp (search_models, get_model, get_model_source). They find and read public models; they do not upload or change anything.
The tools appear only in browsers with WebMCP, such as the built-in browser of the ChatGPT desktop app or Chrome with the WebMCP flag turned on. In other browsers the pages work as before. The WebMCP standard is still a draft, so the API and browser support may change.