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…
Details
- Author
- kartikeyag
- Downloads
- 298
- Categories
- Other
Jump to
- 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
Run the application locally with the Spring Maven Plugin: mvn spring-boot:run. Before running, export your OpenAI API token as SPRING_AI_OPENAI_API_KEY. The MCP example is located in the spring-ai-mcp directory.
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
- 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.



