mcpserver

mcpserver

0

This project is a simple MCP server that maintains and manages a list of color names and their hexadecimal values. It allows users to list all color entries, retrieve specific entries, and add new colors, designed as part of a tutorial on setting up an MCP server.

  • my own mcp server - a simple list of colors and hex values

This simple demo is based on the youtoube tutorial from dan vega.

Dan Vega, mcp server tutorial

See Spring Boot documentation

** prerequisite

To demo the running mcp server i used claude desktop installation. Developer mode should be enabled.

claude_desktop_config.json

{
  "mcpServers": {
    "localmcp": {
      "type": "command",
      "command": "D:\\jdks\\jdk-21+35\\bin\\java.exe",
      "args": [
	    "-Dspring.ai.mcp.server.stdio=true",
	    "-jar", 
		"D:\\ws\\ws_mcp_server\\my_mcp_server\\target\\mymcp-0.0.1-SNAPSHOT.jar"
	  ]
    }
  }
}

Replace the settings with your specific build and java path.

Run mvn package to build the jar.

** what the mcp exposes

The server exposes a list of color name, hex value pairs. With this list you can interact: list all, get one, add one color entry.

** a chat, done with this demo

Claude Chat Link