java-mcp-server
Verified Safeby mldangelo
Overview
A server that exposes custom tools (like a calculator or greeting service) via gRPC for consumption by other applications.
Installation
java -jar target/simple-tool-server-1.0-SNAPSHOT.jarSecurity Notes
The gRPC server uses plaintext communication by default (no TLS/SSL), which is explicitly stated for simplicity in the example. This is a critical security risk for any deployment handling sensitive data or operating over untrusted networks. While input validation and error handling for tool parameters (e.g., number parsing, division by zero) are present, the fundamental network transport security is absent in the default configuration. The SimpleToolServer variant (JSON-RPC over stdin/stdout) implies a trusted local execution environment, where network risks are less relevant.
Similar Servers
tinystruct-mcp
A modular Java server providing a JSON-RPC interface for file system and Git/GitHub operations, aimed at automation and DevOps workflows.
openwebui-tool-server
Provides a unified API endpoint for various tools (calculator, multiple web search engines, webpage content extraction) that can run in either OpenAPI or MCP (Multi-Modal Communicative Protocol) mode.
streamable-http-mcp-server
This project provides a Spring Boot starter for integrating MCP (Model Controller Protocol) services, enabling developers to define HTTP API functions using annotations.
mcp-fastmcp-starter
Provides a minimal, production-minded MCP-shaped tool server for building agentic AI services with typed tool contracts and deterministic JSON I/O via FastAPI.