thought2code/mcp-java-sdk-examples
View on GitHub ↗A collection of MCP server examples developed with Java SDKs
33 ★7 forksJavaUpdated 18d ago
What you need to know
Examples of building MCP servers with the official Java SDK, including a MySQL MCP server example runnable via Docker Compose.
Install
Clone the repo and follow the Java SDK examples Docker Compose for the mcp-server-mysql example
Usage
- •Study the examples to build MCP servers with the Java SDK, or run the bundled MySQL example
Key features
- ✓Java SDK MCP server examples
- ✓Includes mcp-server-mysql example
- ✓Java 17+, Docker Compose
Best for
Learning to build MCP servers with the official Java SDK.
Reviewed 2026-08-11
Topics
examplejava17mcpmcp-servermodel-context-protocolsamples
- Stars
- 33★
- Forks
- 7
- Language
- Java
- License
- MIT
- Created
- 2025-03-28
- Last push
- 2026-08-17