- Explore MCP Servers
- spring-ai-apps
Spring Ai Apps
What is Spring Ai Apps
spring-ai-apps is a project that showcases sample applications integrating AI capabilities within a Spring Boot framework, utilizing the Spring AI library.
Use cases
Use cases include building chatbots, AI-driven data analysis tools, and enhancing existing applications with AI functionalities.
How to use
To use spring-ai-apps, clone the repository and run the applications locally using the Spring Maven Plugin with the command ‘mvn spring-boot:run’. Make sure to export your AI model API key before running the app.
Key features
Key features include seamless integration with AI models, support for various AI frameworks, and a demonstration of architecture for client/server applications.
Where to use
spring-ai-apps can be used in various fields such as software development, AI research, and educational purposes to demonstrate AI integration in applications.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Spring Ai Apps
spring-ai-apps is a project that showcases sample applications integrating AI capabilities within a Spring Boot framework, utilizing the Spring AI library.
Use cases
Use cases include building chatbots, AI-driven data analysis tools, and enhancing existing applications with AI functionalities.
How to use
To use spring-ai-apps, clone the repository and run the applications locally using the Spring Maven Plugin with the command ‘mvn spring-boot:run’. Make sure to export your AI model API key before running the app.
Key features
Key features include seamless integration with AI models, support for various AI frameworks, and a demonstration of architecture for client/server applications.
Where to use
spring-ai-apps can be used in various fields such as software development, AI research, and educational purposes to demonstrate AI integration in applications.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
Spring AI Apps Project 
This project demonstrates the integration of AI capabilities within a Spring Boot application, utilizing the Spring AI framework.
Table of Contents
Running the application
You can always run all the apps locally with Spring Maven Plugin support:
mvn spring-boot:run
Sometimes, you would have to connect the app with the AI model. It can be OpenAI or your preferred model. Before running the app you should export the API token as shown below.
export SPRING_AI_OPENAI_API_KEY=<YOUR_OPENAI_API_KEY>
Architecture
MCP Client/Server
The example is available in the spring-ai-mcp directory. Here’s the diagram that visualizes architecture.

Articles
- Getting started with the Spring AI MCP concept. Implement a client-side and a server-side application that exposes
@ToolsandPromptsto other services. The example is available in the branch master. A detailed guide may be found in the following article: Using Model Context Protocol (MCP) with Spring AI
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










