Overview
java-mcp-server is a demo project developed using the official MCP-JAVA-SDK, showcasing its capabilities and functionalities.
To use java-mcp-server, clone the repository from GitHub, set up the environment according to the instructions provided in the README, and run the server to explore its features.
- Demonstrates the use of MCP-JAVA-SDK for server development - Provides a basic structure for building applications using the SDK - Includes example configurations and setup instructions
- Learning how to implement server functionalities using MCP-JAVA-SDK
- Building custom applications based on the demo structure
- Experimenting with server configurations and features provided by the SDK
Add to your AI client
Use these steps to connect java-mcp-server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"java-mcp-server-kobeyk": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-java-mcp-server-kobeyk"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"java-mcp-server-kobeyk": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-java-mcp-server-kobeyk"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"java-mcp-server-kobeyk": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-java-mcp-server-kobeyk"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"java-mcp-server-kobeyk": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-java-mcp-server-kobeyk"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"java-mcp-server-kobeyk": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-java-mcp-server-kobeyk"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"java-mcp-server-kobeyk": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-java-mcp-server-kobeyk"
]
}
}
}FAQ
What is MCP-JAVA-SDK?
MCP-JAVA-SDK is a software development kit that provides tools and libraries for building Java applications.
Is java-mcp-server free to use?
Yes! java-mcp-server is open-source and available under the MIT license.
Where can I find the documentation?
Documentation can be found in the GitHub repository's README file.