File size: 2,057 Bytes
f76b756
ddd502d
f76b756
122ab90
f76b756
 
ddd502d
122ab90
ddd502d
122ab90
ddd502d
122ab90
ddd502d
122ab90
ddd502d
 
122ab90
ddd502d
122ab90
ddd502d
122ab90
ddd502d
122ab90
ddd502d
122ab90
ddd502d
 
 
 
 
 
122ab90
ddd502d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
---
title: Hidden Gems - Undervalued HF Models
sdk: docker
app_port: 7860
---

# 🔍 Hidden Gems Finder

An MCP Server that discovers undervalued Hugging Face models with high likes-to-downloads ratios — quality models that haven't gone viral yet!

## What are Hidden Gems?

The **Hidden Gem Score** = Likes / Downloads

- **High ratio** = Loved by the community, but not widely adopted (undervalued!)
- **Low ratio** = Popular but mainstream (already discovered)

This helps you find quality models before they blow up.

## MCP Tools

### `find_hidden_gems`

Search for undervalued models with various filters:

**Parameters:**
- `limit` (int): Models to fetch from API (default: 100)
- `min_downloads` (int): Filter out brand-new models (default: 100)
- `top` (int): Number of results to return (default: 20)
- `pipeline_tag` (str, optional): Filter by type like "text-generation", "image-to-text"
- `sort_by` (str): Sort by "ratio" (default), "likes", "downloads", or "trending"

**Example:** Find text generation gems
```json
{
  "limit": 200,
  "min_downloads": 100,
  "top": 10,
  "pipeline_tag": "text-generation",
  "sort_by": "ratio"
}
```

### `get_model_details`

Get detailed information about a specific model:

**Parameters:**
- `model_id` (str): The model ID (e.g., "microsoft/DialoGPT-medium")

**Example:**
```json
{"model_id": "openbmb/MiniCPM-SALA"}
```

## Usage Examples

### Find Top 20 Hidden Gems
```
find_hidden_gems()
```

### Find Text Generation Gems
```
find_hidden_gems(pipeline_tag="text-generation", top=15)
```

### Deep Search
```
find_hidden_gems(limit=500, min_downloads=500, top=50, sort_by="likes")
```

### Check Specific Model
```
get_model_details("xai-org/grok-1")
```

## Connecting to Claude Desktop

Add to your `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "hidden-gems": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://evalstate-hidden-gems.hf.space/mcp"]
    }
  }
}
```

## Environment Variables

- `HF_TOKEN`: Optional Hugging Face token for higher API rate limits