rest-mcp-server

rest-mcp-server

3.3

SpringBoot-MCP is a zero-configuration tool for automatically exposing Spring Boot endpoints as Model Context Protocol (MCP) tools.

SpringBoot-MCP is designed to seamlessly integrate with Spring Boot applications, allowing developers to expose their REST endpoints as MCP tools without any additional configuration. This tool automatically discovers all REST endpoints within a Spring Boot application and converts them into MCP tools, preserving the schemas of request and response models. It simplifies the process of setting up an MCP server by mounting it directly to the application, making it accessible via a standard URL. This integration is particularly useful for developers looking to leverage MCP technology in their applications, providing a straightforward way to connect with MCP clients using SSE or stdio protocols. The tool is compatible with Java 21 or higher and requires Spring Boot 3.x.

Features

  • {'name': 'Direct integration', 'description': 'Mount an MCP server directly to your Spring Boot application with zero configuration.'}
  • {'name': 'Automatic discovery', 'description': 'Automatically discovers all Spring REST endpoints and converts them to MCP tools.'}
  • {'name': 'Preserving schemas', 'description': 'Preserves the schemas of your request and response models.'}

Usage with Different Platforms

maven

<dependency>
    <groupId>com.github.imthath-m</groupId>
    <artifactId>rest-mcp-server</artifactId>
    <version>0.2.1</version>
</dependency>
<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

cursor

{
    "mcpServers": {
      "server-name": {
        "url": "http://localhost:8080/sse"
      }
    }
}