MCP ExplorerExplorer

Spring Ai Mcp

@lzmhcon a year ago
1 MIT
FreeCommunity
AI Systems
# MCP Service for SpringAI

Overview

What is Spring Ai Mcp

spring-ai-mcp is a service designed for the Spring AI framework that implements the Model Context Protocol (MCP) for various file operations and weather forecasting functionalities.

Use cases

Use cases for spring-ai-mcp include building applications that need to manage files on a server, such as content management systems, and applications that provide weather information to users, such as travel or event planning apps.

How to use

To use spring-ai-mcp, integrate it into your Spring WebFlux project. You can utilize the provided FileService for file operations and the OpenMeteoService for weather forecasting. Follow the official documentation for setup and usage instructions.

Key features

Key features of spring-ai-mcp include file operations such as reading, writing, and creating directories, as well as weather forecasting capabilities. It supports multi-modal file handling and offers a simple API for interaction.

Where to use

spring-ai-mcp can be used in web applications that require file management and weather data retrieval, particularly in environments utilizing the Spring framework and reactive programming with WebFlux.

Content

spring-ai-mcp

MCP服务

天气预报OpenMeteoService.java

官方文档中的,不详细介绍了

文件操作FileService.java
  • read_file读取文本文件[y]
  • read_multiple_files读取多模态文件[x]
  • write_file创建文件[y]
  • edit_file编辑文件[x]
  • create_directory创建目录[y]
  • list_directory查询目录[y]
  • directory_tree目录树[x]
  • move_file移动文件[x]
  • search_files查询文件[x]
  • get_file_info获取文件信息[x]
  • list_allowed_directories获取授权文件目录[y]
搜索引擎查询BrowserService.java
  • brave_web_search 网络查询

说明

上述功能方法均按照modelcontextprotocol.servers项目的功能开发,可能会略有不同,我会尽量保持相同的操作逻辑,代码中如有错误,欢迎交流。

QQ:2910463910

邮箱:[email protected]

截图

致谢

modelcontextprotocol.servers

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers