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.

コメント

「その他」の他のコンテンツ