Back to Home
daydayup-zyn icon

streamable-http-mcp-server

Verified Safe

by daydayup-zyn

Overview

This project provides a Spring Boot starter for integrating MCP (Model Controller Protocol) services, enabling developers to define HTTP API functions using annotations.

Installation

Run Command
mvn spring-boot:run -pl streamable-http-mcp-demo

Security Notes

The server dynamically invokes methods based on user input (tool name and arguments). However, this is constrained to methods explicitly annotated with `@McpFunction` on registered Spring beans, limiting the attack surface to defined functions. Parameter conversion is basic and limited to primitive types. There are no obvious `eval` or arbitrary code execution vulnerabilities. The usage of `ThreadLocal` for `HttpServletRequest` is standard. Compatibility with Spring Boot 2.1.x is noted, which is an old version and might pose security risks if not updated/patched properly, but this is an environmental concern, not a code-level vulnerability in the provided snippets.

Similar Servers

Stats

Interest Score30
Security Score8
Cost ClassLow
Avg Tokens50
Stars1
Forks0
Last Update2025-11-25

Tags

Spring BootMCPHTTP APIAnnotation-drivenJava