Spring AI MCP Server demo

Spring AI MCP Server demo

spring-ai-mcp-server-toedter•bytoedter

A Spring Boot and Spring AI based MCP server demo that exposes movie and weather tools protected by an OAuth2 authorization server.

License: Apache License, Version 2.0•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Serves MCP tools including movies, weather, and diagnostics scopes over Streamable HTTP.
  • •Advertises its authorization server via protected resource metadata and narrows granted scopes to the user's permissions.

BEST FOR

  • •Testing OAuth2-protected MCP servers with the MCP Inspector and a chatbot.
  • •Demonstrating a full Java MCP stack with client, authorization server, and Angular chatbot.

ABOUT SPRING-AI-MCP-SERVER-TOEDTER

Spring AI MCP Server demo is cataloged as an MCP server attributed to toedter. A Spring Boot and Spring AI based MCP server demo that exposes movie and weather tools protected by an OAuth2 authorization server. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Apache License, Version 2.0. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Spring AI MCP Server demo are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What transport does the MCP server use?

It uses Streamable HTTP, reachable at the local MCP endpoint.

Which MCP tool scopes are available?

Scopes for tools, movies, weather, and diagnostics.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 0ae972bc0e2f · 采集于 2026-11-13 12:08:48 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Spring AI MCP Demos

Build License: Apache 2.0 License: MIT

This is a whole MCP stack written in Java with Spring Boot 4.0.x and Spring AI. It implements several demos for the MCP server, MCP client and an Angular chatbot using deep-chat.

Chatbot

Prepare your LLM

Edit the mcp-client/src/main/resources/application.yaml file and set your OpenAI settings. If you want to use a local model, you could also configure Ollama.

Starting the whole Stack

Two convenience scripts are provided at the repository root to start all four services at once: the OAuth2 authorization server, the MCP server, the MCP client and the Angular chatbot.

  • Windows: start-all.bat
    • Opens one console window per service (auth server, MCP server, MCP client, chatbot). Close a window (or press Ctrl+C in it) to stop that service.
  • Linux/macOS: ./start-all.sh
    • Runs all services as background jobs of the script and writes their output to logs/*.log. Press Ctrl+C to stop everything.

Both scripts start the services in this order, with short delays so each service is ready before the next one that depends on it starts:

  1. MCP Authorization Server — http://localhost:9001
  2. MCP Server — http://localhost:8082
  3. MCP Client — http://localhost:8083
  4. MCP Chatbot (Angular) — http://localhost:4200

How to use the Chatbot

  1. Open http://localhost:4200 in a browser.
  2. Click Sign in and log in with the demo user:
    • Username: john@doe.com
    • Password: john
  3. After a successful login you are redirected back to the app, the toolbar shows John Doe, and the deep-chat window connects to the mcp-client so you can start chatting.
  4. Ask "Which movie is Kai's favorite quote from?"
  5. Approve the tool call in the Chatbot
  6. The chatbot will call the MCP client, which calls the MCP server, which calls the OpenAI API to get the answer.
  7. Try "What's the weather in Munich?" to see mcp-client ask for your preferred temperature unit before calling the tool, or "What's the weather in Munich in Fahrenheit?" to see it skip that question when you already specified a unit.

Connecting with the MCP Inspector

The MCP server advertises its authorization server via RFC 9728 protected resource metadata, and the authorization server has a public PKCE client mcp-inspector-client registered for the Inspector's callback URLs.

  1. Start mcp-authorization-server and mcp-server.
  2. Run npx @modelcontextprotocol/inspector (UI on http://localhost:6274 or http://127.0.0.1:6274).
  3. Set Transport Type to Streamable HTTP and URL to http://localhost:8082/api/mcp.
  4. Under Authentication → OAuth 2.0 Flow, set Client ID to mcp-inspector-client (leave the secret empty) and Scope to mcp.tools mcp.tools.movies mcp.tools.weather mcp.tools.diagnostics.
  5. Click Connect and log in as john@doe.com / john or jane@doe.com / jane. The granted mcp.tools.* scopes are narrowed to that user's permissions.

Licenses

  • mcp-authorization-server is licensed under the Apache License, Version 2.0
  • mcp-client is licensed under the Apache License, Version 2.0
  • mcp-server is licensed under the Apache License, Version 2.0
  • mcp-chatbot is licensed under the MIT License

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Spring AI MCP Server demo from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/spring-ai-mcp-server-toedter)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools