mcpapp-colorpicker
A Model Context Protocol (MCP) App built with .NET that provides an interactive color picker with a rich UI
claude mcp add --transport stdio elbruno-mcpapp-colorpicker dotnet run \ --env ASPNETCORE_URLS="http://0.0.0.0:3001"
How to use
This MCP server implements a Color Picker tool inside a small .NET-based MCP app. It exposes an interactive UI at /mcp/ui/color-picker and serves the MCP protocol endpoint at /mcp so MCP clients (for example, the VS Code MCP extension) can connect and load the ColorPicker tool. The ColorPicker tool lets users visually pick a color using a hue slider, a 200-color gradient grid, and a real-time HEX preview. The result is an object containing the selected color, which can be consumed by MCP clients to apply styling or generate color values in workflows. To use it, start the server and connect via an MCP client, then invoke the ColorPicker tool named ColorPicker in the MCP extension or client UI. The server adapts to the client’s context and theme, and the embedded UI serves at /ui/color-picker for direct access if needed.
How to install
Prerequisites:
- .NET 10 SDK or later
- A supported IDE or editor (e.g., Visual Studio Code)
Step-by-step:
- Clone the repository
git clone https://github.com/elbruno/mcpapp-colorpicker.git
cd mcpapp-colorpicker
- Restore and build
dotnet restore
dotnet build
- Run the MCP server
dotnet run
- Verify the server
- The MCP endpoint should be available at http://localhost:3001/mcp
- The embedded UI is served at http://localhost:3001/ui/color-picker
Optional: configure a reverse proxy or expose via ngrok if you need remote access.
Additional notes
- The server runs on port 3001 by default and serves MCP protocol traffic at /mcp. If you already have something on port 3001, adjust ASPNETCORE_URLS or use a reverse proxy.
- Access the UI directly at /ui/color-picker to view the interactive color picker.
- If exposing to the internet, you can use ngrok or similar tools and update your MCP client configuration to point to the public URL plus /mcp, e.g. https://xyz.ngrok.io/mcp.
- The ColorPicker tool accepts an optional initialColor parameter when invoked from the MCP client (hex format, e.g., #FF5733).
Related MCP Servers
Mcp.Net
A fully featured C# implementation of Anthropic's Model Context Protocol (MCP)
RimSearcher
A Model Context Protocol (MCP) server for fast searching and retrieval of RimWorld source code.
seq
A Model Context Protocol (MCP) server providing AI assistants with tools to search, stream, and analyze events from Seq structured logging servers.
dnSpy
Headless CLI reflection debugger for .NET assemblies with MCP server support
RoslynMcpServer
Model Context Protocol server for Roslyn-powered C# refactoring operations
mcp-datadog
A Datadog MCP implemented in C# that exposes logs, metrics, traces, and monitors as structured context for AI agents, enabling automated observability analysis, test validation, incident investigation, and operational insights.