File size: 2,924 Bytes
bd4a78d
 
50e2868
bd4a78d
 
 
 
 
 
d3ab695
 
 
 
4727fcb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
97
---
title: Hieroglyph Mcp Server
emoji: πŸ‘
colorFrom: gray
colorTo: yellow
sdk: gradio
sdk_version: 6.0.1
app_file: app.py
pinned: false
short_description: Detect and classify hieroglyphs to its Gardiner code
tags:
  - building-mcp-track-creative
  - mcp-server
---


# π“€€ Egyptian Hieroglyph Detector (MCP Server)

Welcome to our submission for the MCP Hackathon (Track 1: Building MCP)!

This project bridges the gap between ancient history and modern AI Agents.  
It provides an MCP Server that allows Claude Desktop to "see" and identify Gardiner's Egyptian Hieroglyphs in any image.

---

## πŸŽ₯ Demo Video

(Replace **YOUR_VIDEO_ID** in the link above with your actual YouTube video ID)

---

## 🚨🌍 IMPORTANT NOTICE FOR HACKATHON πŸ€–

We are participating in the Creative Track (**building-mcp-track-creative**) because this tool unlocks new cultural and educational capabilities for AI agents.

**πŸ”— Social Media Post:**  
[Link to your X/LinkedIn Post Here]

---

## 🌐 Project Overview

This is not just a standard object detector.  
It is a **Hybrid Security Architecture** designed for the Model Context Protocol:

### **πŸ”“ Public Interface**
An open MCP endpoint hosted on Hugging Face Spaces that anyone can connect to.

### **πŸ” Private Intelligence**
The core intelligence (a fine-tuned YOLOv8 model) is hosted in a **Private Repository**.  
The Space acts as a secure proxy, authenticating with a secret token to load the weights without exposing them to the public.

### **πŸ›‘οΈ Secure Bridge**
We built a custom **Upload Helper** tool that allows Claude Desktop to securely transfer local files from your computer to the cloud server for analysis.

---

## πŸ—‚οΈ Capabilities & Tools

When connected to Claude, this server exposes **two powerful tools**:

### **1. `detect_hieroglyphs` (The AI Eye)**

- **Purpose:** Takes an image input and performs object detection for Egyptian Hieroglyphs.  
- **Output:** Annotated image + JSON summary of symbol counts (e.g., `"3x Owl"`, `"1x Water"`).  
- **Model:** Custom-trained YOLOv8 model specialized on Gardiner signs.

---

### **2. `upload_file` (The Bridge)**

- **Purpose:** Solves the β€œlocal vs. cloud” problem.  
- **Function:** Uploads a local file from your machine to the Space’s temporary storage so the AI can analyze it.

---

## πŸš€ How to Use (Claude Desktop)

You can connect this tool to your own Claude Desktop right now!

### **πŸ“Œ Prerequisites**

- Claude Desktop installed  
- Node.js & Python  
- Gradio MCP extension:  
  ```sh
  pip install "gradio[mcp]"

### βš™οΈ Configuration

Add the following JSON to your Claude Desktop configuration file.

Windows path: %APPDATA%\Claude\claude_desktop_config.json

Mac path: ~/Library/Application Support/Claude/claude_desktop_config.json

Replace C:\\Claude_Work with the actual folder where you keep images, and update the URLs if your Space address differs.