About Spring MCP Server
A basic MCP server built with Spring-AI for developers working with Java and Spring. It exposes an appointment-scheduling tool that can be inspected and called over SSE.
Key features
- 01Built with Spring-AI
- 02Appointment scheduling tool
- 03SSE transport
- 04Default port 8080
Use cases
- 01Inspect the server with MCP Inspector
- 02Call the appointment tool with a hospital name
MCP support
Exposes the scheduleAppointment tool to MCP clients over SSE at /sse. The README shows how to connect using MCP Inspector.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMESpring MCP Server
Basic MCP service using Spring-AI.
RUN
Run main java application and check run port. default is 8080. Then Run
# MCP service Inspector
npx @modelcontextprotocol/inspector node build/index.js
1. Select Transport type - SSE
2. URL : http://localhost:8080/sse
3. Click Connect
You will see under Tools option, method scheduleAppointment
You can send Hospital name as param and recieve return result.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.