springai-kata-mcp

scalasm/springai-kata-mcp

3.2

If you are the rightful owner of springai-kata-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This document provides a structured summary of a Model Context Protocol (MCP) server using Spring Boot and MCP integration.

Spring-AI kata (MCP Server))

This is my sandbox for experimenting with MCP servers using Spring Boot and MCP integration.

In addition to this Spring AI MCP Server, there are three kata repositories in this series, to keep things a bit separated:

Requirements

  • JDK 21 or better
    • I use Amazon Corretto 21 but anything should be fine
  • Apache Maven 3.9.x
  • OPENAI API Key - to be obtained by the Open AI Console
    • ensure there is an environment variable called OPENAI_API_KEY set and your will be ready to go!
  • NINJAS_API_KEY - to be obtained from API Ninjas - the free tier is ok!

How to run

Option 1 - from Visual Studio Code

A launch configuration is provided for Visual Studio Code - just create a .env file in the workspace root with you OPENAPI_API_KEY set.

Option 2 - Command line

mvn spring-boot:run

How to test

You have a few options:

  1. Configure the MCP Server in your VSCode environment See for a ready-to-use example - you configure the URL for your MCP server.
  2. Use postman - new Postman include support for inspecting your MCP servers

References