Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"unicorn-mcp-server": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
No description provided.
This server is thin — proceed with caution. Help improve this page →
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationBe the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in other
Pi Coding Agent extension (CLI-first) — routes bash/read/grep/find/ls through lean-ctx CLI for strong token savings. Optional MCP bridge can register advanced tools.
Apify MCP Server
97% token reduction for AI coding sessions — zero deps, 21 languages, MCP server
MCP proxy that compresses prose fields (tool descriptions, etc.) using caveman rules. Same accuracy, fewer context tokens.
MCP Security Weekly
Get CVE alerts and security updates for Unicorn Mcp Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A Spring AI MCP (Model Context Protocol) server that exposes unicorn rental tools — pricing calculator, booking management, and date/time utilities — over Streamable HTTP transport.
| Tool | Description |
|---|---|
calculatePrice | Returns a full cost breakdown for a unicorn rental |
createBooking | Books a unicorn rental and persists it to H2 |
getBookings | Retrieves all bookings for a customer |
getCurrentDateTime | Gets current date/time in a given timezone |
hoursUntil | Calculates hours between now and a future date |
resolveRelativeDate | Resolves "tomorrow", "Saturday", etc. to a date |
./mvnw clean package
./mvnw spring-boot:run
Server starts on http://localhost:8083. MCP endpoint: http://localhost:8083/mcp
If you're here to turn your existing Spring Boot app into an MCP server — you're 3 steps away. You don't rewrite your code — you expose it.
Swap in (or add) the Spring AI MCP Server starter. This gives your app a /mcp endpoint that speaks JSON-RPC 2.0 over Streamable HTTP — the wire protocol MCP uses under the hood.
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-starter-mcp-server-webmvc</artifactId>
</dependency>
spring.ai.mcp.server.name=my-mcp-server
spring.ai.mcp.server.version=1.0.0
spring.ai.mcp.server.protocol=STREAMABLE
That's the entire infrastructure change. No custom controllers, no manual JSON-RPC handling.
@ToolTake any existing Spring bean method and add @Tool + @ToolParam. This is what makes your logic discoverable by any MCP client.
@Component
public class PricingCalculatorTool {
@Tool(description = "Calculate the total cost for a unicorn rental")
public String calculatePrice(
@ToolParam(description = "Name of the rental package") String packageName,
@ToolParam(description = "Price per unit") int pricePerUnit,
@ToolParam(description = "Number of hours or days") int duration,
@ToolParam(description = "Include optional insurance") boolean includeInsurance) {
// your existing business logic — unchanged
}
}
Already have service classes with business logic? Just add the annotations. The method signatures become the tool's input schema — MCP clients see parameter names, types, and descriptions automatically.
ToolCallbackProviderTell Spring AI which beans to expose over MCP:
@Configuration
public class McpServerConfig {
@Bean
public ToolCallbackProvider toolCallbackProvider(DateTimeTool dateTimeTool,
PricingCalculatorTool pricingCalculatorTool,
BookingTool bookingTool) {
return MethodToolCallbackProvider.builder()
.toolObjects(dateTimeTool, pricingCalculatorTool, bookingTool)
.build();
}
}
Done. Spring Boot auto-configures the MCP endpoint. Any MCP client can now connect, discover your tools, and call them.
MCP uses JSON-RPC 2.0 as its wire format — every message is a JSON object with method, params, and id:
| Client sends | Server responds with |
|---|---|
"method": "initialize" | Session ID + server capabilities |
"method": "tools/list" | All registered tools with their schemas |
"method": "tools/call" | Tool execution result |
The session is stateful — the server returns an Mcp-Session-Id header on initialize,