thingiverse-mcp-v2
# Thingiverse MCP Server — 3D-Printable Models for AI Assistants
[](https://www.npmjs.com/package/thingiverse-mcp-v2)
[](https://modelcontextprotocol.io/specification/2026-07-28)
[](https://nodejs.org)
[](tsconfig.json)
[](https://github.com/JohnnyTheTank/thingiverse-mcp-v2/actions/workflows/ci.yml)
[](./LICENSE)
## ❌ Without Thingiverse MCP
When you ask an assistant for something to print, it can only guess from memory:
- ❌ It links to models that were renamed, removed or never existed
- ❌ It cannot see print settings, file formats, licenses or whether anyone printed the model successfully
- ❌ You copy links, download files and fill in upload forms by hand
## ✅ With Thingiverse MCP
The assistant searches Thingiverse live and works with real models, files and your own account.
```txt
Find a wall mount for a Bosch GSR 12V drill that prints without supports, and compare the top 3.
```
```txt
Summarize thing 763622: recommended print settings, which files to print, and what the license allows.
```
```txt
Create a draft thing "Cable clip 20 mm" under CC BY-SA, upload ~/3d-models/clip.stl and show me the result.
```
It runs in two modes:
- **Local (stdio):** for Claude Code, Claude Desktop, Cursor, VS Code and other desktop clients. It uses your
Thingiverse token and can download and upload local files.
- **Remote (Streamable HTTP):** a hosted endpoint at `/mcp`. Each user can sign in with their own Thingiverse
account through OAuth.
## 🚀 Installation
> [!NOTE]
> **You need a Thingiverse access token.** Create a "Web App" at
> [thingiverse.com/apps/create](https://www.thingiverse.com/apps/create) and copy its access token. Unpublished
> apps allow at most 10 users.
The server is published on npm as [`thingiverse-mcp-v2`](https://www.npmjs.com/package/thingiverse-mcp-v2) and
runs with `npx` (Node.js 22 or later), so there is nothing to build. Add it to your client:
<details>
<summary><b>Claude Code</b></summary>
```bash
claude mcp add thingiverse --env THINGIVERSE_TOKEN=your-token -- npx -y thingiverse-mcp-v2
```
To enable downloads and uploads of local files, add
`--env THINGIVERSE_DOWNLOAD_DIR=$HOME/Downloads/Thingiverse --env THINGIVERSE_UPLOAD_DIRS=$HOME/3d-models`.
</details>
<details>
<summary><b>Claude Desktop</b></summary>
Add this to `claude_desktop_config.json` (Settings → Developer → Edit Config):
```json
{
"mcpServers": {
"thingiverse": {
"command": "npx",
"args": ["-y", "thingiverse-mcp-v2"],
"env": {
"THINGIVERSE_TOKEN": "your-token",
"THINGIVERSE_DOWNLOAD_DIR": "/Users/you/Downloads/Thingiverse",
"THINGIVERSE_UPLOAD_DIRS": "/Users/you/3d-models"
}
}
}
}
```
As an alternative, `npm run pack:mcpb` builds a one-click `.mcpb` bundle that asks for the token on install.
</details>
<details>
<summary><b>Cursor</b></summary>
Add this to `~/.cursor/mcp.json` (global) or `.cursor/mcp.json` (per project):
```json
{
"mcpServers": {
"thingiverse": {
"command": "npx",
"args": ["-y", "thingiverse-mcp-v2"],
"env": { "THINGIVERSE_TOKEN": "your-token" }
}
}
}
```
</details>
<details>
<summary><b>VS Code</b></summary>
Add this to `.vscode/mcp.json`. VS Code prompts for the token and stores it securely:
```json
{
"inputs": [
{ "type": "promptString", "id": "thingiverse-token", "description": "Thingiverse access token", "password": true }
],
"servers": {
"thingiverse": {
"type": "stdio",
"command": "npx",
"args": ["-y", "thingiverse-mcp-v2"],
"env": { "THINGIVERSE_TOKEN": "${input:thingiverse-token}" }
}
}
}
```
</details>
<details>
<summary><b>Other stdio clients</b></summary>
Any MCP client can run the server as a local process:
- command: `npx -y thingiverse-mcp-v2`
- environment: `THINGIVERSE_TOKEN=your-token`
</details>
<details>
<summary><b>From source</b></summary>
```bash
git clone https://github.com/JohnnyTheTank/thingiverse-mcp-v2.git
cd thingiverse-mcp-v2
npm install
npm run build
```
Then use `node /path/to/thingiverse-mcp-v2/dist/index.js` instead of `npx -y thingiverse-mcp-v2` in any of the
configurations above.
</details>
<details>
<summary><b>Remote server (HTTP)</b></summary>
Start the server:
```bash
THINGIVERSE_TOKEN=your-token npx -y thingiverse-mcp-v2 --transport http
# → http://127.0.0.1:3000/mcp
```
Or with Docker, from a clone of this repository:
```bash
docker build -t thingiverse-mcp-v2 .
docker run -p 3000:3000 --env-file .env thingiverse-mcp-v2
```
Then connect a client, for example Claude Code:
```bash
claude mcp add --transport http thingiverse https://your-server.example.com/mcp
```
Pick one of three auth modes:
| Mode | Configuration | Use it for |
| --- | --- | --- |
| None | `THINGIVERSE_TOKEN` only | Localhost only; otherwise the server refuses to start. |
| API key | `MCP_API_KEY` | A shared secret for a private server. |
| OAuth | `THINGIVERSE_CLIENT_ID`, `THINGIVERSE_CLIENT_SECRET`, `AUTH_SECRET`, `PUBLIC_URL` | Every user signs in with their own Thingiverse account. |
To set up OAuth:
1. Set the Thingiverse app's callback URL to `https://<PUBLIC_URL>/oauth/thingiverse/callback`.
2. Generate `AUTH_SECRET`, for example with `openssl rand -hex 32`.
3. Connect the client without a token. It discovers the sign-in on its own.
</details>
## 💡 Important Tips
### Use thing ids
Things are addressed by numeric id: `763622` in `thingiverse.com/thing:763622`. If you already know the model,
pass the id or the URL. The assistant then skips the search and fetches the details directly.
```txt
What layer height and infill does thing 763622 recommend?
```
### Start in read-only mode
Set `THINGIVERSE_READ_ONLY=true` to register only the read tools. Likes, comments, uploads and deletions are then
not available at all. This is a good default for shared or unattended setups.
### Destructive actions ask first
Deleting things or files, publishing and posting public comments always need your confirmation:
- If your client supports elicitation, it shows a confirmation dialog.
- Otherwise the tool refuses until the model passes `confirm: true`, which it should do only after you approve.
### Add a rule
Tell your assistant when to use Thingiverse, for example in `CLAUDE.md`, Cursor rules or your client's custom
instructions:
```txt
When I ask for something to 3D-print, search Thingiverse with the thingiverse tools before suggesting anything.
Check the license and the number of makes, and link every model you mention.
```
## 🛠️ Available Tools
Lists take `page` (default 1) and `per_page` (default 20, max 100) and return `next_page`. Every tool returns
structured output that matches its `outputSchema`.
### Search & browse
- `thingiverse_search`: full-text search for things, users, collections or makes.
- `term` (required): the search query
- `type` (optional): `things` (default), `users`, `collections` or `makes`
- `sort` (optional): `relevant` (default), `popular`, `makes`, `newest` or `text`
- `category_id`, `license`, `has_makes`, `is_featured`, `is_derivative`, `min_downloads` (optional): filters
for things
- `thingiverse_browse`: lists without a search term.
- `list` (optional): `popular` (default), `featured`, `newest`, `verified`, `category` or `tag`
- `category_slug` (required for `category`), `tag` (required for `tag`)
- `thingiverse_list_categories`: all categories with their slugs.
- `include_children` (optional): also return subcategories
### Things & files
- `thingiverse_get_thing`: description, print instructions, license, stats and tags.
- `thing_id` (required)
- `include` (optional): any of `files` (default), `images` and `categories`
- `max_text_length` (optional): truncate long texts, default 4000 characters
- `thingiverse_list_thing_files`, `thingiverse_list_thing_images`: files with sizes, images with URLs.
- `thing_id` (required)
- `thingiverse_list_thing_makes`, `thingiverse_list_thing_comments`: prints other people posted, and comments.
- `thing_id` (required)
- `thingiverse_get_thing_remixes`: the remix tree.
- `thing_id` (required)
- `direction` (optional): `derivatives` (default) or `ancestors`
- `thingiverse_get_download_url`: a short-lived direct download link.
- `file_id` (required)
- `thingiverse_download_file`: saves a file into `THINGIVERSE_DOWNLOAD_DIR`, never overwriting existing files.
Only available on stdio when that variable is set.
- `file_id` (required)
- `subfolder` (optional)
### Users & collections
- `thingiverse_get_user`: profile with counts.
- `username` (optional): defaults to `me`
- `thingiverse_list_user_content`: what a user designed, liked, collected, made or downloaded.
- `username` (optional): defaults to `me`
- `kind` (optional): `things` (default), `likes`, `favorites`, `collections`, `makes` or `downloads`
- `thingiverse_get_collection`: a collection and the things in it.
- `collection_id` (required)
- `include_things` (optional): default `true`
### Write (not registered in read-only mode)
- `thingiverse_set_thing_like`: like or unlike a thing.
- `thing_id`, `liked` (required)
- `thingiverse_create_collection`: create a collection.
- `name` (required), `description` (optional)
- `thingiverse_add_to_collection`, `thingiverse_remove_from_collection`: manage a collection's things.
- `collection_id`, `thing_id` (required), `note` (optional, add only)
- `thingiverse_post_comment` ⚠️: post a public comment or reply. Asks for confirmation.
- `target_id`, `body` (required)
- `target` (optional): `thing` (default) or `make`
- `reply_to_comment_id` (optional)
### Publish (not registered in read-only mode)
- `thingiverse_create_thing`: create an unpublished draft.
- `name`, `license`, `category` (required)
- `description`, `instructions`, `is_wip`, `tags`, `remix_of` (optional)
- `thingiverse_update_thing`: change fields of your thing. `tags` replaces all tags.
- `thing_id` (required), plus any of the create fields
- `thingiverse_upload_file`: upload a model file or image to your thing.
- `thing_id` (required)
- exactly one of `path` (stdio only, inside `THINGIVERSE_UPLOAD_DIRS`), `url` (public https) or
`content_base64`
- `filename` (optional; required with `content_base64`)
- `thingiverse_publish_thing` ⚠️: make a draft public. Asks for confirmation.
- `thing_id` (required)
- `thingiverse_delete_file` ⚠️, `thingiverse_delete_thing` ⚠️: permanent deletion. Asks for confirmation.
- `thing_id` (required), `file_id` (required for files)
⚠️ marks tools that ask for confirmation. Their optional `confirm` parameter is only used by clients without
elicitation.
### Resources & prompts
- Resources:
- `thingiverse://thing/{id}`
- `thingiverse://user/{username}`
- `thingiverse://collection/{id}`
- `thingiverse://category/{slug}` (with slug completion)
- `thingiverse://categories`
- Prompts:
- `find_printable_model`: search, shortlist and compare models for a need
- `summarize_thing`: print-ready summary of one thing
## ⚙️ Configuration
All settings are environment variables. [`.env.example`](.env.example) documents every one of them.
| Variable | Default | Description |
| --- | --- | --- |
| `THINGIVERSE_TOKEN` | — | Access token, needed for every tool call (stdio, and HTTP without OAuth). Without it the server still starts and lists its tools. |
| `THINGIVERSE_READ_ONLY` | `false` | Register only the read tools. |
| `THINGIVERSE_DOWNLOAD_DIR` | — | stdio: enables `thingiverse_download_file`. |
| `THINGIVERSE_UPLOAD_DIRS` | — | stdio: comma-separated folders that local uploads may read from. |
| `MAX_UPLOAD_BYTES` | 50 MB | Upload size limit. |
| `HOST` / `PORT` | `127.0.0.1` / `3000` | HTTP bind address. |
| `PUBLIC_URL` | `http://HOST:PORT` | Public base URL. Must be https for OAuth outside localhost. |
| `MCP_API_KEY` | — | Shared bearer secret for `/mcp`. |
| `THINGIVERSE_CLIENT_ID` / `THINGIVERSE_CLIENT_SECRET` / `AUTH_SECRET` | — | Enable OAuth in HTTP mode. |
| `LOG_LEVEL` | `info` | Log level. Logs go to stderr. |
## 📐 MCP 2026-07-28 Compliance
- **Stateless serving:** no sessions and no GET stream. `createMcpHandler` builds a fresh server per HTTP request,
and `serveStdio` pins one per stdio connection.
- **Protocol negotiation:** `server/discover` and the per-request `_meta` envelope are handled by the SDK.
2025-era clients (e.g. 2025-11-25) fall back to `initialize` and are served from the same code.
- **Multi-round-trip requests (MRTR):** confirmations return `input_required` with an embedded elicitation. On
2025-era stdio connections the SDK turns that into an `elicitation/create` request.
- **Cache hints:** `ttlMs` / `cacheScope` are set on `tools/list`, `prompts/list`, resource lists,
`server/discover` and resource reads.
- **Deterministic tool order.**
- **No deprecated features:** logging goes to stderr instead of the deprecated MCP logging, and sampling and roots
are not used.
- **Authorization:**
- OAuth 2.1 with PKCE (S256)
- RFC 9728 protected-resource metadata
- RFC 8414 authorization-server metadata
- RFC 8707 resource binding
- RFC 9207 `iss` in authorization responses
- **Client ID Metadata Documents**, with Dynamic Client Registration as a fallback for older clients
## 🔒 Security
- **Confirmation** for destructive and public actions (see [Important Tips](#destructive-actions-ask-first)).
- **Local files:** uploads are only allowed from `THINGIVERSE_UPLOAD_DIRS`, never from hidden folders, and
symlinks are resolved first.
- **Uploads by URL:** `https` only, no private or internal addresses (SSRF protection), with size and time limits.
- **Downloads:** never overwrite existing files. The bearer token is never sent to the CDN.
- **OAuth tokens:** Thingiverse tokens never reach the MCP client in plain text. They are encrypted (JWE, A256GCM)
inside the server's own tokens, which are bound to the resource URL.
- **HTTP hardening:**
- DNS-rebinding protection through Host and Origin validation
- rate limiting on `/mcp`
- request body limits
- logs on stderr only, with tokens redacted
<details>
<summary><b>How the OAuth bridge works</b></summary>
Thingiverse supports only a classic OAuth2 web flow: no PKCE, no metadata and no resource indicators. So this
server acts as the authorization server for MCP clients and delegates the login itself to Thingiverse:
1. The MCP client is sent to `/authorize`. The server redirects it to Thingiverse with an encrypted state.
2. Thingiverse redirects back to `/oauth/thingiverse/callback`. The server exchanges the code with the client
secret and checks via `tokeninfo` that the token was issued to this app.
3. The server issues its own short-lived authorization code, then access and refresh tokens. These are encrypted,
carry the Thingiverse token, and are bound to `PUBLIC_URL/mcp`.
The server stays stateless, so it needs no database.
</details>
## 🧑💻 Development
```bash
npm run dev # stdio via tsx
npm test # vitest: client, tools, both protocol eras, OAuth flow
npm run lint # biome
npm run typecheck
npm run inspect # MCP Inspector against dist/index.js
```
## ⚠️ Known Limitations
- **Thingiverse bot protection:** `api.thingiverse.com` sits behind Cloudflare, which at times answers API requests
with a bot challenge (HTTP 403, "Just a moment..."), even with a valid token. The server reports this as a clear
tool error instead of a permissions problem. It does not try to get around the challenge; retry later, or ask
Thingiverse support to allow API traffic for your app.
- **Refresh tokens and authorization codes:**
- Refresh tokens are stateless and cannot be revoked one by one. Rotating `AUTH_SECRET` revokes all of them.
- Single use of authorization codes is enforced per process. With several replicas, rely on PKCE and the
2-minute code lifetime.
- **Client ID Metadata Documents** must be served from public `https` URLs.
- **Elicitation:** 2025-era clients over stateless HTTP cannot receive elicitation requests. They use the
`confirm: true` fallback instead.
- **Upload flow:** the server uploads to `POST /files/0/uploadFile` and then calls `POST /files/0/FinalizeFiles`,
as described in Thingiverse's OpenAPI spec. The flow has not been tested against the live API yet.
## Disclaimer
This is an independent community project. It is not affiliated with, endorsed by or supported by Thingiverse or
UltiMaker. Models on Thingiverse are published by their creators under their own licenses; respect each thing's
license when you download, print or remix it. Use of the Thingiverse API is subject to the Thingiverse API terms.
## 📄 License
MIT
TDQS
Scored across 24 tools
Tools are generally split cleanly by resource and verb: search vs. browse, get_thing vs. its list_thing_* sub-resources, and the CRUD trio of create/update/publish/delete are all distinct. The only soft overlaps are thingiverse_get_thing's `include` option duplicating list_thing_files/list_thing_images, and search vs. browse-with-tag, but descriptions steer usage well.
Nearly all tools use a consistent `thingiverse_verb_noun` snake_case pattern (list_thing_files, create_collection, delete_thing). Minor deviations are the noun-less thingiverse_search and thingiverse_browse, plus some verb ordering variance (get_thing_remixes vs. list_thing_makes), which are readable but not perfectly uniform.
At 24 tools this sits at the upper edge of comfortable, but the surface mirrors a real API with distinct read, write, and lifecycle operations for things, files, collections, comments, likes, and users, so each tool has a defensible role. A few could be consolidated (e.g. search/browse, get_thing includes), keeping it just short of a 5.
Coverage of the thing lifecycle is strong: discovery, detail, files/images/makes/comments/remixes, download, plus draft-create, upload, publish, update, and delete. Gaps exist on the collection side (no update/delete collection) and comments/makes (no edit or delete comment, no post-a-make), but these are minor workflows an agent can route around.