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 💡
go-archer
A Go-based tool that inspects and analyzes package dependencies within a project, capable of running as an MCP server to provide dependency graph information.
h0rv/d2-mcp
A Model Context Protocol (MCP) server for working with D2: Declarative Diagramming, enabling seamless integration of diagram creation and validation into your development workflow.
mcp-geocoder-rosetta
Geocoder MCP server implementations in Python and TypeScript using Google Maps API
raj-mehra/jira-mcp
Jira integration server providing ticket fetching and searching via MCP framework
gitlab-mr-mcp
Interact seamlessly with GitLab repositories to manage merge requests and issues.
domain-tools-mcp-server
A Model Context Protocol (MCP) server for comprehensive domain analysis, including WHOIS lookups, DNS record queries, and DNS health checks.