ASSETMCP
A Python MCP server for searching, downloading, extracting, inspecting, and previewing game assets from multiple public sources.
README
ASSETMCP
ASSETMCP is a Python Model Context Protocol server for finding, downloading, extracting, previewing, and inspecting game assets.
It is designed for coding agents that need a practical asset workflow: search multiple public sources, download files into a managed local library, unpack asset packs safely, inspect images and 3D models, and generate previews that are easy to browse.
Features
- Search OpenGameArt, Kenney, ambientCG, Openverse, and itch.io.
- Search several sources at once with normalized result records.
- Download individual URLs or source-specific asset packs.
- Extract
.zip,.tar,.tar.gz,.tar.bz2,.tar.xz,.tgz, and.7zarchives. - Inspect images for dimensions, transparency, dominant colors, content bounds, edge density, and rough shape.
- Inspect 3D assets for geometry counts, bounds, extents, GLTF metadata, animation/material counts, and rough shape.
- Generate PNG contact sheets for image folders.
- Generate local HTML galleries for images and GLB/GLTF models.
- Create local browser viewers for GLB/GLTF files.
- Build JSON indexes of local asset folders.
- Search downloaded files by name, kind, and optional image dimensions.
- Slice sprite sheets and tilesets into individual PNG frames.
Requirements
- Python 3.11 or newer
- Git, if you want to clone or contribute
- An MCP client that supports stdio servers
The project uses these main Python libraries:
mcphttpxbeautifulsoup4lxmlpillowtrimeshpygltflibpy7zr
Quick Start
Clone the repository:
git clone https://github.com/evonar543/ASSETMCP.git
cd ASSETMCP
Create and install the local environment:
python -m venv .venv
.\.venv\Scripts\python.exe -m pip install --upgrade pip
.\.venv\Scripts\python.exe -m pip install -r requirements.txt
.\.venv\Scripts\python.exe -m pip install -e .
Run the MCP server over stdio:
.\run_assetmcp.ps1
Or run it directly:
.\.venv\Scripts\python.exe -m assetmcp.server
Windows Installer Script
This repository includes a convenience installer:
.\install.ps1
It creates .venv, installs dependencies, and installs ASSETMCP in editable mode.
MCP Client Configuration
Use this shape in your MCP client config. Update the paths if you cloned the project somewhere else.
{
"mcpServers": {
"ASSETMCP": {
"command": "C:\\path\\to\\ASSETMCP\\.venv\\Scripts\\python.exe",
"args": ["-m", "assetmcp.server"],
"env": {
"ASSETMCP_LIBRARY_DIR": "C:\\path\\to\\ASSETMCP\\assets",
"ASSETMCP_PREVIEW_DIR": "C:\\path\\to\\ASSETMCP\\previews",
"ASSETMCP_MAX_DOWNLOAD_MB": "512"
}
}
}
}
A ready-to-edit example is included at assetmcp.mcp.example.json.
Configuration
ASSETMCP uses these environment variables:
| Variable | Default | Purpose |
|---|---|---|
ASSETMCP_LIBRARY_DIR |
./assets |
Where downloads and extracted files are stored. |
ASSETMCP_PREVIEW_DIR |
./previews |
Where generated contact sheets, galleries, and model viewers are stored. |
ASSETMCP_MAX_DOWNLOAD_MB |
512 |
Maximum size for a single download. |
ASSETMCP_TRANSPORT |
stdio |
MCP transport: stdio, sse, or streamable-http. |
Tool Reference
Discovery
search_asset_sources: Search several supported sources at once.search_opengameart: Search OpenGameArt asset pages.search_kenney_assets: Search Kenney CC0 asset packs.search_ambientcg_assets: Search ambientCG materials, atlases, HDRIs, images, and 3D models.search_openverse_images: Search Openverse image results.search_itch_assets: Search itch.io game asset pages.discover_page_assets: Scrape an arbitrary web page for image, model, audio, archive, and file links.
Downloading
download_asset: Download one URL into the asset library.download_page_assets: Discover a page and download matching files.download_kenney_asset: Download the primary archive from a Kenney asset page.download_ambientcg_asset: Download an ambientCG archive by asset id and preferred format.
Local Library
library_info: Show storage paths, limits, and supported formats.list_library: List downloaded files by kind.find_local_assets: Search downloaded files by path, filename, kind, and optional image size.index_library: Write a JSON index of downloaded files and optional metadata/hashes.
Inspection and Preview
inspect_asset: Inspect images, 3D models, archives, or generic files.make_image_contact_sheet: Build a PNG contact sheet for image browsing.create_asset_gallery: Build a local HTML gallery for images and GLB/GLTF models.create_3d_viewer: Build a local browser viewer for.glbor.gltf.slice_sprite_sheet: Slice a sprite sheet or tileset into PNG frames.extract_archive: Extract supported archives safely inside the asset library.
Example Agent Workflows
Search several sources:
Use search_asset_sources with query "low poly trees" and sources ["kenney", "ambientcg", "opengameart"].
Download and extract a Kenney pack:
Use search_kenney_assets for "platformer", then pass the selected result URL to download_kenney_asset with auto_extract true.
Inspect downloaded sprites:
Use find_local_assets for kind image, then inspect_asset on likely sprite files, then make_image_contact_sheet for the folder.
Slice a sprite sheet:
Use slice_sprite_sheet with frame_width 16 and frame_height 16 on the selected PNG.
Source Notes
- Kenney asset pages mark game assets as CC0.
- ambientCG results come from the public
api/v3/assetsendpoint and are generally CC0. - Openverse returns license metadata from its upstream providers.
- itch.io search results link to asset pages. Check each page's license and download flow before using the files.
- OpenGameArt assets have per-page license metadata; check the result page for exact terms.
Safety Model
ASSETMCP treats downloaded files and archives as untrusted.
- Downloads are streamed with a size limit.
- Archive extraction validates every member path before writing.
- Downloads and extracted files are kept inside the configured asset library.
- Preview files are kept inside the configured preview directory.
- Existing files are not overwritten; ASSETMCP creates numbered filenames when needed.
Development
Install in editable mode:
.\install.ps1
Run a syntax check:
.\.venv\Scripts\python.exe -m compileall src
Verify that the MCP server starts and lists tools:
@'
import asyncio
from assetmcp.server import mcp
async def main():
tools = await mcp.list_tools()
print(len(tools))
print([tool.name for tool in tools])
asyncio.run(main())
'@ | .\.venv\Scripts\python.exe -
Repository Layout
src/assetmcp/server.py MCP server and tool implementations
src/assetmcp/__init__.py package version
requirements.txt runtime dependencies
pyproject.toml package metadata and console script
install.ps1 Windows setup helper
run_assetmcp.ps1 Windows stdio launcher
assets/ ignored local asset library
previews/ ignored generated previews
License
This project is released under the MIT License. See LICENSE.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.