spring-ai-mcp-server

spring-ai-mcp-server

3.4

Spring Boot Starter for SWAPI MCP Servers with Spring AI is a project that integrates Spring Boot with Model Context Protocol (MCP) servers, utilizing Spring AI for enhanced functionality.

The Spring Boot Starter for SWAPI MCP Servers with Spring AI is designed to facilitate the development of MCP servers using the Spring Boot framework. It leverages the capabilities of Spring AI to provide a robust and scalable solution for managing model context protocols. The project includes various branches, each focusing on different aspects such as YAML settings, tool creation, server prompts, resources, samples, roots, completion, and security. The integration of Spring AI allows for advanced features and functionalities, making it easier for developers to implement MCP servers efficiently. The project also includes tools and resources to aid in the development process, ensuring a comprehensive solution for MCP server implementation.

Features

  • Integration with Spring AI for enhanced MCP server functionality.
  • Support for YAML settings and Dockerfile configuration.
  • Tools and custom converters for SWAPI integration.
  • Security features with OAuth2 server implementation.
  • Comprehensive resources and samples for development guidance.

Usage with Different Platforms

spring_boot

java
@SpringBootApplication
public class SwapiMcpServerApplication {
    public static void main(String[] args) {
        SpringApplication.run(SwapiMcpServerApplication.class, args);
    }
}

docker

dockerfile
FROM openjdk:17-jdk-alpine
VOLUME /tmp
COPY target/swapi-mcp-server.jar app.jar
ENTRYPOINT ["java","-jar","/app.jar"]