Game Asset Finder MCP
Game Asset Finder MCP
一个面向游戏开发的“搜索优先”MCP 服务。它同时查询多个公开素材源和可选的本地素材库,把不同站点的结果统一成同一套字段,并做中文关键词扩展、许可证归一化、相关性排序、跨源去重、来源均衡、缓存和游标分页。
项目基于当前 MCP TypeScript SDK v2,使用 stdio 运行,适用于 Codex、ChatGPT 桌面端及其他支持本地 MCP 的客户端。
设计与优化
项目采用 provider 注册表和统一结果模型,并重点优化了跨来源搜索层:
单个来源失败不会拖垮全局搜索,响应会明确标记各来源状态。
关键词权重和中英文游戏术语扩展提升了中文查询的召回率。
加入 TTL/LRU 缓存、相同并发请求合并、provider 总时限、有限重试和
Retry-After。加入统一许可证过滤、规范 URL 去重、镜像来源合并、稳定排序和来源多样化。
用
limit + nextCursor分页,避免一次把大量结果塞进模型上下文。本地索引采用增量扫描、SHA-256、原子写入、允许根目录约束和符号链接跳过。
工具面压缩为 4 个,降低代理选错工具的概率。
Related MCP server: @codesift/mcp
数据源
id | 内容 | 凭据 | 许可证特点 |
| 2D、3D、UI、音频、字体素材包 | 无 | CC0 |
| 2D、3D、音乐、音效 | 无 | 每个条目不同 |
| 免费游戏素材列表 | 无 | 每个作者/页面不同 |
| 图片、纹理、图标参考 | 无 | CC / 公共领域 |
| PBR 材质、HDRI、3D | 无 | CC0 |
| 纹理、HDRI、3D | 无 | CC0 |
| 音效、录音 |
| 每个条目不同 |
| 配置目录中的本地素材 | 本地目录 | 由 sidecar 描述 |
任何远程来源都可能临时超时或限流。返回值中的 sourceStatuses 会逐源给出 ok / partial / disabled / timeout / rate_limited / error;其他成功来源仍然返回结果。
安装
要求 Node.js 20.18.1 或更高版本。
git clone https://github.com/sudoriaa/game-asset-finder-mcp.git
cd game-asset-finder-mcp
npm ci
npm run build
npm test也可以执行:
.\install.ps1直接启动:
node .\dist\index.jsstdio 的标准输出是 MCP JSON-RPC 通道,服务日志只写入标准错误。
接入 Codex
在 ~/.codex/config.toml 或可信项目的 .codex/config.toml 中加入:
[mcp_servers.game_assets]
command = "node"
args = ["C:\\path\\to\\game-asset-finder-mcp\\dist\\index.js"]
cwd = "C:\\path\\to\\game-asset-finder-mcp"
startup_timeout_sec = 30
tool_timeout_sec = 90
enabled = true
[mcp_servers.game_assets.env]
GAME_ASSET_LOCAL_ROOTS = "D:\\GameAssets;E:\\SharedAssets"
GAME_ASSET_CACHE_TTL_SECONDS = "600"如果启用 Freesound,建议从本机环境转发密钥,而不是把值写进配置:
[mcp_servers.game_assets]
env_vars = ["FREESOUND_API_KEY"]也可以用 Codex CLI 添加 stdio server:
codex mcp add game-assets -- node "C:\path\to\game-asset-finder-mcp\dist\index.js"
codex mcp list保存配置后重启客户端,再用 /mcp 查看连接状态。仓库中的 mcp-config.example.toml 可直接复制修改。
MCP 工具
search_game_assets
跨源搜索。主要参数:
{
"query": "像素风地牢角色",
"types": ["sprite", "tileset"],
"sources": ["kenney", "opengameart", "itch"],
"formats": ["png"],
"tags": ["retro"],
"license_policy": "commercial",
"include_unknown_license": false,
"limit": 12,
"refresh": false
}license_policy 可取:
any:显示所有结果,并明确标记未知许可证。commercial:只保留已知可商用的许可证;可用include_unknown_license放回未知项。cc0:只保留 CC0 / Public Domain Mark。no-attribution:只保留已知可商用且无需署名的条目。
下一页把返回的 nextCursor 原样放进 cursor,其他查询参数保持不变。修改查询条件后继续使用旧游标会返回 CURSOR_QUERY_MISMATCH。
hasMore 表示当前缓存候选快照里还有下一页,不代表远端站点的全部历史结果都已抓取;需要更深结果时,优先缩小关键词、类型或来源范围并重新搜索。
get_game_asset
读取刚刚搜索到的完整记录:
{ "asset_id": "kenney:roguelike-characters" }返回来源、作者、许可证、预览、文件变体、镜像来源、匹配原因和可直接加入 credits 的署名文本。远程条目先搜索后读取;本地条目也可从索引直接读取。
list_asset_sources
列出所有 provider、启用状态、支持的素材类型、凭据要求、缓存配置和本地索引状态。
index_local_assets
扫描 GAME_ASSET_LOCAL_ROOTS:
{ "mode": "incremental", "max_files": 20000 }incremental 会复用大小与修改时间未变化的 SHA-256;rebuild 会全部重算。索引写到 GAME_ASSET_DATA_DIR/local-assets.json,不会修改素材文件。
本地素材 sidecar
在 hero.png 旁放置 hero.png.asset.json 或 hero.asset.json:
{
"title": "Azure Knight",
"description": "32x32 pixel hero with idle and run frames",
"type": "sprite",
"tags": ["player", "knight", "pixel-art"],
"author": "Studio Name",
"author_url": "https://example.com",
"license": "CC-BY-4.0",
"license_url": "https://creativecommons.org/licenses/by/4.0/",
"source_url": "https://example.com/azure-knight"
}没有 sidecar 的本地文件仍可搜索,但许可证显示为未知。
环境变量
变量 | 默认值 | 说明 |
| 空 | 本地素材根目录;Windows 用 |
| 项目下 | 本地索引目录 |
|
| 查询缓存秒数 |
|
| 查询缓存最大条数 |
|
| 单一 provider 时限 |
|
| 单次远程响应上限 |
|
| 429/临时错误的重试次数 |
|
| 本地索引默认文件上限 |
| 空 | 用逗号分隔的 provider id |
| 空 | 可选 Freesound API key |
开发与验证
npm run check
npm test
npm run test:unit
npm run test:mcp测试覆盖中文查询扩展、类型识别、许可证策略、URL 规范化、去重、缓存击穿合并、局部 provider 失败、分页与游标、本地增量索引,以及真实 stdio MCP 客户端的 tools/list / tools/call。
结果使用提示
MCP 返回的是素材发现与许可证元数据,不替代来源页的最终条款。未知许可证会明确保留为 id: null;发布前可用 commercial、cc0 或 no-attribution 缩小范围,并在 get_game_asset 中保存来源与署名信息。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceA local MCP server for Nexus Mods mod discovery and research, backed by the v2 GraphQL API, enabling search of games, mods, collections, and users.1,8581ISC
- Alicense-qualityBmaintenanceMCP server for local-first lexical code search, providing tools for searching code, finding symbols, and reading chunks from indexed repositories.MIT
- Alicense-qualityCmaintenanceAn MCP server that aggregates web search results from multiple engines and optionally renders pages to Markdown, providing a unified search interface.103ISC
- Alicense-qualityBmaintenanceA Python MCP server for searching, downloading, extracting, inspecting, and previewing game assets from multiple public sources.MIT
Related MCP Connectors
MCP server for accessing curated awesome list documentation
An MCP server that gives your AI access to the source code and docs of all public github repos
A MCP server built for developers enabling Git based project management with project and personal…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sudoriaa/game-asset-finder-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server