Logo de MudMCP

MudMCP

Comunidade
mcbodge

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

Publicado pormcbodge
RepositórioMudMCP
IdiomaC#
Forks
16
Estrelas
114
Ferramentas disponíveis
0
Tipo de transportestdio
LicençaGPL-2.0
Links
  • Conecte ferramentas a fluxos de trabalho de IA

    MudMCP disponibiliza recursos MCP que podem ser usados por clientes e agentes de IA compatíveis.

  • 0 ferramentas disponíveis

    Confira abaixo as ações que podem ser chamadas, incluindo nomes e descrições quando fornecidos pelo servidor.

  • Configuração pronta para copiar

    Use os exemplos de instalação para configurar este servidor no seu cliente MCP preferido.

  • Indicadores da comunidade de código aberto

    114 estrelas e 16 forks no repositório vinculado.

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 o MCP de MudMCP com vários modelos de IA

O TypingMind conecta as ferramentas MCP no nível do espaço de trabalho. Assim, após conectar MudMCP, é possível usá-lo com diferentes modelos de IA no TypingMind, em vez de configurá-lo separadamente para cada modelo. Este MCP é executado localmente no seu dispositivo por meio do conector MCP do TypingMind.

Guia de configuração para usar o conector local

Use esta opção quando o servidor MCP precisar acessar arquivos locais, aplicativos ou recursos privados no seu computador.

1

Abra as configurações de MCP

No TypingMind, vá até Configurações, Configurações avançadas e depois Model Context Protocol e selecione Configurar conector.

  1. Abra o TypingMind no navegador.
  2. Clique no ícone de Ajustes.
  3. Acesse Configurações avançadas.
  4. Abra a seção Model Context Protocol.
  5. Clique em Configurar conector e selecione Este dispositivo.
Tela de configuração do conector MCP do TypingMind com a opção Este dispositivo selecionada
2

Execute o comando do conector

Selecione Este dispositivo, copie o comando do TypingMind e execute-o no Terminal. Mantenha o processo em execução enquanto usa o MCP.

  1. Copie o comando de configuração exibido pelo TypingMind.
  2. Abra o Terminal no macOS ou o Windows Terminal no Windows.
  3. Cole e execute o comando.
  4. Autorize a instalação do pacote se o Terminal pedir confirmação para continuar.
  5. Mantenha o processo em execução na janela do Terminal enquanto usa as ferramentas MCP.
3

Adicione MudMCP como servidor

Quando o status do conector for Pronto, clique em Editar e cole a configuração do servidor MCP.

  1. Aguarde até que o status do conector mostre Pronto.
  2. Clique em Editar.
  3. Cole a configuração do servidor MCP de MudMCP.
  4. Salve a lista de servidores.
  5. Atualize para confirmar se o conector ainda está pronto para uso.
Configurações de MCP do TypingMind mostrando um servidor ativo e o botão Editar
{
  "mcpServers": {
    "mudmcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use a conexão com diferentes modelos

Salve a lista de servidores, abra Plugins, ative as ferramentas MCP de MudMCP, selecione qualquer modelo de IA compatível no TypingMind e use as ferramentas no chat ou atribua-as a um agente de IA.

  1. Abra a página Plugins no TypingMind.
  2. Ative as ferramentas MCP de MudMCP.
  3. Inicie um chat e escolha o modelo de IA que deseja usar.
  4. Use as ferramentas MCP no chat ou atribua-as a um agente de IA.
  5. Mude para outro modelo de IA sempre que necessário, sem reconectar o MCP.
Chat do TypingMind usando ferramentas MCP ativadas com um modelo de IA selecionado
Pode usar MudMCP para me ajudar nesta tarefa?
MudMCP
Claro. Já li.
Veja o que encontrei usando MudMCP.

Perguntas frequentes

Para que serve o servidor MCP MudMCP?

MudMCP é um servidor MCP que permite que aplicativos de IA compatíveis se conectem a ferramentas externas e informações de contexto. No TypingMind, basta adicionar esse servidor MCP uma vez para disponibilizar suas ferramentas no seu espaço de trabalho com IA.

Posso usar o MCP MudMCP com vários modelos de IA no TypingMind?

Sim. O TypingMind conecta as ferramentas MCP no nível do espaço de trabalho, permitindo usar MudMCP com diferentes modelos de IA, como Claude, ChatGPT, Gemini ou outros modelos configurados no TypingMind, sem configurar o servidor MCP separadamente para cada modelo.

Por que usar o MCP MudMCP com o TypingMind?

O TypingMind é uma das melhores interfaces de chat com LLMs porque reúne vários modelos de IA, prompts, plugins, agentes de IA, chaves de API e ferramentas MCP em um só espaço de trabalho. Com MudMCP conectado, é possível usar suas ferramentas MCP nos seus modelos preferidos e manter seu fluxo de trabalho de chat organizado no TypingMind.

Como conecto o MCP MudMCP ao TypingMind?

MudMCP funciona por meio do conector MCP local do TypingMind. Essa é a melhor opção quando o servidor MCP precisa acessar arquivos locais, apps de desktop, ferramentas de linha de comando ou recursos privados no seu computador.

Quais ferramentas o MCP MudMCP oferece no TypingMind?

MudMCP disponibiliza recursos MCP que podem ser ativados na página Plugins do TypingMind e usados no chat ou atribuídos a agentes de IA.

Preciso compartilhar minhas chaves de API com o TypingMind para usar o MCP MudMCP?

Não. O TypingMind prioriza o uso local e permite manter seus provedores de modelos, chaves de API, prompts e configuração MCP sob seu controle. Se MudMCP exigir autenticação, adicione os cabeçalhos, as configurações OAuth ou a configuração local exigidos por esse servidor MCP ao criar a conexão.

Servidores MCP relacionados

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇