Back to Home
RolleRocker icon

mcp-demo-server

Verified Safe

by RolleRocker

Overview

Demonstrates the Model Context Protocol (MCP) capabilities by offering tools for arithmetic, note management, weather queries, and file system operations, along with dynamic resources and prompt templates.

Installation

Run Command
java -jar build/libs/mcp-demo-server.jar

Security Notes

The server implements file system operations (`read_file`, `write_file`, `list_directory`). Path traversal attempts ('..') and access to known sensitive system directories (`/etc`, `/sys`, `/proc`) are explicitly mitigated by the `FilePathValidator` in the domain layer. No hardcoded secrets or direct remote code execution vulnerabilities were identified. The external weather API (Open-Meteo) is free and does not require an API key. File I/O operations inherently carry risk, but the explicit validations enhance safety.

Similar Servers

Stats

Interest Score0
Security Score7
Cost ClassLow
Avg Tokens100
Stars0
Forks0
Last Update2025-12-27

Tags

MCPJavaDeveloper ToolsAI AgentHexagonal Architecture