MCP_SERVER_JAVA
by cobra30299
Overview
A Model Context Protocol (MCP) server implementation in Java, demonstrating core MCP features with tools, resources, and prompts, including an AI chat integration.
Installation
java -jar target/mcp-server-java-1.0.0.jar --httpEnvironment Variables
- AZURE_OPENAI_API_KEY
- AZURE_OPENAI_ENDPOINT
- AZURE_OPENAI_DEPLOYMENT
Security Notes
The server is explicitly rated as 'HIGH RISK for Production Use' in its own documentation due to critical vulnerabilities. It lacks authentication, has open CORS ('Access-Control-Allow-Origin: *'), does not support HTTPS (HTTP only), and has insufficient input validation. Error messages can expose internal details. By default, it binds to all network interfaces (0.0.0.0), making it publicly accessible without security measures.
Similar Servers
tmcp
Build Model Context Protocol (MCP) servers for AI agents, providing schema-agnostic tools, resources, and prompts, with optional OAuth 2.1 authentication and distributed session management.
mcp-servers
Provides a curated collection of Model Context Protocol (MCP) server configurations to enable AI agents to interact with various developer tools and services.
mcp-servers
Provides current weather conditions and forecasts from the Open-Meteo API for a given geographical location.
polybrain-mcp
Connects AI agents to multiple LLM models, providing conversation history management and model switching capabilities.