{
"mcpServers": {
"mcp-server-java": {
"command": "<see-readme>",
"args": []
}
}
}No install config available. Check the server's README for setup instructions.
Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Is it safe?
No package registry to scan.
No authentication — any process on your machine can connect.
License not specified.
Is it maintained?
Last commit 126 days ago. 1 stars.
Will it work with my client?
Transport: stdio. Works with Claude Desktop, Cursor, Claude Code, and most MCP clients.
No automated test available for this server. Check the GitHub README for setup instructions.
No known vulnerabilities.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationHave you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Persistent memory using a knowledge graph
Privacy-first. MCP is the protocol for tool access. We're the virtualization layer for context.
Pre-build reality check. Scans GitHub, HN, npm, PyPI, Product Hunt — returns 0-100 signal.
Monitor browser logs directly from Cursor and other MCP compatible IDEs.
MCP Security Weekly
Get CVE alerts and security updates for MCP_SERVER_JAVA and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A Model Context Protocol (MCP) server implementation in Java, demonstrating the core MCP features including tools, resources, and prompts.
This MCP server provides:
Build the project using Maven:
mvn clean package
This will create an executable JAR file: target/mcp-server-java-1.0.0.jar
Export the Azure OpenAI API Key in Powershell :
$env:AZURE_OPENAI_API_KEY="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
Check that the environment variable is set
c:>echo $env:AZURE_OPENAI_API_KEY
🚀 Usage
java -jar target/mcp-server-java-1.0.0.jar --http
java -jar target/mcp-server-java-1.0.0.jar
Working Solution Step 1: Start the HTTP Server (in one terminal) java -jar target/mcp-server-java-1.0.0.jar --http (need http server to be running first)
Step 2: Run the Java Client (in another terminal) mvn exec:java "-Dexec.mainClass=com.example.mcp.client.McpJavaClient"
npx @modelcontextprotocol/inspector java -jar target/mcp-server-java-1.0.0.jar
create a npx test harness to check out and test the functionality !
HTTP JSON API Server started successfully!
API Endpoints:
http://localhost:8080/tools - List available tools
http://localhost:8080/tools/add - Add two numbers
http://localhost:8080/tools/multiply - Multiply two numbers
http://localhost:8080/tools/time - Get current time
http://localhost:8080/tools/greet - Greet by name
http://localhost:8080/tools/ai_chat - Chat with AI agent
curl -X GET http://localhost:8080/tools
curl -X POST http://localhost:8080/tools/add -H "Content-Type: application/json" -d '{"a":"7","b":"51"}'
curl -X POST http://localhost:8080/tools/multiply -H "Content-Type: application/json" -d '{"x":"7","y":"70"}'
curl -X GET http://localhost:8080/tools/time
curl -X POST http://localhost:8080/tools/greet -H "Content-Type: application/json" -d '{"name":"Steve"}'
curl -X POST http://localhost:8080/tools/ai_chat -H "Content-Type: application/json" -d '{"prompt": "What is Azure AI Foundry?"}'
curl -X POST http://localhost:8080/tools/ai_chat -H "Content-Type: application/json" -d '{"prompt": "Hello"}'
curl -X POST http://localhost:8080/tools/ai_chat -H "Content-Type: application/json" -d '{"prompt": "Explain Model Context Protocol in simple terms", "max_tokens": 200, "temperature": 0.5 }'
curl -X POST http://localhost:8080/tools/ai_chat -H "Content-Type: application/json" -d '{"prompt": "Write a haiku about coding", "max_tokens": 200, "temperature": 0.5 }'
🚀 Usage
java -jar target/mcp-server-java-1.0.0.jar --http
java -jar target/mcp-server-java-1.0.0.jar
in command prompt in git directory:
git status
On branch main
nothing to commit, working tree clean
PS C:\Users\stethompson\Microsoft\MCP_Server_Java> git init
Rei