This project provides a basic Model Context Protocol (MCP) server implemented in Java. It allows clients, such as Claude Desktop, to interact with a Java-based backend via the MCP specification.
What it does
It serves as a foundational MCP server, demonstrating how to build an MCP server in Java. It's designed to be integrated into an MCP client's configuration to provide custom context or functionality.
How to use
Build the project
To build the server, you need Maven installed. Navigate to the project directory and run:
mvn clean package
This will create an executable JAR file, typically in the target/ directory.
Configure an MCP client (e.g., Claude Desktop)
Once built, you can configure your MCP client to use this server. An example configuration for Claude Desktop is provided below. You will need to adjust the JAR file path to match your local setup.
{
"mcpServers": {
"java-mcp": {
"command": "java",
"args": [
"-jar",
"/path/to/your/java-mcp-server-1.0-SNAPSHOT-with-dependencies.jar"
]
}
}
}
Replace /path/to/your/java-mcp-server-1.0-SNAPSHOT-with-dependencies.jar with the actual path to the JAR file generated by the build process.
Recommend MCP Servers 💡
excel-to-json-mcp
MCP Server converting Excel and CSV data into JSON
sqlite-explorer
An MCP server that provides safe, read-only access to SQLite databases through Model Context Protocol (MCP). This server is built with the FastMCP framework, which enables LLMs to explore and query SQLite databases with built-in safety features and query validation.
screenshotone
An official MCP server implementation for the ScreenshotOne API, enabling AI models to render website screenshots.
figma-mcp
MCP server for Figma that provides access to Figma files and design assets via standardized interface.
@gongrzhe/quickchart-mcp-server
A Model Context Protocol server for generating charts using QuickChart.io
a11y-mcp
An MCP server for performing accessibility audits on webpages using axe-core