mcp_demo
Verified Safeby cubeguerrero
Overview
This is a demo MCP server built with Vert.x and the MCP Java SDK, showcasing both blocking and non-blocking tool implementations for concurrent request handling.
Installation
./gradlew runEnvironment Variables
- MCP_PORT
- MCP_BASE_URL
Security Notes
The database connection details (host, port, database name, username, password) are hardcoded directly in `MySqlClientProducer.java`. While acceptable for a local demo, this is a critical security vulnerability for any non-demo or production deployment, as it exposes sensitive credentials. No 'eval' or similar dangerous patterns were found. The server exposes an `/mcp` endpoint and `/health` check on a configurable port, which is standard for a server.
Similar Servers
mcp-server-n8n
Provides a Model Context Protocol (MCP) server for n8n to expose custom tools, starting with a mathematical expression evaluator.
mysql_mcp_server
This server provides a Model Context Protocol (MCP) interface to a MySQL database, enabling AI models to execute SQL queries and retrieve database schema information.
MCPCalculatorSample
Provides a sample Model Context Protocol (MCP) server with a calculator tool and a dynamic greeting resource, designed for integration with a VS Code Cline agent.
MCP-Server
Provides a calculator tool via the Model Context Protocol (MCP) for inter-process communication, typically serving AI agents or other applications requiring specialized tooling.