Free train 3D models for three.js (GLB, CC BY)
24 free trains for three.js from the 170 in the paprika3d asset library (CC BY), as meshopt GLB files: each with its author, license, credit line, triangles and file size, and the asset_search call that fetches it.
Put one in your game: install paprika3d and your coding agent fetches any model below into your three.js project, with its credit line and the code that loads it, then opens the page and looks at the scene to check it. In Cursor, Codex or any MCP client, add the server npx -y paprika3d serve; in Claude Code it is a plugin, two commands on the install page.
What the library holds
The paprika3d asset library holds 170 trains among its 57,676 models. All of them are licensed CC BY 4.0, which asks you to credit the author wherever you use the model; each card below carries the credit line to paste.
162 of the 170 pass the library's quality checks: textured (or drawn in vertex colours, for a low-poly or voxel model), not flat, at most 15 MB, with a name, a description and a real-world height. Among those, the median model has 16,400 triangles, with the middle half between 5,830 and 41,100, and the median file is 0.25 MB, with nine in ten at most 0.9 MB. The median one stands 3.5 m tall at real size. None carries a texture over 1024 px. 9 are animated and 3 rigged. The most common styles are stylized (62), realistic (44) and low-poly (34).
Get one of these trains into your project with one prompt. Add paprika3d to your coding agent, then ask it for "a train locomotive model": its asset_search tool finds one in this library, downloads it with its credit line and writes the three.js code that loads it at real size.
npx -y paprika3d serve
That is the MCP server, for Cursor, Codex, VS Code, Claude Code and any other MCP client; Claude Code also has it as a plugin, with the skills. Needs Node and Google Chrome. Every agent, step by step: Install.
Trains in a three.js scene
Trains are long, so they are built in cars: a locomotive and the coaches or wagons behind it, each its own model. To run them on a track, lay the track as a THREE.CatmullRomCurve3 and place each car at a distance along it with getPointAt and getTangentAt, the next car one car-length further back, so the whole train bends through curves.
The realistic locomotives carry detailed undersides and bogies that the camera rarely sees; from a high view, a lighter model reads the same. Stations, signals and track pieces in the library sit at real size with the trains, so a model railway lines up without rescaling. A tram suits a city scene, a steam engine a period one; mixing the two styles looks wrong.
Fetch one and load it
With the paprika3d plugin in Claude Code, or its MCP server in any other agent, the agent searches the library in words or picks a model by the id on its card. pick downloads the file into the project's assets/ folder (public/assets/ under vite), adds the credit line to assets/CREDITS.md and answers with the code that loads it at real size. Give cwd, the project folder, as with every paprika3d tool.
asset_search {"query": "train locomotive", "cwd": "."}
asset_search {"pick": "4f6ba80449614626bd84217ec421571c", "cwd": "."}
Every file is a binary glTF (.glb) compressed with meshopt, so GLTFLoader needs the meshopt decoder that ships with three.js. The origin sits at the bottom centre of each model, so it stands on the floor where you place it:
import * as THREE from 'three';
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
import { MeshoptDecoder } from 'three/addons/libs/meshopt_decoder.module.js';
const loader = new GLTFLoader().setMeshoptDecoder(MeshoptDecoder);
const gltf = await loader.loadAsync('assets/old-tram-4f6ba8.glb');
scene.add(gltf.scene);
24 trains to start from
Chosen from the 162 that pass the checks: the ones agents picked most through asset_search first, then the ones whose name says what they are, then lighter files, with at most 2 per author. Each CC BY card ends with its credit line: paste it into your credits, as the license requires.

old tram by Rob
CC BY 4.0 · 8,710 triangles · 0.685 MB · realistic · 3.5 m tallasset_search {"pick": "4f6ba80449614626bd84217ec421571c"}
Credit: "old tram" by Rob (https://sketchfab.com/3d-models/4f6ba80449614626bd84217ec421571c) is licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Optimized for the web by paprika3D.

GpolymergenoCCforHubs01 by tzuhuaniln
CC BY 4.0 · 7,400 triangles · 0.086 MB · realistic · 3.8 m tallasset_search {"pick": "e5f3168bff1e47ba996647fcf2755bae"}
Credit: "GpolymergenoCCforHubs01" by tzuhuaniln (https://sketchfab.com/3d-models/e5f3168bff1e47ba996647fcf2755bae) is licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Optimized for the web by paprika3D.

Ns6300 by Evangeline
CC BY 4.0 · 9,099 triangles · 0.221 MB · realistic · 4 m tall · animatedasset_search {"pick": "aa72fee029794007bf197ea5b1387f8f"}
Credit: "Ns6300" by Evangeline (https://sketchfab.com/3d-models/aa72fee029794007bf197ea5b1387f8f) is licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Optimized for the web by paprika3D.

X2200 by voxellation
CC BY 4.0 · 61,204 triangles · 0.393 MB · realistic · 4.2 m tallasset_search {"pick": "f31daa00bbf54bbe81790c3f7d9016aa"}
Credit: "X2200" by voxellation (https://sketchfab.com/3d-models/f31daa00bbf54bbe81790c3f7d9016aa) is licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Optimized for the web by paprika3D.

NYCT R33 Redbird Subway car by NanoRay
CC BY 4.0 · 37,863 triangles · 0.234 MB · realistic · 3.5 m tallasset_search {"pick": "6ba95918a2854e7ea4213609bd965dfb"}
Credit: "NYCT R33 Redbird Subway car" by NanoRay (https://sketchfab.com/3d-models/6ba95918a2854e7ea4213609bd965dfb) is licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Optimized for the web by paprika3D.

tram by Igor Tretyakov
CC BY 4.0 · 60,915 triangles · 0.531 MB · stylized · 3.5 m tallasset_search {"pick": "4f0939ed8ce341ea9021fd3299538525"}
Credit: "tram" by Igor Tretyakov (https://sketchfab.com/3d-models/4f0939ed8ce341ea9021fd3299538525) is licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Optimized for the web by paprika3D.

Train Vapeur by perceval-66
CC BY 4.0 · 71,888 triangles · 2.46 MB · stylized · 4 m tallasset_search {"pick": "06d80aebc46a48feba8be98f1bbc5d82"}
Credit: "Train Vapeur" by perceval-66 (https://sketchfab.com/3d-models/06d80aebc46a48feba8be98f1bbc5d82) is licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Optimized for the web by paprika3D.

Space Western Locomotive by AlexFB
CC BY 4.0 · 74,493 triangles · 0.632 MB · sci-fi · 4.5 m tall · animated · riggedasset_search {"pick": "b013d907293d4785923da94afaa01bfe"}
Credit: "Space Western Locomotive" by AlexFB (https://sketchfab.com/3d-models/b013d907293d4785923da94afaa01bfe) is licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Optimized for the web by paprika3D.

Railway Station Chervona by vladikzhel
CC BY 4.0 · 3,648 triangles · 0.411 MB · stylized · 12 m tallasset_search {"pick": "c64088609be04bb78091e8d346c3f469"}
Credit: "Railway Station Chervona" by vladikzhel (https://sketchfab.com/3d-models/c64088609be04bb78091e8d346c3f469) is licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Optimized for the web by paprika3D.

Train Engine by sageandginger
CC BY 4.0 · 6,866 triangles · 0.119 MB · stylized · 3.5 m tallasset_search {"pick": "6b64945d2875424884066fa974a23291"}
Credit: "Train Engine" by sageandginger (https://sketchfab.com/3d-models/6b64945d2875424884066fa974a23291) is licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Optimized for the web by paprika3D.

Cartoon Train by Uğur Yakışık
CC BY 4.0 · 9,739 triangles · 0.114 MB · low-poly · 2.8 m tallasset_search {"pick": "cadb1e5edea443fca7f7d9d0cb82beaf"}
Credit: "Cartoon Train" by Uğur Yakışık (https://sketchfab.com/3d-models/cadb1e5edea443fca7f7d9d0cb82beaf) is licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Optimized for the web by paprika3D.

Wooden Train Toy by Mattyew
CC BY 4.0 · 6,467 triangles · 0.16 MB · stylized · 0.2 m tallasset_search {"pick": "3078ed18f3c444f3aadb9f7b48f1e1b5"}
Credit: "Wooden Train Toy" by Mattyew (https://sketchfab.com/3d-models/3078ed18f3c444f3aadb9f7b48f1e1b5) is licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Optimized for the web by paprika3D.

Locomotive by ScratchFCS9
CC BY 4.0 · 4,093 triangles · 0.26 MB · voxel · 3.5 m tallasset_search {"pick": "8c9d2dbf58ae4bd89957c968263af132"}
Credit: "Locomotive" by ScratchFCS9 (https://sketchfab.com/3d-models/8c9d2dbf58ae4bd89957c968263af132) is licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Optimized for the web by paprika3D.

LowPoly Toy Train by YAN1MAVE
CC BY 4.0 · 9,917 triangles · 0.153 MB · low-poly · 0.3 m tallasset_search {"pick": "dc53315bc20f455eb6a0f1b650f8db41"}
Credit: "LowPoly Toy Train" by YAN1MAVE (https://sketchfab.com/3d-models/dc53315bc20f455eb6a0f1b650f8db41) is licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Optimized for the web by paprika3D.

Train , low-poly locomotive by NIKCORE
CC BY 4.0 · 21,512 triangles · 0.153 MB · low-poly · 4.3 m tallasset_search {"pick": "0eea1fa85cfa40769ce8e0cbb98e1d05"}
Credit: "Train , low-poly locomotive" by NIKCORE (https://sketchfab.com/3d-models/0eea1fa85cfa40769ce8e0cbb98e1d05) is licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Optimized for the web by paprika3D.

Block Train by Just BK
CC BY 4.0 · 32,724 triangles · 0.173 MB · stylized · 0.2 m tallasset_search {"pick": "331f1a9a533c4e83aa207396d758105d"}
Credit: "Block Train" by Just BK (https://sketchfab.com/3d-models/331f1a9a533c4e83aa207396d758105d) is licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Optimized for the web by paprika3D.

Toy Train Textured by Mishas3D
CC BY 4.0 · 12,586 triangles · 0.242 MB · stylized · 0.25 m tallasset_search {"pick": "33fe30f69f7b4fa0acf13152ebea8547"}
Credit: "Toy Train Textured" by Mishas3D (https://sketchfab.com/3d-models/33fe30f69f7b4fa0acf13152ebea8547) is licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Optimized for the web by paprika3D.

Japanese train concept LowPoly by LEX_GFX
CC BY 4.0 · 2,537 triangles · 0.097 MB · low-poly · 3.5 m tallasset_search {"pick": "0f9f96db01444945a4754d08b1631579"}
Credit: "Japanese train concept LowPoly" by LEX_GFX (https://sketchfab.com/3d-models/0f9f96db01444945a4754d08b1631579) is licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Optimized for the web by paprika3D.

Steam Train by supamas
CC BY 4.0 · 17,120 triangles · 0.546 MB · realistic · 4.3 m tallasset_search {"pick": "29910176fa8e42fba97fdc011fd840cc"}
Credit: "Steam Train" by supamas (https://sketchfab.com/3d-models/29910176fa8e42fba97fdc011fd840cc) is licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Optimized for the web by paprika3D.

Train - Low Poly by Bharad
CC BY 4.0 · 1,082 triangles · 0.021 MB · low-poly · 3.5 m tallasset_search {"pick": "f705408836d24c8792ae4459236c3212"}
Credit: "Train - Low Poly" by Bharad (https://sketchfab.com/3d-models/f705408836d24c8792ae4459236c3212) is licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Optimized for the web by paprika3D.

Scifi Tram (LowPoly and one texture) by IBRA
CC BY 4.0 · 258 triangles · 0.049 MB · sci-fi · 3.5 m tallasset_search {"pick": "0ecb6fb5abf949a2a356931cd251c803"}
Credit: "Scifi Tram (LowPoly and one texture)" by IBRA (https://sketchfab.com/3d-models/0ecb6fb5abf949a2a356931cd251c803) is licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Optimized for the web by paprika3D.

LP train by ZachWilkins1997
CC BY 4.0 · 692 triangles · 0.09 MB · low-poly · 0.4 m tallasset_search {"pick": "60fb29654ba54544ba300359b6b9d52e"}
Credit: "LP train" by ZachWilkins1997 (https://sketchfab.com/3d-models/60fb29654ba54544ba300359b6b9d52e) is licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Optimized for the web by paprika3D.

Stylized Toy Train by Sasha.Vladyka
CC BY 4.0 · 26,125 triangles · 0.374 MB · stylized · 0.2 m tallasset_search {"pick": "7e6c696592ee4cb3b7fab42325420079"}
Credit: "Stylized Toy Train" by Sasha.Vladyka (https://sketchfab.com/3d-models/7e6c696592ee4cb3b7fab42325420079) is licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Optimized for the web by paprika3D.

Old train toy by Alin.Sirbu
CC BY 4.0 · 22,926 triangles · 0.407 MB · stylized · 0.15 m tallasset_search {"pick": "7a4d057b2716469ca833e659c005eee6"}
Credit: "Old train toy" by Alin.Sirbu (https://sketchfab.com/3d-models/7a4d057b2716469ca833e659c005eee6) is licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Optimized for the web by paprika3D.
Related
- Free car 3D models for three.js (GLB, CC BY)
- Free truck 3D models for three.js (GLB, CC BY)
- Free bridge 3D models for three.js (GLB, CC BY)
- Free building 3D models for three.js (GLB, CC BY)
Counts from the library's catalog on 2026-11-30. The models are their authors' work under the license on each card; paprika3d converted them for the web.