Spring AI Apps Project
About
Spring AI Apps Project is a Spring Boot application that demonstrates integrating AI capabilities using the Spring AI framework. It provides a reference implementation of the Model Context Protocol (MCP) with a client-side and a server-side application that expose @Tools and…
Explore
- Integrates AI via the Spring AI framework
- Implements Model Context Protocol (MCP)
- Exposes @Tools and Prompts from server to client
- Provides a client-side and server-side MCP application
- Runs as a Spring Boot application with Maven
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>
This project demonstrates the integration of AI capabilities within a Spring Boot application, utilizing the Spring AI framework.
-----
Table of Contents
- Architecture
- Running the Application
- Articles
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.
<br/>
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



