Skip to main content

A weather forecast MCP Server for any AI agent.

Project description

是什么

Python语言,基于 mcp 库实现的一个 MCP-Server。

有什么能力

预测明天的天气。

怎么用

远程使用 (推荐)

  1. 如果未安装 uv工具,先执行一键安装脚本安装

    # Linux/Mac 脚本
    sudo curl -fsSL https://openclaw.ai/install.sh | bash
    
    # Windows 脚本
    iwr -useb https://openclaw.ai/install.ps1 | iex
    
  2. 添加如下 mcpServers 配置

    {
      "mcpServers": {
        "weather": {
          "autoApprove": [],
          "disabled": false,
          "timeout": 60,
          "type": "stdio",
          "command": "uvx",
          "args": [
            "darcycui-mcp"
          ]
        }
      }
    }
    

本地使用

  1. clone项目到本地 path
  2. 添加如下配置
  3. 注意 path 替换为你的本地路径
  4. 注意 路径分隔符,Linux/Mac 使用/分隔符, Windows 使用\分隔符
    {
      "mcpServers": {
        "weather": {
          "autoApprove": [],
          "disabled": true,
          "timeout": 60,
          "type": "stdio",
          "command": "uv",
          "args": [
            "--directory",
            "path\\src\\darcycui_mcp",
            "run",
            "weather.py"
          ]
        }
      }
    }
    

运行结果

运行结果

参考文章

马克的技术工坊Github

MCP终极指南 - 从原理到实战,带你深入掌握MCP(基础篇)-哔哩哔哩

MCP终极指南 - 带你深入掌握MCP(进阶篇)-哔哩哔哩

一文搞懂MCP、Function Calling和A2A

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

darcycui_mcp-1.0.4.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

darcycui_mcp-1.0.4-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file darcycui_mcp-1.0.4.tar.gz.

File metadata

  • Download URL: darcycui_mcp-1.0.4.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for darcycui_mcp-1.0.4.tar.gz
Algorithm Hash digest
SHA256 1d9a30d79724ac3ca593b89df76fe6a5e03e1cb5b81647b0e20f17faf4aa3df7
MD5 504d0e6898359e7d104d45da2e800e3d
BLAKE2b-256 890c49e94452e9b5533b606fa0cb24543ee4f31405c899ce4459fd3d738ec782

See more details on using hashes here.

File details

Details for the file darcycui_mcp-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: darcycui_mcp-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for darcycui_mcp-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 825e32a85b9afaf4e168ebf1771ca4fdec315d97af7e493a8b9d026cb9754a76
MD5 caa63a7dbb33bf2a3a3aa13f9e483704
BLAKE2b-256 434e19bcaf26c3c20d2d3627b39f7cf8f0dc4fbb34037f0b08374986612d4c64

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page