Repository avatar
AI Tools
v1.0.1
active

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

npm version MCP 2026-07-28 Node.js >= 22 TypeScript CI MIT licensed

❌ 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:

ModeConfigurationUse it for
NoneTHINGIVERSE_TOKEN onlyLocalhost only; otherwise the server refuses to start.
API keyMCP_API_KEYA shared secret for a private server.
OAuthTHINGIVERSE_CLIENT_ID, THINGIVERSE_CLIENT_SECRET, AUTH_SECRET, PUBLIC_URLEvery 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.

💡 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 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 documents every one of them.

VariableDefaultDescription
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_ONLYfalseRegister 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_BYTES50 MBUpload size limit.
HOST / PORT127.0.0.1 / 3000HTTP bind address.
PUBLIC_URLhttp://HOST:PORTPublic 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_LEVELinfoLog 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).
  • 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
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:

  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.

🧑‍💻 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.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

NPM
thingiverse-mcp-v2
Install Command
npm install thingiverse-mcp-v2