BootstrapBlazor Documentation MCP server

Provides access to BootstrapBlazor component documentation and source code through automated Git repository management, enabling developers to retrieve component listings, file structures, and implementation details for Blazor application development.
Back to servers
Setup instructions
Provider
BootstrapBlazor
Release date
May 27, 2025
Stats
4 stars

BootstrapBlazor.Copilot.MCPServer is a Model Context Protocol (MCP) server designed to give AI assistants access to BootstrapBlazor component documentation and source code. It helps AI tools provide more accurate guidance when working with BootstrapBlazor components by offering documentation, source code, and usage examples.

Prerequisites

Before installing the MCP server, ensure you have:

  • .NET 9.0 SDK
  • Git
  • Visual Studio 2022 or VS Code

Installation

Clone and Setup

git clone https://github.com/your-repo/BootstrapBlazor.Copilot.MCPServer.git
cd BootstrapBlazor.Copilot.MCPServer

Restore Dependencies

dotnet restore

Run the Service

You can run the service using either .NET Aspire (recommended) or directly:

# Using Aspire (recommended)
dotnet run --project BootstrapBlazor.Copilot.MCPServer.AppHost

# Or run the main project directly
dotnet run --project BootstrapBlazor.Copilot.MCPServer

The service runs on http://localhost:3001 by default and provides the following endpoints:

  • /health - Health check
  • /alive - Liveness check
  • MCP protocol endpoints

Configuration

Configure the server by modifying the appsettings.json file:

{
  "McpToolConfig": {
    "ServerUrl": "http://localhost:3001"
  },
  "GitRepository": {
    "LocalPath": "C:\\temp\\BootstrapBlazorRepo"  // Optional: custom local repository path
  }
}

Using the MCP Tools

List All Components

This tool returns names and descriptions of all BootstrapBlazor components:

ListComponents()

Get Component File List

Retrieve a list of source code files and example files for a specific component:

GetComponentFiles("Button")

Get File Content

Fetch the content of a specific file:

GetFileContent({
  "ComponentName": "Button",
  "FileName": "Button.razor.cs",
  "Category": "Source"  // Source or Example
})

AI Assistant Integration

GitHub Copilot Integration

To integrate with GitHub Copilot:

  1. Add the MCP server in GitHub Copilot settings
  2. Configure the server address: https://localhost:3001
  3. Restart GitHub Copilot to apply the configuration

Claude Desktop Integration

Add to Claude Desktop configuration file:

{
  "mcpServers": {
    "bootstrapblazor": {
      "command": "dotnet",
      "args": ["run", "--project", "path/to/BootstrapBlazor.Copilot.MCPServer"],
      "env": {
        "ASPNETCORE_ENVIRONMENT": "Production"
      }
    }
  }
}

Troubleshooting

Common Issues

Git repository clone failure

  • Check network connectivity
  • Verify Git is properly installed
  • Check firewall settings

MCP connection failure

  • Verify server address configuration
  • Check if port is in use
  • Confirm MCP client configuration is correct

Component files not found

  • Confirm BootstrapBlazor repository is properly cloned
  • Check local repository path configuration
  • Verify component name spelling

Debug Mode

Enable detailed logging in development environment by updating your configuration:

{
  "Logging": {
    "LogLevel": {
      "Default": "Debug",
      "BootstrapBlazor.Copilot.MCPServer": "Trace"
    }
  }
}

Monitoring

Health Checks

The server provides health check endpoints:

  • /health - Complete health check
  • /alive - Basic liveness check

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "bootstrapblazor" '{"command":"dotnet","args":["run","--project","BootstrapBlazor.Copilot.MCPServer"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "bootstrapblazor": {
            "command": "dotnet",
            "args": [
                "run",
                "--project",
                "BootstrapBlazor.Copilot.MCPServer"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "bootstrapblazor": {
            "command": "dotnet",
            "args": [
                "run",
                "--project",
                "BootstrapBlazor.Copilot.MCPServer"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later