
This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A tutorial example pairing a Spring AI MCP server with an MCP client, where the server connects to PostgreSQL and exposes seller account search tools.
Spring AI MCP server example with PostgreSQL is cataloged as an MCP server attributed to kuldeepsingh99. A tutorial example pairing a Spring AI MCP server with an MCP client, where the server connects to PostgreSQL and exposes seller account search tools. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Spring AI MCP server example with PostgreSQL are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
The README notes stdio transport for local processes and command-line tools, and SSE transport for HTTP-based communication.
README.md · 771b684ceb2a · 采集于 2026-11-13 11:55:10 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
The Model Context Protocol (MCP) is a standardized protocol that enables AI models to interact with external tools and resources in a structured way. It supports multiple transport mechanisms to provide flexibility across different environments.
The MCP Java SDK provides a Java implementation of the Model Context Protocol, enabling standardized interaction with AI models and tools through both synchronous and asynchronous communication patterns.
Spring AI MCP extends the MCP Java SDK with Spring Boot integration, providing both client and server starters. Bootstrap your AI applications with MCP support using Spring Initializer.
The Java MCP implementation follows a three-layer architecture
Client/Server Layer: The McpClient handles client-side operations while the McpServer manages server-side protocol operations. Both utilize McpSession for communication management.
Session Layer (McpSession): Manages communication patterns and state through the DefaultMcpSession implementation.
Transport Layer (McpTransport): Handles JSON-RPC message serialization and deserialization with support for multiple transport implementations.
The MCP Client is a key component in the Model Context Protocol (MCP) architecture, responsible for establishing and managing connections with MCP servers.
The MCP Server is a foundational component in the Model Context Protocol (MCP) architecture that provides tools, resources, and capabilities to clients.
MCP follows a client-server architecture that revolves around several key components:
MCP Host: is our main application that integrates with an LLM and requires it to connect with external data sources
MCP Clients: are components that establish and maintain 1:1 connections with MCP servers
MCP Servers: are components that integrate with external data sources and expose functionalities to interact with them
Tools: refer to the executable functions/methods that the MCP servers expose for clients to invoke Additionally, to handle communication between clients and servers, MCP provides two transport channels.
To enable communication through standard input and output streams with local processes and command-line tools, it provides the Standard Input/Output (stdio) transport type. Alternatively, for HTTP-based communication between clients and servers, it provides the Server-Sent Events (SSE) transport type.
In this turorial MCP Server connects to Postgresql DB and its fetches data, we have also exposed two Tools in MCP Server. MCP Client connects to MCP Server and based on the Prompt LLM decides which Tool to connect.
Run docker-compose.yml file and run the table.sql to create table.
Download ollama and run any model as per you machine capacity
Download the mcp-server project and run it.
Important classes to note - SellerAccountTools
@Service
public class SellerAccountTools {
private final SellerAccountRepository sellerAccountRepository;
public SellerAccountTools(SellerAccountRepository sellerAccountRepository) {
this.sellerAccountRepository = sellerAccountRepository;
}
@Tool(name = "Search Seller account by name", description = "Find all Seller Accounts by name")
public String getAccountByName(
@ToolParam(description = "Seller Account Name") String name) {
List<SellerAccount> accountList = sellerAccountRepository.findByName(name);
StringBuilder result = new StringBuilder();
for (SellerAccount account : accountList) {
result.append(account.toString()).append("\n");
}
return result.toString();
}
@Tool(description = "Find all Seller Accounts by owner")
public String getAccountByOwner(
@ToolParam(description = "Seller Account owner") String owner) {
List<SellerAccount> accountList = sellerAccountRepository.findByOwner(owner);
StringBuilder result = new StringBuilder();
for (SellerAccount account : accountList) {
result.append(account.toString()).append("\n");
}
return result.toString();
}
}
Explanation
Download the mcp-client project and run.
Here you can observe that based on the prompt LLM is automatically selecting the right tool and returning the results and it also format it.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Spring AI MCP server example with PostgreSQL from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-server-with-spring-ai)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that lets AI assistants run SQL queries against AWS Athena databases and retrieve results.

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.