Spring-AI-showcase-with-simple
A Spring AI showcase with Chat and MCP-Server to experiment with the tools, ressources and prompts.
claude mcp add --transport stdio schieblerchris-spring-ai-showcase-with-simple-mcp-server docker run -i schieblerchris/spring-ai-showcase-with-simple:latest
How to use
This MCP server exposes a small set of real-time date and time utilities (DateTimeTools) that a local LLM can call to obtain current temporal information. The tools include endpoints to fetch the current time, current date, current year, and the current weekday. The server is designed to act as an aggregation layer so your LLM can request real-time data without maintaining it locally. To use it, run the containerized server (or the recommended docker-compose setup) and connect your LM Studio or any MCP-capable client to the provided MCP endpoint. Once connected, the tools will appear as available capabilities that your LLM can invoke in prompts to enrich responses with fresh temporal data.
How to install
Prerequisites:
- Docker or Podman installed
- Optional: Docker Compose if you want to run the multi-service setup locally
- Basic knowledge of running MCP servers locally
Option A — Run with Docker (single container):
- Pull and run the image directly (as per the repository’s suggested image): docker run -d --name spring-ai-showcase -p 58090:58090 schieblerchris/spring-ai-showcase-with-simple:latest
- Verify the service is up by curling the MCP endpoint: curl http://localhost:58090/mcp
- In your LM Studio or MCP client, register the server at http://localhost:58090/mcp using the mcp.json configuration provided in the repository.
Option B — Run with Docker Compose (recommended for local database and multi-service setup):
- Navigate to the docker folder containing docker-compose.yml
- Start services: docker-compose up -d
- Access the MCP endpoint at http://localhost:58090/mcp (or as defined in the compose file) and ensure the tools are exposed to your LLM.
Option C — Local build (Java, if you prefer not to use Docker):
- Ensure JDK 21+ and Maven installed
- Build the project: mvn clean package -DskipTests
- Run the Spring Boot application (adjust the path to the built jar as needed): java -jar target/spring-ai-showcase-with-simple-0.0.1-SNAPSHOT.jar
- The MCP API should be available at the configured port (commonly http://localhost:58090/mcp).
Note: The README suggests using Docker Compose for local deployment, especially to host the accompanying database. Adjust ports and image names as needed for your environment.
Additional notes
Tips and considerations:
- If you encounter network issues with LM Studio, ensure the MCP endpoint is reachable from your network and that any firewalls allow the port used by the server.
- The tools exposed by this MCP server are limited to DateTimeTools (current time, date, year, weekday). If you need additional utilities, you may extend the server with more endpoints.
- In a multi-user or networked environment, consider configuring LM Studio’s mcp.json with the same endpoint you expose in your docker-compose setup.
- If using Docker, ensure the image tag matches the latest release or your built image version to avoid compatibility issues with Spring AI 1.x.
- When running behind a proxy, you may need to configure the proxy settings for Docker or Java accordingly.
Related MCP Servers
azure-ai-travel-agents
A robust enterprise application sample (deployed on ACA) that leverages MCP and multiple AI agents orchestrated by Langchain.js, Llamaindex.TS and Microsoft Agent Framework.
RelaMind
基于 AI 的个人成长轨迹分析系统,通过记录生活、回顾历史、分析模式帮助用户更好地理解自己,实现持续成长。包含智能路由、RAG 检索、自主任务智能体等功能。
wanaku
Wanaku MCP Router
api2mcp4j
This is a revolutionary AI MCP plugin with excellent pluggable and encapsulated features. With just a few lines of configuration, it can easily integrate into your Spring boot web program and give it MCP capabilities,inheriting the powerful engineering capabilities of the Spring series framework
maven-tools
MCP server providing AI assistants with Maven Central dependency intelligence for all JVM build tools (Maven, Gradle, SBT, Mill). Features Context7 integration for documentation support.
mcp -steam
MCP Server for interacting with Steam