
thingiverse-mcp-v2
io.github.JohnnyTheTank/thingiverse-mcp-v2
Search, download and publish 3D-printable models on Thingiverse (MCP 2026-07-28).
Documentation
Thingiverse MCP Server — 3D-Printable Models for AI Assistants
❌ 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.
Find a wall mount for a Bosch GSR 12V drill that prints without supports, and compare the top 3.
Summarize thing 763622: recommended print settings, which files to print, and what the license allows.
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 and copy its access token. Unpublished apps allow at most 10 users.
The server is published on npm as thingiverse-mcp-v2 and
runs with npx (Node.js 22 or later), so there is nothing to build. Add it to your client:
Claude Code
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.
Claude Desktop
Add this to claude_desktop_config.json (Settings → Developer → Edit Config):
{
"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.
Cursor
Add this to ~/.cursor/mcp.json (global) or .cursor/mcp.json (per project):
{
"mcpServers": {
"thingiverse": {
"command": "npx",
"args": ["-y", "thingiverse-mcp-v2"],
"env": { "THINGIVERSE_TOKEN": "your-token" }
}
}
}
VS Code
Add this to .vscode/mcp.json. VS Code prompts for the token and stores it securely:
{
"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}" }
}
}
}
Other stdio clients
Any MCP client can run the server as a local process:
- command:
npx -y thingiverse-mcp-v2 - environment:
THINGIVERSE_TOKEN=your-token
From source
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.
Remote server (HTTP)
Start the server:
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:
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:
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:
- Set the Thingiverse app's callback URL to
https://<PUBLIC_URL>/oauth/thingiverse/callback. - Generate
AUTH_SECRET, for example withopenssl rand -hex 32. - Connect the client without a token. It discovers the sign-in on its own.
💡 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.
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:
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 querytype(optional):things(default),users,collectionsormakessort(optional):relevant(default),popular,makes,newestortextcategory_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,categoryortagcategory_slug(required forcategory),tag(required fortag)
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 offiles(default),imagesandcategoriesmax_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) orancestors
thingiverse_get_download_url: a short-lived direct download link.file_id(required)
thingiverse_download_file: saves a file intoTHINGIVERSE_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 tome
thingiverse_list_user_content: what a user designed, liked, collected, made or downloaded.username(optional): defaults tomekind(optional):things(default),likes,favorites,collections,makesordownloads
thingiverse_get_collection: a collection and the things in it.collection_id(required)include_things(optional): defaulttrue
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) ormakereply_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.tagsreplaces 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, insideTHINGIVERSE_UPLOAD_DIRS),url(public https) orcontent_base64 filename(optional; required withcontent_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 needsummarize_thing: print-ready summary of one thing
⚙️ Configuration
All settings are environment variables. .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.
createMcpHandlerbuilds a fresh server per HTTP request, andserveStdiopins one per stdio connection. - Protocol negotiation:
server/discoverand the per-request_metaenvelope are handled by the SDK. 2025-era clients (e.g. 2025-11-25) fall back toinitializeand are served from the same code. - Multi-round-trip requests (MRTR): confirmations return
input_requiredwith an embedded elicitation. On 2025-era stdio connections the SDK turns that into anelicitation/createrequest. - Cache hints:
ttlMs/cacheScopeare set ontools/list,prompts/list, resource lists,server/discoverand 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
issin 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).
- Local files: uploads are only allowed from
THINGIVERSE_UPLOAD_DIRS, never from hidden folders, and symlinks are resolved first. - Uploads by URL:
httpsonly, 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
How the OAuth bridge works
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:
- The MCP client is sent to
/authorize. The server redirects it to Thingiverse with an encrypted state. - Thingiverse redirects back to
/oauth/thingiverse/callback. The server exchanges the code with the client secret and checks viatokeninfothat the token was issued to this app. - 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.
🧑💻 Development
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.comsits 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_SECRETrevokes all of them. - Single use of authorization codes is enforced per process. With several replicas, rely on PKCE and the 2-minute code lifetime.
- Refresh tokens are stateless and cannot be revoked one by one. Rotating
- Client ID Metadata Documents must be served from public
httpsURLs. - Elicitation: 2025-era clients over stateless HTTP cannot receive elicitation requests. They use the
confirm: truefallback instead. - Upload flow: the server uploads to
POST /files/0/uploadFileand then callsPOST /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
thingiverse-mcp-v2npm install thingiverse-mcp-v2