drio
Open app

spring-mcp-server-sample

Source

MCP Server Sample

Catalog onlyCatalog onlySTDIO

Overview

The spring-mcp-server-sample is a sample project demonstrating the use of the MCP (Microservices Communication Protocol) server built with Spring framework.

To use this project, clone the repository from GitHub, set up your Java environment, and run the server using the provided commands in the documentation.

  • Demonstrates the implementation of MCP server using Spring. - Provides sample configurations and setup instructions. - Easy to extend and modify for custom use cases.
  1. Learning how to implement a microservices communication server.
  2. Extending the sample for custom microservices applications.
  3. Testing and experimenting with MCP protocols in a controlled environment.

Add to your AI client

Use these steps to connect spring-mcp-server-sample in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "spring-mcp-server-sample-ricken07": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-spring-mcp-server-sample-ricken07"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "spring-mcp-server-sample-ricken07": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-spring-mcp-server-sample-ricken07"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "spring-mcp-server-sample-ricken07": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-spring-mcp-server-sample-ricken07"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "spring-mcp-server-sample-ricken07": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-spring-mcp-server-sample-ricken07"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "spring-mcp-server-sample-ricken07": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-spring-mcp-server-sample-ricken07"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "spring-mcp-server-sample-ricken07": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-spring-mcp-server-sample-ricken07"
      ]
    }
  }
}

FAQ

What is MCP?

MCP stands for Microservices Communication Protocol, which facilitates communication between microservices.

Is this project suitable for production use?

This is a sample project intended for learning and experimentation, not recommended for production use without modifications.

How can I contribute to this project?

You can contribute by submitting issues or pull requests on the GitHub repository.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2547,"uuid":"84670749-8654-4dbf-8ccb-9d416185429b","name":"spring-mcp-server-sample","title":"spring-mcp-server-sample","description":"MCP Server Sample","avatar_url":"https://avatars.githubusercontent.com/u/6693893?v=4","created_at":"2025-03-13T08:44:30.613Z","updated_at":"2025-03-23T14:44:08.050Z","status":"created","author_name":"ricken07","author_avatar_url":"https://avatars.githubusercontent.com/u/6693893?v=4","tags":"spring-mcp,server,sample","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/ricken07/spring-mcp-server-sample","target":"_self","content":"# spring-mcp-server-sample\nMCP Server Sample","summary":"$29","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"Java\",\"is_official\":false,\"latest_commit_time\":\"2025-03-11 15:48:20\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]