https://github.com/codeboyzhou/mcp-java-sdk-examples
MCP Server Examples: Built with native MCP Java SDK (No Spring Framework)
https://github.com/codeboyzhou/mcp-java-sdk-examples
example java17 mcp model-context-protocol
Last synced: about 1 year ago
JSON representation
MCP Server Examples: Built with native MCP Java SDK (No Spring Framework)
- Host: GitHub
- URL: https://github.com/codeboyzhou/mcp-java-sdk-examples
- Owner: codeboyzhou
- License: mit
- Created: 2025-03-28T15:55:06.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-29T11:25:57.000Z (about 1 year ago)
- Last Synced: 2025-03-29T11:29:31.300Z (about 1 year ago)
- Topics: example, java17, mcp, model-context-protocol
- Language: Java
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
Awesome Lists containing this project
- awesome-mcp-servers - **mcp-java-sdk-examples** - A collection of MCP server examples developed by various Java SDKs `java` `example` `java17` `mcp` `mcp-server` `git clone https://github.com/codeboyzhou/mcp-java-sdk-examples` (🔌 API)
README
= MCP Server Examples
Built Using Native https://github.com/modelcontextprotocol/java-sdk[MCP Java SDK] – No Spring Framework Required.
== Requirements
- Java 17 or later (Restricted by MCP Java SDK)
== What is MCP?
The https://modelcontextprotocol.io[Model Context Protocol (MCP)] lets you build servers that expose data and functionality to LLM applications in a secure, standardized way. Think of it like a web API, but specifically designed for LLM interactions. MCP servers can:
- Expose data through **Resources** (think of these sort of like GET endpoints; they are used to load information into the LLM's context)
- Provide functionality through **Tools** (sort of like POST endpoints; they are used to execute code or otherwise produce a side effect)
- Define interaction patterns through **Prompts** (reusable templates for LLM interactions)
- And more!
You can start exploring everything about *MCP* from https://modelcontextprotocol.io[here].
== Examples
These servers aim to demonstrate MCP features and the MCP Java SDK.
- https://github.com/codeboyzhou/mcp-java-sdk-examples/blob/main/mcp-server-filesystem/README.adoc[Filesystem] - Secure file operations with configurable access controls