MCP.so
登录

Mcpserver

@mrwylan

关于 Mcpserver

a simple mcp server exposing a list of colors

基本信息

分类

其他

运行时

java

传输方式

stdio

发布者

mrwylan

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "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"
      ]
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Mcpserver?

Mcpserver is a simple demo MCP (Model Context Protocol) server built with Spring Boot. It exposes a list of color name and hex value pairs, allowing users to list all colors, get one, or add a color entry. The server is designed for learning and testing MCP integrations, such as with Claude Desktop.

How to use Mcpserver?

Build the project with mvn clean package, then run java -jar target/mymcp-0.1.0-SNAPSHOT.jar. Connect via SSE transport by configuring Claude Desktop (with Developer Mode) using the provided JSON snippet, replacing the URL/port if the server port is changed. Verify the SSE endpoint is registered at /actuator/mappings after startup.

Key features of Mcpserver

  • Exposes a list of color names and hex values.
  • Supports list all, get one, and add one color operations.
  • Uses SSE (Server-Sent Events) transport.
  • Built with Spring Boot and Maven.
  • Includes an actuator endpoint to verify registered mappings.
  • Can be inspected using the MCP Inspector tool.

Use cases of Mcpserver

  • Learning how to build and run an MCP server with Spring Boot.
  • Testing MCP client integration (e.g., Claude Desktop) with a simple data set.
  • Demonstrating basic CRUD operations over the Model Context Protocol.
  • Experimenting with SSE transport in MCP.

FAQ from Mcpserver

What transport does Mcpserver use?

Mcpserver uses SSE (Server-Sent Events) transport, as shown in the Claude Desktop configuration with "type": "sse".

How do I configure Claude Desktop to use Mcpserver?

In your Claude Desktop config (with Developer Mode enabled), add an entry like "localmcp": { "type": "sse", "url": "http://localhost:8080/sse" } and adjust the URL/port if needed.

How do I build and run Mcpserver?

Run mvn clean package to build, then execute java -jar target/mymcp-0.1.0-SNAPSHOT.jar to start the server.

How can I inspect the MCP endpoint?

Use npx @modelcontextprotocol/inspector to start the inspector, then open the browser and connect to the MCP endpoint.

What operations does Mcpserver expose against the color list?

Mcpserver allows you to list all color entries, retrieve one specific entry, and add a new color entry.

评论

其他 分类下的更多 MCP 服务器