Spring MCP Server logo

Spring MCP Server

by ranjeet-floyd

A basic MCP service built using Spring-AI. It allows scheduling appointments by providing a hospital name as a parameter.

View on GitHub

Last updated: N/A

What is Spring MCP Server?

This is a Spring-based MCP (Model Context Protocol) service that leverages Spring-AI to enable appointment scheduling functionality.

How to use Spring MCP Server?

  1. Run the main Java application to start the server (default port 8080).
  2. Use the MCP service inspector: npx @modelcontextprotocol/inspector node build/index.js.
  3. Select SSE as the transport type.
  4. Enter the URL: http://localhost:8080/sse.
  5. Connect to the service.
  6. Under the 'Tools' option, find the scheduleAppointment method.
  7. Send the hospital name as a parameter to schedule an appointment.

Key features of Spring MCP Server

  • Appointment Scheduling

  • Spring-AI Integration

  • MCP Support

  • SSE Transport

  • Easy to use Inspector

Use cases of Spring MCP Server

  • Hospital appointment scheduling

  • Healthcare service integration

  • AI-powered scheduling systems

  • Demonstration of Spring-AI capabilities

FAQ from Spring MCP Server

What is MCP?

MCP stands for Model Context Protocol, a standard for interacting with AI models.

What is Spring-AI?

Spring-AI is a framework that simplifies the development of AI-powered applications using Spring.

How do I change the server port?

The default port is 8080. You can configure the port in your Spring application properties.

What parameters does scheduleAppointment accept?

Currently, it accepts the hospital name as a parameter.

Where can I find the build/index.js file?

The build/index.js file is likely generated during the build process of the MCP inspector. Please refer to the inspector documentation for details.