toedter
MCP Servertoedterpublic

spring ai mcp server

A demo mcp server

Repository Info

2
Stars
0
Forks
2
Watchers
1
Issues
Java
Language
Apache License 2.0
License

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

  1. Build the MCP server

    ./gradlew build
    
  2. 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.
  3. Configure Claude Desktop

    • Edit the claude_desktop_config.json file.

    • Add or update the mcpServers section 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-desktop directory. Where to put in using different operating systems, you find at https://modelcontextprotocol.io/quickstart/user.

  4. Start Claude Desktop

    • Launch Claude Desktop.
    • Click on the "Search and Tools" icon and check if you see "mcp-demo-stdio".
  5. 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?

License

Apache 2.0

Quick Start

1

Clone the repository

git clone https://github.com/toedter/spring-ai-mcp-server
2

Install dependencies

cd spring-ai-mcp-server
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownertoedter
Repospring-ai-mcp-server
LanguageJava
LicenseApache License 2.0
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation