Spring Ai MCP Test
This project demonstrates how to integrate MCP support of Spring AI in a Spring Boot application, including geocoding and time zone query services, and provides geographic location information through LLM interaction.
rating : 2.5 points
downloads : 14
What is the MCP Host Project?
This project demonstrates how to integrate MCP (Model Context Protocol) support of Spring AI in a Spring Boot application, including the implementation of the server and client. MCP is a standardized protocol for managing the interaction between AI models and external data sources.How to use the MCP Host Project?
It works through the collaboration of three modules: the geocoding service to obtain city coordinates, the time zone service to obtain location time zone information, and the MCP host as an interactive interface to communicate with the LLM.Applicable scenarios
It is suitable for scenarios where geographic information query functions need to be integrated into AI dialogue systems, such as intelligent customer service and travel assistant applications.Main features
Geocoding serviceProvides the function of converting city names to latitude and longitude
Time zone query serviceReturns detailed time zone information based on latitude and longitude
MCP protocol integrationConnects AI models with geographic information services through a standardized protocol
Advantages and limitations
Advantages
The standardized protocol ensures system compatibility
The modular design facilitates function expansion
Out-of-the-box Spring Boot integration
Limitations
Requires an LLM model that supports the TOOLS function
Currently only supports geographic information query scenarios
How to use
Start the geocoding service
Run the service in the geocoder directory
Start the time zone service
Run the service in the timezone directory
Start the MCP host
Run the main application in the mcp-host directory
Interactive query
Enter the city name in the console to get geographic and time zone information
Usage examples
Query city geographic informationGet the latitude, longitude, and time zone details of a specified city
Frequently Asked Questions
What version of Java is required?
Which LLM models are supported?
Related resources
Spring AI MCP documentation
Official MCP integration documentation
MCP Java SDK
Java implementation of the MCP protocol
Featured MCP Services

Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
148
4.5 points

Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
837
4.3 points

Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
1.7K
5 points

Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
96
4.3 points

Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
572
5 points

Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
6.7K
4.5 points

Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
286
4.5 points

Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
760
4.8 points