Cover image
Try Now
2025-03-31

使用Spring AI聊天客户端和REST控制器与MCP服务器进行交互的Spring Boot应用程序

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

Spring Boot AI MCP Client

Overview

This project demonstrates how to build an MCP (Model-Connected Processing) client using Spring Boot AI. The MCP client allows seamless interaction with external MCP servers, enabling AI models to perform dynamic tool calls and retrieve data efficiently.

For a detailed step-by-step guide on building an MCP client using Spring Boot AI, check out our blog:
Building an MCP Client with Spring Boot AI: A Beginner’s Guide

Setup Instructions

  1. Clone this repository:
    git clone https://github.com/your-repo/spring-boot-ai-mcp-client.git
    cd spring-boot-ai-mcp-client
    
  2. Update application properties with the required values:
    • OpenAI API Key
    • MCP Server Paths
    • Environment variables required by each MCP server
  3. Build and run the application:
    mvn spring-boot:run
    

Note

Before running the application, make sure to replace all placeholder values for:

  • OpenAI API Key
  • MCP Server Paths
  • Any required environment variables for each MCP server

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Lists Tailwind CSS classes in monospaced font

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

    Reviews

    1 (1)
    Avatar
    user_G7SovPUD
    2025-04-16

    I've been using the spring-boot-ai-mcp-client from BootcampToProd and it has greatly streamlined my development process. The client is intuitive and integrates seamlessly with my existing Spring Boot applications. The documentation is clear, making setup a breeze. Highly recommended for anyone looking to enhance their productivity with AI-powered solutions. Check it out on GitHub!