心知天气 MCP Server
Enables real-time weather queries for 400+ cities in China through the Seniverse Weather API. Provides secure weather data access with HMAC-SHA1 authentication and full MCP protocol compatibility.
README
心知天气 MCP 服务
基于心知天气API的Model Context Protocol服务,提供实时天气查询功能。
魔搭社区部署说明
服务配置
在魔搭社区创建MCP服务时,使用以下配置:
{
"mcpServers": {
"xinzhi-weather": {
"command": "python",
"args": ["server.py"],
"env": {
"PYTHONPATH": ".",
"XZ_PUBLIC_KEY": "您的心知天气公钥",
"XZ_PRIVATE_KEY": "您的心知天气私钥",
"XZ_DEFAULT_LOCATION": "yulin"
}
}
}
}
使用方法
在支持MCP的客户端中调用 get_weather 工具:
# 示例调用
result = await client.call_tool("get_weather", {
"location": "beijing",
"public_key": "您的公钥",
"private_key": "您的私钥"
})
API密钥申请
- 访问心知天气官网注册账号
- 在控制台申请API密钥
- 获取公钥和私钥
## 5. 魔搭社区创建步骤
1. **在GitHub创建仓库**:上传以上4个文件
2. **魔搭社区创建MCP**:
- 选择"从GitHub导入"
- 仓库地址:`https://github.com/您的用户名/xinzhi-weather-mcp`
- 服务配置:使用上面的 `mcp.json` 内容
- 入口文件:`server.py`
- Python版本:3.9
3. **部署测试**:魔搭社区会自动安装依赖并启动服务
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.