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
mcp-servers
A curated collection of Model Context Protocol (MCP) server configurations to integrate various developer tools and services with AI agents.
tmcp
A server implementation for the Model Context Protocol (MCP) to enable LLMs to access external context and tools.
mcp-annotated-java-sdk
Annotation-driven framework for building Model Context Protocol (MCP) servers in Java, simplifying the definition and integration of resources, prompts, and tools for LLM applications.
solon-ai-embedded-examples
Provides examples of integrating AI functionalities (LLM interaction, RAG, Agent, and Model Context Protocol server/client) within various Java web frameworks.