MCP.so
登录

Simple MCP Server

@xiaobo187

关于 Simple MCP Server

暂无概览

基本信息

分类

媒体与设计

运行时

java

传输方式

stdio

发布者

xiaobo187

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Simple MCP Server?

Simple MCP Server is an example project that demonstrates how to build an MCP (Model Context Protocol) server in a minimal way. It integrates with the Amap (Gaode) weather API to provide real-time and forecast weather data. This server is intended for developers who want to learn MCP server implementation or need a basic weather‑query AI tool.

How to use Simple MCP Server?

Build the server jar with ./mvnw clean install -DskipTests (requires Java 17+ and Maven 3.6+). Then configure an MCP‑capable client (e.g., Cherry Studio) with STDIO transport, pointing to the built jar. Set the environment variable GAODE_API_KEY with your Amap Web API key (32‑character key). In the client, select a large language model that supports Function Call (marked with a 🔧 icon in Cherry Studio), enable the MCP server, and then ask weather‑related questions.

Key features of Simple MCP Server

  • Weather query: real‑time and forecast weather via the Amap API.
  • STDIO transport mode for easy client integration.
  • Designed for AI assistants with Function Call capability.
  • Built with Spring Boot and Spring AI concepts.
  • Example code for building custom MCP servers.

Use cases of Simple MCP Server

  • An AI assistant answering “Do I need a coat today?” for a given city.
  • Demonstrating MCP server creation for educational purposes.
  • Prototyping weather‑aware chatbots or tools.

FAQ from Simple MCP Server

What environment is needed to run Simple MCP Server?

Java 17 or later, Maven 3.6 or later, and understanding of Spring Boot/Spring AI concepts are required. An MCP client (e.g., Cherry Studio, Cline, Claude Desktop) is also needed.

How do I get the Amap API key?

Register an account at the Amap Open Platform console, apply for a Web API key, and set it as the GAODE_API_KEY environment variable.

What kind of large language model does the client need?

The client must use a model that supports Function Call (marked with a 🔧 icon in Cherry Studio, e.g., Qwen2.5-7B-Instruct provided by SiliconFlow).

What transport mode does this MCP server use?

It uses STDIO transport mode and is typically started automatically by the client.

How do I build the server jar?

Run ./mvnw clean install -DskipTests from the project root. The resulting jar is located at target/mcp-weather-stdio-server-0.0.1-SNAPSHOT.jar.

评论

媒体与设计 分类下的更多 MCP 服务器