1. Conduid
  2. Search
  3. Spring MCP Server Claude Desktop Example
MCP server · Search

Spring MCP Server Claude Desktop Example

Unclaimed last commit a year ago search
30Low

Scored 7 months ago · breakdown

About Spring MCP Server Claude Desktop Example

Spring MCP Server Claude Desktop Example is an MCP server published by farrar142-examples in the Search category.

The repository has 1 stars and 0 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/farrar142-examples/spring-mcp-server-claude-desktop-example

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Spring MCP Server Claude Desktop Example

Powered by Claude · Grounded in docs

I know everything about Spring MCP Server Claude Desktop Example. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

개요

이 예제는 Spring AI의 Model Context Protocol(MCP) 기능을 활용하여 Claude AI에서 외부 툴(도구)을 호출하는 방법을 보여줍니다.

핵심 기능

MyTool.getWeather: 임의의 날씨 정보를 반환하는 도구 메서드 McpConfig.myTools: MyTool을 ToolCallbackProvider로 등록

실행 방법

  1. Spring Boot 애플리케이션 실행
    ./gradlew bootRun
    
  2. Claude Desktop 애플리케이션 실행
  3. Claude Desktop 설정에서 MCP 서버 추가 이미지
    {
       "mcpServers": {
          "spring-ai-mcp-weather": {
             "command": "npx",
             "args": ["-y", "mcp-remote", "http://localhost:8080/mcp", "--allow-http"]
          }
       }
    }
    
  4. Claude Desktop 재시작
  5. Claude AI와 대화 시작
    • 예: "오늘 서울의 날씨는 어때?"

커밋 로그

  1. Spring Initializr로 프로젝트 생성
    • Model Context Protocol Server
    • Spring Web
  2. Spring AI Version을 1.1.0-M1으로 변경
    • 현재 1.0.3버전에서는 Streamable HTTP를 지원안함
    // build.gradle.kts
    extra["springAiVersion"] = "1.1.0-M1"
    
  3. application.yml 설정
    #application.yml
    spring:
     ai:
       mcp:
          server:
             protocol: STREAMABLE
             enabled: true
    
  4. Tool 작성
    //MyTool.kt
    class MyTool {
       private val weathers = arrayOf("Sunny","Rainy","Cloudy")
       @Tool
       fun getWeather(location:String) = weathers.random()
    }
    
  5. Tool을 Bean으로 등록
    @Configuration
    class McpConfig {
        @Bean
        fun myTools(): ToolCallbackProvider = MethodToolCallbackProvider.builder().toolObjects(MyTool()).build()
    }
    
  6. claude_desktop_config.json 수정 이미지
    {
       "mcpServers": {
          "spring-ai-mcp-weather": {
             "command": "npx",
             "args": ["-y", "mcp-remote", "http://localhost:8080/mcp", "--allow-http"]
          }
       }
    }
    
    
  7. SpringBoot 실행 후 Claude Desktop 재시작

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Spring MCP Server Claude Desktop Example

How do I install Spring MCP Server Claude Desktop Example?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Spring MCP Server Claude Desktop Example safe to use with an AI agent?

Its trust score is 30 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Spring MCP Server Claude Desktop Example still maintained?

The last commit was a year ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.