Skip to main content
Glama
darcycui

DarcyAIMCPServer

by darcycui
README.md
## 是什么

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

## 有什么能力

预测明天的天气。

## 怎么用

### 远程使用 (推荐)

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

```bash
    # 在 macOS 上安装
    # 推荐使用 Homebrew 安装:
    brew install uv
    # 或者使用官方安装脚本:
    curl -LsSf https://astral.sh/uv/install.sh | sh

    # 在 Linux 上安装
    curl -LsSf https://astral.sh/uv/install.sh | sh

    # 在 Windows 上安装
    # 使用 Winget:
    winget install uv
    # 或者使用官方安装脚本(PowerShell):
    irm https://astral.sh/uv/install.ps1 | iex

    # 安装完成后,验证是否成功:
    uv --version
```

2. 添加如下 mcpServers 配置

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

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


## 运行结果
![运行结果](docs/MCP-Server运行效果2.png)

## 参考文章

[马克的技术工坊Github](https://github.com/MarkTechStation/VideoCode/)

[MCP终极指南 - 从原理到实战,带你深入掌握MCP(基础篇)-哔哩哔哩](https://b23.tv/JBOXcym)

[MCP终极指南 - 带你深入掌握MCP(进阶篇)-哔哩哔哩](https://b23.tv/JWfRFIV)

[一文搞懂MCP、Function Calling和A2A](https://mp.weixin.qq.com/s/dAT6l3myGKT3_hX12sMyXw)

TDQS

C2.9/5.0

Scored across 1 tool

Disambiguation5/5

With only one tool, there is no possibility of confusion between tools. The tool's purpose is clearly defined as getting weather forecasts.

Naming Consistency5/5

The single tool name 'get_forecast' follows a clear verb_noun pattern with snake_case, which is consistent and predictable.

Tool Count2/5

A server ostensibly about weather forecasting with only one tool is overly limited. Typically, even a minimal weather server would include multiple tools (current, forecast, etc.).

Completeness2/5

The tool set is severely incomplete for weather information. It only provides forecasts, missing current conditions, historical data, or alerts, which are standard for such a domain.

Maintenance

ActivityInactive
ResponsivenessNo issues