MudMCP logo

MudMCP

Community
mcbodge

MCP server that provides AI assistants with comprehensive access to MudBlazor component documentation, code examples, and API reference. Not affiliated with MudBlazor team.

Publishermcbodge
RepositoryMudMCP
LanguageC#
Forks
16
Stars
114
Available tools
0
Transport typestdio
LicenseGPL-2.0
Links
  • Connect tools to AI workflows

    MudMCP exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    114 stars and 16 forks from the linked repository.

Mud MCP

An enterprise-grade Model Context Protocol (MCP) server that provides AI assistants with comprehensive access to MudBlazor component documentation, code examples, and API reference.

.NET 10 MCP Protocol License: GPL-2.0

Disclaimer: This project is not affiliated with, endorsed by, or officially supported by the MudBlazor team. It is an independent implementation that extracts and serves documentation from the official MudBlazor repository.


📖 Table of Contents


Overview

Mud MCP bridges the gap between AI assistants and MudBlazor component documentation. It clones the official MudBlazor repository, parses source files using Roslyn, and exposes an indexed API via the Model Context Protocol—enabling AI agents like GitHub Copilot, Claude, and other MCP-compatible clients to provide accurate, context-aware assistance for Blazor development.

Key Value Propositions

  • Version-Aware: Serves documentation for the exact MudBlazor version your project uses
  • AI-Optimized Output: Formats responses in Markdown for optimal LLM consumption
  • Production-Ready: Built with Aspire 13.1, health checks, and observability
  • Flexible Deployment: Supports both HTTP and stdio transports
  • Multi-Version Cache: Caches up to 3 versions simultaneously with LRU eviction — instant startup after first run

Features

FeatureDescription
Component DiscoveryList all ~85 MudBlazor components with category filtering
Detailed DocumentationAccess parameters, events, methods, and inheritance info
Code ExamplesExtract real examples from the MudBlazor documentation
Semantic SearchSearch components by name, description, or parameters
API ReferenceFull API reference for components and enum types
Related ComponentsDiscover related components through inheritance and categories
Health MonitoringBuilt-in health checks with detailed status reporting
Recommended AgentsWorks with the Clowder MudBlazor Copilot agents for optimal MCP tool usage

Recommended Copilot Agents

Mud MCP is designed to be driven by the Clowder MudBlazor agents — maintained GitHub Copilot agents that query this server's mudblazor/* MCP tools instead of relying on memorized component APIs. Install the ones that match your workflow:

Name this server mudblazor in your MCP configuration (see Quick Start); the agents look for mudblazor/* tools. Clowder also ships a CAT C# MCP Engineer for developing MCP servers like this one.


Quick Start

The fastest way to use Mud MCP — no clone, no build, no global install. dnx (bundled with the .NET 10 SDK) downloads and runs the published MudMCP tool on demand, so your AI assistant launches it directly.

Want to run from a local clone to contribute or customize the server? See Running from Source.

Prerequisites

  • .NET 10 SDK — provides the dnx command. Nothing else to install; dnx restores MudMCP from nuget.org on first run.

1. Find your MudBlazor version

Check your project's .csproj for the MudBlazor version — the server serves documentation for this exact version:

xml
<PackageReference Include="MudBlazor" Version="9.0.0" />

2. Add Mud MCP to your AI assistant

Add the snippet below to your MCP client configuration, replacing 9.0.0 with your version from step 1. A pinned example is provided as mcp.dnx.json in the repo root.

VS Code — .vscode/mcp.json:

json
{
  "servers": {
    "mudblazor": {
      "command": "dnx",
      "args": ["MudMCP", "--yes", "--", "--stdio"],
      "env": {
        "MUDBLAZOR_VERSION": "9.0.0",
        "MudBlazor__Repository__DataPath": "${userHome}/.mudmcp"
      }
    }
  }
}

Claude Desktop / Cursor — claude_desktop_config.json / .cursor/mcp.json:

json
{
  "mcpServers": {
    "mudblazor": {
      "command": "dnx",
      "args": ["MudMCP", "--yes", "--", "--stdio"],
      "env": {
        "MUDBLAZOR_VERSION": "9.0.0",
        "MudBlazor__Repository__DataPath": "C:/Users/<you>/.mudmcp"
      }
    }
  }
}

Restart your assistant and ask it something like "List all MudBlazor button components".

The first run per version clones the MudBlazor repository (~500 MB) and builds the index, so it takes a little longer. Subsequent runs load from a cached index.json and start instantly.

Notes

  • Latest vs pinned version: MudMCP (no suffix) always fetches the latest published tool. For a reproducible setup, pin a release by appending @<version> — e.g. "args": ["MudMCP@1.0.2", "--yes", "--", "--stdio"]. Browse released versions on nuget.org.
  • MUDBLAZOR_VERSION vs --version: dnx reserves its own --version flag for the package version, so the MudBlazor docs version is supplied through the MUDBLAZOR_VERSION environment variable. Everything after -- is forwarded to the server, so you may append "--version", "9.0.0" there instead of the env var.
  • MudBlazor__Repository__DataPath (shared cache): where cloned repos and indexes are stored. Point every project at one fixed folder so they share a single cache instead of each cloning ~500 MB into its own working-directory ./data. Omit it to use ./data relative to the client's working directory.
  • What to use for ${userHome}: VS Code expands ${userHome} to your home directory automatically — C:\Users\<you> (Windows), /home/<you> (Linux), /Users/<you> (macOS). Clients that don't expand variables (Claude Desktop, Cursor) need a literal absolute path instead, e.g. C:/Users/<you>/.mudmcp or /home/<you>/.mudmcp.

Running from Source (Developers)

Prefer to run the server from a local clone — to contribute, debug, or customize it? Build it yourself and point your MCP client at the local build. The server communicates over stdin/stdout (the native mode for Cursor, Claude Code, Claude Desktop, and most MCP clients) or over HTTP.

Prerequisites

Clone and build

bash
git clone https://github.com/mcbodge/MudMCP.git
cd MudMCP
dotnet build

Important: The --version argument (or the MUDBLAZOR_VERSION env var) is required in every transport below. It must match the MudBlazor version in your project's .csproj file (e.g., <PackageReference Include="MudBlazor" Version="9.0.0" />).

Run the HTTP server

bash
dotnet run --project src/MudBlazor.Mcp/MudBlazor.Mcp.csproj -- --version 9.0.0

The server clones the MudBlazor repository at tag v9.0.0, parses it with Roslyn, builds the index (cached to disk for instant subsequent starts), and listens on http://localhost:8000. Verify with curl http://localhost:8000/health, then connect an HTTP client:

json
{
  "servers": {
    "mudblazor": {
      "type": "http",
      "url": "http://localhost:8000/mcp"
    }
  }
}

Option A — dotnet run (development)

Add this to your project's .mcp.json (or .cursor/mcp.json, claude_desktop_config.json):

json
{
  "mcpServers": {
    "mudblazor": {
      "command": "dotnet",
      "args": [
        "run",
        "--project",
        "<path-to-MudMCP>/src/MudBlazor.Mcp/MudBlazor.Mcp.csproj",
        "--",
        "--stdio",
        "--version",
        "9.0.0"
      ]
    }
  }
}

Replace <path-to-MudMCP> with the absolute path to where you cloned this repository, and 9.0.0 with your project's MudBlazor version.

The first run per version takes longer because it clones the MudBlazor repository and builds the index. Subsequent runs load from a cached index.json and start instantly.

Option B — Self-contained executable (recommended for daily use)

Publish a single-file executable that starts instantly without the .NET SDK:

powershell
dotnet publish src/MudBlazor.Mcp/MudBlazor.Mcp.csproj `
  -c Release -r win-x64 --self-contained true `
  -p:PublishSingleFile=true -o publish/win-x64

Then use this as your MCP configuration:

json
{
  "mcpServers": {
    "mudblazor": {
      "command": "<path-to-MudMCP>/publish/win-x64/MudBlazor.Mcp.exe",
      "args": ["--stdio", "--version", "9.0.0"]
    }
  }
}

Replace <path-to-MudMCP> with the absolute path to where you cloned this repository, and 9.0.0 with your project's MudBlazor version.

Option C — Docker (HTTP mode, persistent cache)

Run the server in a container with built-in health checks and a named volume that persists the cloned MudBlazor repository across restarts.

Prerequisites: Docker Desktop (or Docker Engine + Compose plugin)

bash
# Build the image and start the container
docker compose up --build -d

# Follow startup logs (first run clones ~500 MB — takes a few minutes)
docker compose logs -f

# Check health
curl http://localhost:8000/health

The MCP endpoint is available at http://localhost:8000/mcp. If an existing MCP client config points to the previous :5180 default, update it to :8000.

Volume: All cached data is stored under a named Docker volume (mudblazor-data) mounted at /app/data. Each MudBlazor version gets its own subdirectory (/app/data/v{Version}/) containing the git clone and serialized index (index.json). The version manifest (versions.json) lives at /app/data/versions.json. Because tagged commits are immutable, the server does not run git fetch on subsequent starts — it simply reuses the existing clone and loads the pre-built index.json.

bash
# Stop without removing the volume (cache is preserved)
docker compose down

# Stop AND delete all cached data (forces a full re-clone and re-index next start)
docker compose down -v

Connect your AI assistant — same config as HTTP mode:

json
{
  "servers": {
    "mudblazor": {
      "type": "http",
      "url": "http://localhost:8000/mcp"
    }
  }
}

Version Caching

The server caches up to 3 MudBlazor versions simultaneously. Each version gets its own git clone and serialized index:

data/
  versions.json          # tracks cached versions + last-used timestamps
  v8.15.0/
    mudblazor-repo/      # git clone at tag v8.15.0
    index.json           # serialized component index
  v9.0.0/
    mudblazor-repo/
    index.json

When a 4th version is requested, the least recently used version is evicted automatically. This means you can work on multiple projects with different MudBlazor versions — each project gets its own .mcp.json with the right --version, and they share the cached clones.


Transport comparison

ModeCommandKestrelUse case
dnxdnx MudMCP --yes -- --stdio (env MUDBLAZOR_VERSION)NoRecommended — one-off, no install (needs .NET 10 SDK)
--stdiodotnet run -- --stdio --version X.Y.Z or .exe --stdio --version X.Y.ZNoRunning from source: Cursor, Claude Code, Claude Desktop
HTTP (default)dotnet run -- --version X.Y.ZYes (:8000)VS Code HTTP, MCP Inspector, remote
Dockerdocker compose upYes (:8000→8080)Containerised / persistent cache

Documentation

For comprehensive documentation, see the docs folder:

DocumentDescription
OverviewArchitecture, design principles, and system overview
Getting StartedInstallation, prerequisites, and first run
ArchitectureTechnical architecture and component design
Best PracticesImplemented patterns and practices
Tools ReferenceComplete reference for all 12 MCP tools
ConfigurationConfiguration options and environment setup
TestingUnit testing strategy and examples
MCP InspectorTesting with MCP Inspector tool
IDE IntegrationVS Code, Visual Studio, and Claude Desktop setup
TroubleshootingCommon issues and solutions
ChangelogVersion history and release notes

Available MCP Tools

ToolDescription
list_componentsLists all MudBlazor components with optional category filter
list_categoriesLists all component categories with descriptions
get_component_detailGets comprehensive details about a specific component
get_component_parametersGets all parameters for a component
get_component_examplesGets code examples for a component
get_example_by_nameGets a specific example by name
list_component_examplesLists all example names for a component
search_componentsSearches components by query
get_components_by_categoryGets all components in a specific category
get_related_componentsGets components related to a specific component
get_api_referenceGets full API reference for a type
get_enum_valuesGets all values for a MudBlazor enum

Example Interaction:

Ask your AI assistant:

  • "List all MudBlazor button components"
  • "Show me how to use MudTextField with validation"
  • "What parameters does MudDataGrid support?"
  • "What are the available Color enum values?"

Project Structure

MudBlazor.Mcp/
├── .github/
│   └── agents/
│       └── csharp-expert.agent.md     # Local C# agent (MudBlazor agents live in Clowder)
├── src/
│   ├── MudBlazor.Mcp/              # Main MCP server
│   │   ├── Configuration/          # Strongly-typed options
│   │   ├── Models/                 # Domain models (immutable records)
│   │   ├── Services/               # Core services
│   │   │   └── Parsing/            # Roslyn-based parsers
│   │   └── Tools/                  # MCP tool implementations
│   ├── MudBlazor.Mcp.AppHost/      # Aspire orchestration
│   └── MudBlazor.Mcp.ServiceDefaults/  # Shared service configuration
├── tests/
│   └── MudBlazor.Mcp.Tests/        # Unit tests
├── docs/                           # Documentation
└── README.md

Contributing

Contributions are welcome! Please see the Contributing Guide for details.

Quick Contribution Steps

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the GNU General Public License v2.0 (GPL-2.0) in compliance with MudBlazor's licensing.

  • Source code is provided under GPL-2.0
  • Original copyright notices are retained
  • Modifications are documented

See the LICENSE file for full details.


Acknowledgments


Use MudMCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once MudMCP is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add MudMCP as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the MudMCP MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "mudmcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the MudMCP MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the MudMCP MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use MudMCP to help me with this task?
MudMCP
Sure. I read it.
Here is what I found using MudMCP.

Frequently asked questions

What is the MudMCP MCP server used for?

MudMCP is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use MudMCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use MudMCP with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use MudMCP MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With MudMCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect MudMCP MCP to TypingMind?

MudMCP runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does MudMCP MCP provide in TypingMind?

MudMCP exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use MudMCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If MudMCP requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇