资源包
STDIOUnity资源包交互分析MCP服务器
Unity资源包交互分析MCP服务器
AssetBundleMCP is an MCP (Model-Context-Protocol) server for easily and efficiently analyzing Unity AssetBundles through conversation with an AI assistant (such as gemini-cli).
By using this tool, developers and QA engineers can quickly grasp information such as a list of assets and texture details contained in an AssetBundle simply by asking questions in natural language.

Starting from .NET 10 preview 6, you can run it directly using dnx.
Please follow the documentation for your AI assistant to set up AssetBundleMCP as an MCP server.
.vscode/mcp.json.mcp.json{ "servers": { "AssetBundleMCP": { "type": "stdio", "command": "dnx", "args": [ "AssetBundleMCP", "--yes" ] } } }
.gemini/settings.json{ "mcpServers": { "AssetBundleMCP": { "command": "dnx", "args": [ "AssetBundleMCP", "--yes" ] } } }
dotnet tool install -g AssetBundleMCP
Please follow the documentation for your AI assistant to set up AssetBundleMCP as an MCP server.
.vscode/mcp.json.mcp.json{ "servers": { "AssetBundleMCP": { "type": "stdio", "command": "assetbundlemcp" } } }
.gemini/settings.json{ "mcpServers": { "AssetBundleMCP": { "command": "assetbundlemcp" } } }
Clone with the --recurse-submodules option to also fetch the Git submodules.
git clone --recurse-submodules https://github.com/hanachiru/AssetBundleMCP.git cd AssetBundleMCP
dotnet build -c Release
Please follow the documentation for your AI assistant to set up AssetBundleMCP as an MCP server.
.vscode/mcp.json.mcp.json{ "servers": { "AssetBundleMCP": { "type": "stdio", "command": "dotnet", "args": [ "run", "--project", "<PATH TO PROJECT DIRECTORY>/src/AssetBundleMCP/AssetBundleMCP.csproj" ] } } }
.gemini/settings.json{ "mcpServers": { "AssetBundleMCP": { "command": "dotnet", "args": [ "run", "--project", "<PATH TO PROJECT DIRECTORY>/src/AssetBundleMCP/AssetBundleMCP.csproj" ] } } }
Specify the path to the directory containing the AssetBundles or the AssetBundle files you want to analyze, then instruct the system to load them.
Please load the AssetBundles in C:/path/to/your/assetbundles
The tool will analyze the AssetBundles and save the results to a temporary database file. If you do not specify an output destination, an SQLite file will be created in the current directory.
Once loading is complete, you can ask various questions.
Please show me the list of assets in the AssetBundle
Please show me the list of textures in the AssetBundle
When you are done analyzing, unload the database and release resources with the following command:
Please unload the AssetBundle database
| Command Name | Description | 
|---|---|
LoadAssetBundle | Loads an AssetBundle for analysis. | 
UnLoadAssetBundle | Unloads the loaded database file. | 
ListAnimations | Lists all animations in the AssetBundle. | 
ListAssetDependencies | Lists all asset dependencies in the AssetBundle. | 
ListAssets | Lists all assets in the AssetBundle. | 
ListAudioClips | Lists all audio clips in the AssetBundle. | 
ListMeshes | Lists all meshes in the AssetBundle. | 
ListObjects | Lists all objects in the AssetBundle. | 
ListShaderKeywordRatios | Lists all shader keyword ratios in the AssetBundle. | 
ListShaderSubprograms | Lists all shader subprograms in the AssetBundle. | 
ListShaders | Lists all shaders in the AssetBundle. | 
ListTextures | Lists all textures in the AssetBundle. | 
ListBreakdownByType | Lists breakdown by type in the AssetBundle. | 
ListBreakdownShaders | Lists breakdown of shaders in the AssetBundle. | 
ListMaterialShaderRefs | Lists all material shader references in the AssetBundle. | 
ListMaterialTextureRefs | Lists all material texture references in the AssetBundle. | 
ListPotentialDuplicates | Lists all potential duplicates in the AssetBundle. | 
ExecuteSqlQuery | Executes a SQL query on the AssetBundle database. | 
This project is licensed under the MIT License.
The core analysis functionality of this tool uses UnityDataTools. Many thanks to the developers of this excellent library.
None of the repo, the tool, nor the repo owner is affiliated with, or sponsored or authorized by, Unity Technologies or its affiliates. Use it responsibly and ensure compliance with applicable laws and regulations.