Provides access to platform-specific guides and documentation for developing MonoGame applications on Android.
Offers a comprehensive suite of tools for MonoGame development, including API documentation lookup, content pipeline management, project diagnostics, and code scaffolding.
Leverages the .NET SDK and CLI to create, build, and run MonoGame projects, as well as manage C# code scaffolding and global tools like MGCB.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MonoGame MCP ServerCreate a DesktopGL project named 'VoidRunner' and add a player texture."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MonoGame MCP Server
A Model Context Protocol (MCP) server for the MonoGame framework. It provides AI-powered documentation lookup, project management, code scaffolding, and diagnostic tools for MonoGame development.
Quick Start
Install prerequisites (.NET SDK 8.0 and MonoGame templates).
Configure your MCP client (like Claude Desktop) to use
npx monogame-mcp.Restart your client and start building MonoGame projects.
Prerequisites
Node.js: version 18 or higher.
.NET SDK 8.0: Required for building and running projects. Verify with
dotnet --version.MonoGame Templates: Install with
dotnet new install MonoGame.Templates.CSharp.MGCB Tool: Install for content builds with
dotnet tool install -g dotnet-mgcb.
Installation
Using npx (Recommended)
You can run the server directly without local installation:
npx monogame-mcpGlobal Installation
npm install -g monogame-mcpDocker
docker run -i monogame-mcpConfiguration
Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"monogame-mcp": {
"command": "npx",
"args": ["-y", "monogame-mcp"]
}
}
}If using Docker:
{
"mcpServers": {
"monogame-mcp": {
"command": "docker",
"args": ["run", "-i", "monogame-mcp"]
}
}
}Available Tools
Tool Name | Description | Example Usage |
| Search MonoGame API documentation for classes, methods, and properties |
|
| Create a new MonoGame project using dotnet templates |
|
| Add, remove, or configure assets in a .mgcb content project |
|
| Build MonoGame content using MGCB CLI |
|
| Generate MonoGame C# code from predefined templates |
|
| Diagnose MonoGame error messages and suggest fixes |
|
| Build or run MonoGame projects using dotnet CLI |
|
Available Resources
URI Template | Description | Example URI |
| API reference documentation for MonoGame classes |
|
| Code examples and tutorials for development |
|
| Documentation for the Content Pipeline |
|
| Platform-specific guides |
|
Available Prompts
Prompt Name | Arguments | Description |
|
| Review C# code for MonoGame best practices |
|
| Troubleshoot errors and exceptions |
|
| Plan game architecture and organization |
|
| Step-by-step feature implementation guidance |
Examples
1. Creating a New Project
Tell the AI: "Create a new MonoGame DesktopGL project named SpaceExplorer, add a background.png texture to content, and build it."
The AI will use monogame_create_project, then monogame_manage_content, and finally monogame_build_content.
2. Learning the API
Ask: "How do I use SpriteBatch to draw a scaled texture?"
The AI will use monogame_api_lookup or read monogame://api/SpriteBatch to provide exact parameters and code.
3. Fixing Errors
If you get an error: "ContentLoadException: The content file was not found."
Provide the error to the AI. It will use monogame_diagnose_error to identify that you likely missed adding the asset to your .mgcb file or have a path mismatch.
4. Scaffolding and Running
Ask: "Generate a scene manager class for my game and then try to run the project."
The AI will use monogame_scaffold_code with the scene-manager template, then monogame_build_run with the run action.
Development
Clone the repository.
Install dependencies:
npm installBuild the project:
npm run buildRun tests:
npm testLink for local testing:
npm link
License
MIT
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.