
spring ai mcp server
A demo mcp server
Repository Info
About This Server
A demo mcp server
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Spring AI MCP Demos
Several MCP demos (like an mcp server) written in Java with Spring Boot 3.5.x and Spring AI.
How to run the mcp server
-
Build the MCP server
./gradlew build -
Download and install Claude Desktop
- Go to https://claude.ai/download
- Download the latest release for your operating system and extract it.
- Make sure to disable Web access in the settings of Claude Desktop.
-
Configure Claude Desktop
-
Edit the
claude_desktop_config.jsonfile. -
Add or update the
mcpServerssection to include:{ "mcpServers": { "demo-local": { "command": "java", "args": [ "-jar", "D:\\dev\\git\\spring-ai-mcp-demos\\mcp-server\\build\\libs\\mcp-server-0.0.1-SNAPSHOT.jar", "--spring.profiles.active=stdio" ] } } }Adjust the path to the JAR file as needed. The example shows a Windows config. Then copy the file to the appropriate
claude-desktopdirectory. Where to put in using different operating systems, you find at https://modelcontextprotocol.io/quickstart/user.
-
-
Start Claude Desktop
- Launch Claude Desktop.
- Click on the "Search and Tools" icon and check if you see "mcp-demo-stdio".
-
Use the demo
-
Interact with the MCP server through Claude Desktop’s UI.
-
In Claude Desktop you can ask questions like:
From which movies is Kai's favorite quote?
-
To integrate with a movie demo server, follow the steps below.
- Clone the movie demo repository:
git clone https://github.com/toedter/spring-hateoas-jsonapi.git cd spring-hateoas-jsonapi ./gradlew bootRun - The movie demo server will start on
http://localhost:8080. - In Claude Desktop you can now ask questions like:
How many movies directed by Quentin Tarantino are in the top 100?Which movies directed by Christopher Nolan are in the top ten?
- Clone the movie demo repository:
-
License
Apache 2.0
Quick Start
Clone the repository
git clone https://github.com/toedter/spring-ai-mcp-serverInstall dependencies
cd spring-ai-mcp-server
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.