A Model Context Protocol (MCP) server that reflects Blazor/Razor assemblies to expose live component metadata and developer tools for AI-assisted code generation and analysis.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"components-mcp-blazor": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A Model Context Protocol (MCP) server that reflects Blazor/Razor assemblies to expose live component metadata and developer tools for AI-assisted code generation and analysis.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationBe the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in developer-tools
Manage Supabase projects — databases, auth, storage, and edge functions
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
A Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
Asynchronous coordination layer for AI coding agents: identities, inboxes, searchable threads, and advisory file leases over FastMCP + Git + SQLite
MCP Security Weekly
Get CVE alerts and security updates for Components.MCP.Blazor and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A Model Context Protocol (MCP) server that exposes Blazor component metadata for AI-assisted development.
It enables ChatGPT, Claude, and other MCP-capable tools to inspect your actual Blazor components — no guessing, no static docs.
Components.MCP.Blazor provides a Model Context Protocol (MCP) interface that lets AI agents and development tools dynamically discover your real Blazor components.
It reflects all types inheriting from ComponentBase in your assemblies and exposes them as structured MCP tools.
| Without MCP | With Components.MCP.Blazor |
|---|---|
| AI assistants hallucinate Razor parameters | AI reads your actual component metadata |
| Static component docs go out of sync | Metadata is live and updated automatically |
| You manually describe your UI components | AI tools introspect them directly via MCP |
This project bridges AI and Blazor — giving large language models the same understanding of your components that your IDE has.
components.listDescription: Lists all discoverable Blazor components and their namespaces.
Request Example
{
"method": "tools/call",
"params": {
"name": "components.list"
}
}
Response Example
{
"content": [
{
"type": "text",
"text": [
{
"name": "NavMenu",
"namespace": "MyApp.Components.Shared"
},
{
"name": "UserCard",
"namespace": "MyApp.Components.UI"
}
]
}
]
}
Use case:
AI agents can query this tool to discover available components, then suggest or autogenerate Razor markup that references them correctly.
component.detailsDescription: Returns full metadata for a specific Blazor component by namespace and name.
Request Example
{
"method": "tools/call",
"params": {
"name": "component.details",
"arguments": {
"componentNamespace": "MyApp.Components.UI",
"componentName": "UserCard"
}
}
}
Response Example
{
"content": [
{
"type": "text",
"text": {
"name": "UserCard",
"namespace": "MyApp.Components.UI",
"assembly": "MyApp.Components",
"parameters": [
{
"name": "User",
"type": "UserModel",
"isRequired": true,
"captureUnmatchedValues": false
}
],
"cascadingParameters": [],
"injectedDependencies": [
{
"name": "Logger",
"type": "ILogger<UserCard>",
"isRequired": false,
"captureUnmatchedValues": false
}
]
}
}
]
}
Use case:
This allows AI tools to understand the actual parameters and injected services for any component, enabling:
ComponentBase[Parameter], [CascadingParameter], and [Inject] property infoProgram.csusing Components.MCP.Blazor.Introspection;
using Components.MCP.Blazor.Tools;
using ModelContextProtocol.Server;
using Microsoft.AspNetCore.Components;
var builder = WebApplication.CreateBuilder(args);
// Configure which assemblies to scan
var discoveryOptions = new ComponentDiscoveryOptions();
discoveryOptions.Assemblies.Add(typeof(DynamicHeadContent).Assembly);
builder.Services.AddSingleton(discoveryOptions);
builder.Services.AddSingleton<ComponentMetadataProvider>();
builder.Services
.AddMcpServer()
.AddBuiltInHandlers()
.WithHttpTransport()
... [View full README on GitHub](https://github.com/SimonLiebers-Dev/Components.MCP.Blazor#readme)