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

MCP-Weather-Stdio-server
3 years
Works with Finder
1
Github Watches
0
Github Forks
0
Github Stars
Simple MCP Server
这是一个示例项目,用极简方式演示如何构建MCP Server。
- 天气查询:使用高德开放平台提供的天气查询API实现MCP Server,可获取实况和未来天气.
效果演示
如上图:
- 用户问"西安今天用穿棉袄吗"
- AI自动判断是否要调用天气MCP Server
- AI按照MCP Server的参数要求,将
西安
的经纬度信息提供给MCP Server - MCP Server内部调用了高德提供的天气查询API,并将结果返回给AI
- AI将天气结果进行汇总整理,输出给用户
环境准备
MCP Server 构建和执行
- Java 17 or later
- Maven 3.6 or later
- Understanding of Spring Boot and Spring AI concepts
- (Optional) Claude Desktop for AI assistant integration
MCP Client和大模型
支持MCP协议的任何AI对话客户端程序都可以,如:Cline、Continue、Claude Desktop等, 本例使用Cherry Studio。
Cherry Studio是一个AI对话客户端,其支持很多个大模型提供商,如:硅基流动、阿里云百炼、OpenAI等几十个国内外提供商,各提供商分别提供很多大模型服务,各个大模型的能力也有差异,有免费和收费的,也有不同作用和能力的。 当然,Cherry Studio也支持本地运行的大模型,如:Ollama、LLM Studio等。
本文使用硅基流动提供的Qwen2.5-7B-Instruct
模型,请先注册硅基流动账户,申请API密钥,并在Cherry Studio中配置API密钥。
注意:请选择带有Function Call
功能的大模型(Cherry Studio中带🔧符合的大模型),如:Qwen2.5-7B-Instruct
。
高德开放平台API密钥
从高德开放平台申请Web API密钥(key)。
构建
Building and Running
The server uses STDIO transport mode and is typically started automatically by the client. To build the server jar:
./mvnw clean install -DskipTests
构建完成后,在项目路径下会产生target/mcp-weather-stdio-server-0.0.1-SNAPSHOT.jar
文件。
安装使用
在 Cherry Studio中打开设置/MCP服务器
,添加MCP服务器,如下图:
- 名称: 随意写
- 类型:STDIO
- 命令:node
- 参数:刚才构建的执行文件路径,即
/Users/yourname/simple-mcp-server/build/index.js
- 环境变量:
-
GAODE_API_KEY
:高德开放平台申请的Web API 32位密钥GAODE_API_KEY=your_api_key
-
DINGTALK_ACCESS_TOKEN
: 创建钉钉群机器人的Webhook 地址后面的64位密钥DINGTALK_ACCESS_TOKEN=your_access_token
-
使用
在Cherry Studio中新建对话,对话框下方开启MCP服务器和刚才安装的MCP Server。
注意:当选择了带有Function Call
功能的大模型时,下方才有MCP相关选项。
相关推荐
Converts Figma frames into front-end code for various mobile frameworks.
Advanced software engineer GPT that excels through nailing the basics.
Take an adjectivised noun, and create images making it progressively more adjective!
I find academic articles and books for research and literature reviews.
Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.
Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.
Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx
Servidor MCP para obtener contenido de la página web con el navegador sin cabeza de dramaturgo.
Un poderoso complemento Neovim para administrar servidores MCP (protocolo de contexto del modelo)
Puente entre los servidores Ollama y MCP, lo que permite a LLM locales utilizar herramientas de protocolo de contexto del modelo
Servidores MCP impresionantes: una lista curada de servidores de protocolo de contexto del modelo
Habilite clientes asistentes de IA como Cursor, Windsurf y Claude Desktop para controlar el motor irreal a través del lenguaje natural utilizando el Protocolo de contexto del modelo (MCP).
一款基于各大企业信息 API 的工具 , 解决在遇到的各种针对国内企业信息收集难题。一键收集控股公司 解决在遇到的各种针对国内企业信息收集难题。一键收集控股公司 ICP 备案、 Aplicación 、小程序、微信公众号等信息聚合导出。支持 MCP 接入
Reviews

user_z4aBrNen
As a dedicated user of the mcp-weather-stdio-server, I must say it's an outstanding tool for accessing real-time weather data efficiently. The server is well-designed by xiaobo187 and the ease of use is commendable. The responsiveness and accuracy of the information provided make it incredibly reliable for any weather-related tasks. Highly recommended for developers seeking a dependable weather API.