Logo vun MudMCP

MudMCP

Communautéit
mcbodge

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

Editeurmcbodge
RepositoryMudMCP
SproochC#
Forks
16
Stären
114
Disponibel Tools
0
Transporttypstdio
LizenzGPL-2.0
Linken
  • Tools mat KI-Workflows verbannen

    MudMCP stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    114 Stären an 16 Forks aus dem verlinkte 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


MudMCP MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal MudMCP verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

MudMCP als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu MudMCP an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "mudmcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu MudMCP. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu MudMCP.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat MudMCP?
MudMCP
Jo. Ech hunn et gelies.
Dat hunn ech mat MudMCP fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server MudMCP benotzt?

MudMCP ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech MudMCP MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir MudMCP mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat MudMCP MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann MudMCP verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech MudMCP MCP mat TypingMind?

MudMCP leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt MudMCP MCP an TypingMind zur Verfügung?

MudMCP stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir MudMCP MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann MudMCP eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇