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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。