mcp-java-sdk-examples

A collection of MCP server examples developed by various Java SDKs

GitHubスター

22

ユーザー評価

未評価

お気に入り

0

閲覧数

8

フォーク

3

イシュー

1

README
MCP Server Examples

A collection of MCP examples developed by various SDKs. As of now, the following SDKs are supported.

Requirements
  • Java 17 or later (Restricted by MCP Java SDK)
What is MCP?

The 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 here.

Examples

If you are looking for servers implemented with Typescript MCP SDK or Python MCP SDK, see here.

These servers aim to demonstrate MCP features and the MCP Java SDK.

  • Filesystem - Secure file operations with configurable access controls