Facilitates the creation of an MCP server leveraging Spring AI for interacting with external tools and resources.
Sponsored
This project provides a Spring Boot integration with the Model Context Protocol (MCP), enabling AI models to interact with external tools and resources in a standardized manner. It extends the MCP Java SDK with Spring Boot starters for both client and server, and includes an example MCP server that connects to a PostgreSQL database, exposing tools to fetch data based on LLM prompts. It integrates with Spring AI to let an LLM decide which tool to use based on a given prompt.
主要功能
01Exposes tools for LLMs to interact with external data sources.
020 GitHub stars
03Uses Spring Data JPA for database interaction.
04Supports multiple MCP transport mechanisms (stdio, SSE).
05Spring Boot integration for MCP client and server.
使用案例
01Creating custom tools that can be invoked by LLMs based on prompts.
02Connecting LLMs to databases for data retrieval.
03Building AI-powered applications that interact with external services.