semvec/pypi-packages huggingface dataset:
no-mcp-server 0.2.2
MCP wrapper for NaaS.
Requires Python: >=3.11

# No MCP

[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
[![PyPI version](https://img.shields.io/pypi/v/no-mcp-server.svg)](https://pypi.org/project/no-mcp-server/)

A Model Context Protocol (MCP) server that wraps [NaaS (No as a Service)](https://github.com/hotheadhacker/no-as-a-service).

## Description

This is a joke MCP server that continues the satirical spirit of NaaS. When your AI agent asks any question through this server, it will always respond with "no" along with a creative reason. Perfect for when you want your AI to be consistently negative or just want to add some humor to your MCP setup.

## Installation

```bash
uv pip install no-mcp-server
```

## Usage

### Running with STDIO (Default)

The server runs with stdio transport by default, suitable for MCP clients like Claude Desktop:

```bash
uvx no-mcp-server
```

### Running as HTTP Server

You can run the server as an HTTP endpoint by setting the `MCP_TRANSPORT` environment variable:

```bash
MCP_TRANSPORT=http uvx no-mcp-server
```

The server will start on `http://0.0.0.0:8000/mcp` by default. You can customize the HTTP configuration:

```bash
MCP_HTTP_PATH=mcp uvx no-mcp-server
```

### Configuration

The server can be configured via environment variables:

| Variable | Description | Default |
|----------|-------------|---------|
| `MCP_TRANSPORT` | Transport protocol (`stdio` or `http`) | `stdio` |
| `MCP_HTTP_HOST` | HTTP server host (when using http transport) | `0.0.0.0` |
| `MCP_HTTP_PORT` | HTTP server port (when using http transport) | `8000` |
| `MCP_HTTP_PATH` | HTTP endpoint path (when using http transport) | `/mcp` |
| `NO_BASE_URL` | NaaS API base URL | `https://naas.isalman.dev` |

### Adding to MCP Clients

#### Claude Desktop (STDIO)

Add this configuration to your MCP client settings:

```json
{
  "mcpServers": {
    "no-mcp": {
      "command": "uvx",
      "args": ["no-mcp-server"]
    }
  }
}
```

Or with a specific version:

```json
{
  "mcpServers": {
    "no-mcp": {
      "command": "uvx",
      "args": ["no-mcp-server@0.2.1"]
    }
  }
}
```

#### Using HTTP Transport

If you're running the server as HTTP, configure your MCP client to connect to the HTTP endpoint (e.g., `http://localhost:8000/mcp`).

Once configured, your AI agent will have access to the `query` tool, which will respond to any question with "no" and a creative explanation.

## Development

This project uses uv for package management:

```bash
# Install dependencies
uv sync

# Run tests
uv run poe test

# Run linting
uv run poe lint

# Format code
uv run poe format
```

## License

This project is licensed under the GNU General Public License v3.0 - see the [LICENSE.md](LICENSE.md) file for details.
real-time-stock-mcp-service 1.2.1
一个获取实时股票数据服务和分析的MCP服务器
Requires Python: >=3.12

# 实时股票分析 MCP 服务

---

这是一个实时股票数据服务的MCP服务器。它通过东方财富网获取金融数据，并将这些数据以工具的形式暴露给支持MCP的AI模型。

> **代码仓库：** https://github.com/DannyWongIsAvailable/real-time-stock-mcp-service.git

- 免费免登录获取数据，免token
- 部分功能支持B股，H股

## 功能特性

- 📊 查找股票
- 📈 K线数据查询（支持B股，H股，大盘，分时图）
- 📉 技术指标分析 （MA，MACD，BOLL，RSI等等）
- 💰 基本面数据分析（主营构成、经营范围等）
- 📊 财务分析（财务比率、业绩概况等）
- 💰 估值分析数据（市盈率、市净率等）
- 📈 市场行情跟踪（板块行情、同行对比、资金流向等）
- 🤖 智能点评和评分  

共34个MCP工具

## 使用方法

您可以通过以下2种方式使用本服务：

### 1. 魔搭社区免费云资源一键部署

您可以在魔搭社区MCP实验场中在线体验该服务，也支持客户端远程连接（streamable HTTP或SSE协议）

https://modelscope.cn/mcp/servers/DannyWong/real-time-stock-mcp

### 2. 本地stdio模式(以Claude Desktop为例)

#### 在 Claude Desktop 中配置

编辑 Claude Desktop 的配置文件：

**Windows:** `%APPDATA%\Claude\claude_desktop_config.json`  
**MacOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`  

添加以下配置：

```json
{
  "mcpServers": {
    "stock-mcp": {
      "args": [
        "real-time-stock-mcp-service"
      ],
      "command": "uvx"
    }
  }
}
```

> **注意：** 将路径替换为你的实际项目路径。


#### 视频教程参考：
- [火遍全网的MCP是什么？怎么用？如何自己开发一个MCP服务？一个视频带你入门！](https://www.bilibili.com/video/BV13R5EzbE6E/?spm_id_from=333.337.search-card.all.click&vd_source=08fc400fe0cfc7eaa723687b764b29f3)
- [Cherry Studio MCP 使用入门教程：从配置到使用](https://www.bilibili.com/video/BV1bkdAYTEYp/?spm_id_from=333.337.search-card.all.click&vd_source=08fc400fe0cfc7eaa723687b764b29f3)

## 核心设计

本项目采用**依赖注入**设计模式：

1. `crawler` 模块获取数据
2. `data_source_interface.py` 定义抽象数据源接口
3. `stock_data_source.py` 提供具体实现
4. 各工具模块通过依赖注入获取数据源实例

这种设计使得：
- ✅ 易于扩展新功能
- ✅ 可以轻松切换不同数据源
- ✅ 便于单元测试
- ✅ 代码解耦，维护性强

## 工具模块

项目包含34个MCP工具模块，每个模块提供特定领域的功能：

- `search.py` - 股票搜索和交易日信息
- `real_time_data.py` - 实时股票行情数据
- `kline_data.py` - K线数据和技术指标
- `fundamental.py` - 基本面数据（主营构成、经营范围等）
- `valuation.py` - 估值分析数据（市盈率、市净率等）
- `financial_analysis.py` - 财务分析数据（财务比率、业绩概况等）
- `market.py` - 市场行情数据（板块行情、资金流向等）
- `smart_review.py` - 智能点评和评分


## 开发指南

详情请查看[开发指南](DEVELOPMENT.md)  

## 注意事项

⚠️ **重要提醒**：
1. 本服务提供的数据仅供参考，不构成投资建议
2. 仅允许个人学习、研究、使用，禁止用于商业用途。严禁滥用！
3. 请遵守数据使用协议和相关法律法规

## 开源协议

[MIT License](LICENSE)

## 贡献

欢迎提交 Issue 和 Pull Request！

## 联系方式

如有问题，请提交 Issue 或联系项目开发者。  
求一个star，感激不尽！
psrm 0.1.3
A process system resource usage monitor.
Requires Python: >=3.10

# psrm

A process system resource usage monitor.

## Installation

Install psrm with uv (recommended), pip, or pipx:

```shell
# With uv.
uv tool install psrm@latest  # Install psrm globally.

# With pip.
pip install psrm

# With pipx.
pipx install psrm
```

## Usage

Launch psrm to monitor the specified process; the default monitoring interval is 1 seconds.

```shell
# As a command line tool.
psrm monitor 12345

# As a installed package.
python -m psrm monitor 12345 --interval 1.5
```

psrm will continuously record the process's system resource usage and save the data to a csv file at fixed intervals.

Visualize the recorded data:

```shell
psrm plot 20251225_202020_953721bb.csv
```

The charts intuitively display how process resource usage changes over time.