drio
Open app

Template project to build MCP server using SpringBoot

Source

Catalog onlyCatalog onlySTDIO

Overview

MCP Server Template is a project template designed to help developers build a server using SpringBoot for the MCP (Multi-Channel Platform).

To use the MCP Server Template, clone the repository from GitHub, configure it in your MCP client by modifying the claude_desktop_config.json file, and run the server using the provided command structure.

  • Provides a structure to expose features as REST endpoints for testing outside the MCP client. - Includes an example task feature that serves as a guideline for building new tools/resources, complete with unit and integration tests.
  1. Building custom tools for the MCP environment.
  2. Testing REST endpoints independently from the MCP client.
  3. Developing and integrating new features into the MCP server.

Add to your AI client

Use these steps to connect Template project to build MCP server using SpringBoot 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": {
    "mcp-server-template-gopinathmr": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-template-gopinathmr"
      ]
    }
  }
}

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": {
    "mcp-server-template-gopinathmr": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-template-gopinathmr"
      ]
    }
  }
}

Claude Code

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

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-server-template-gopinathmr": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-template-gopinathmr"
      ]
    }
  }
}

VS Code (Copilot)

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

.vscode/mcp.json

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

Windsurf

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

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-server-template-gopinathmr": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-template-gopinathmr"
      ]
    }
  }
}

Cline

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

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-server-template-gopinathmr": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-template-gopinathmr"
      ]
    }
  }
}

FAQ

What is the purpose of the MCP Server Template?

The MCP Server Template serves as a foundational structure for developers to create and test their own servers within the MCP ecosystem.

How do I configure the server in the MCP client?

You need to edit the `claude_desktop_config.json` file to include your server's configuration details.

Is there any documentation available?

Yes, the repository includes a README file with instructions and examples.