Spaces:
Runtime error
Runtime error
File size: 5,872 Bytes
bd4a78d 2ef9678 50e2868 bd4a78d 2ef9678 d3ab695 2ef9678 d3ab695 4727fcb 2ef9678 4727fcb 22a513f 2ef9678 22a513f 4727fcb 2ef9678 4727fcb 8a1faeb 2ef9678 4727fcb 2ef9678 4727fcb 2ef9678 4727fcb 2ef9678 4727fcb 2ef9678 4727fcb 2ef9678 4727fcb 8a1faeb 2ef9678 8a1faeb 2ef9678 8a1faeb 2ef9678 8a1faeb 2ef9678 8a1faeb 2ef9678 8a1faeb | 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 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | ---
title: Rosetta Decoder
emoji: π
colorFrom: gray
colorTo: yellow
sdk: gradio
sdk_version: 6.0.1
app_file: app.py
pinned: false
short_description: Detect & Translate hieroglyphics
tags:
- building-mcp-track-creative
- building-mcp-track-consumer
- mcp-in-action-track-creative
- mcp-in-action-track-consumer
- mcp-server
---
# π Egyptian Hieroglyph Detector (MCP Server)
This project bridges the gap between ancient history and modern AI Agents. It provides an **MCP Server** that allows Ai Agents to "see" and identify Hieroglyphs in any image.
## π₯ Team
- **[youkii-xr](https://huggingface.co/youkii-xr)** β XR Developer, did the MCP and Gradio part<br> [](https://www.linkedin.com/in/youkii-xr/)
- **[MariamEssam204](https://huggingface.co/MariamEssam204)** β AI Engineer, did the AI model part <br> [](https://www.linkedin.com/in/mariam-essam-ai-engineer/)
## π₯ Demo Video
| Gradio App V2 | Mobile Camera Test | MCP Server |
| :---: | :---: | :---: |
| [](https://youtu.be/nnQnNfJtSWM) | [](https://youtu.be/wZKBVYAZwZ4) | [](https://youtu.be/Vvlu6sDzsBE) |
π **Social Media Post:**
[[Gradio App - V2](https://www.linkedin.com/posts/youkii-xr_our-hieroglyphic-ai-detector-just-got-a-major-activity-7400855950632411136-5Z9Y?utm_source=social_share_send&utm_medium=member_desktop_web&rcm=ACoAADSn0yMBo1MdVldbeoL5OxUZo2-CMJKUKOM)]<br>
[[Mobile camera test](https://www.linkedin.com/posts/mariam-essam-ai-engineer_productdevelopment-dataaugmentation-realtimeai-activity-7400635609570205696-a9JN?utm_source=social_share_send&utm_medium=member_desktop_web&rcm=ACoAADSn0yMBo1MdVldbeoL5OxUZo2-CMJKUKOM)]<br>
[[Gradio App - V1](https://www.linkedin.com/posts/mariam-essam-ai-engineer_machinelearning-computervision-ai-activity-7400193629241143296-sWvC?utm_source=social_share_send&utm_medium=member_desktop_web&rcm=ACoAADSn0yMBo1MdVldbeoL5OxUZo2-CMJKUKOM)]<br>
[[MCP Server - V1](https://www.linkedin.com/posts/youkii-xr_huggingface-mcp-ai-activity-7400474001891819520-tTa3?utm_source=social_share_send&utm_medium=member_desktop_web&rcm=ACoAADSn0yMBo1MdVldbeoL5OxUZo2-CMJKUKOM)]
## ποΈ Capabilities & Tools
#### Hieroglyphs Detection:
* trained on 400+ different glyphs
* able to detect with high confidence
#### Translation
* **Mystical prophecy** : translates for tourists and non-academics as a story
* **Academic Translation** : a linguistics breakdown of symbols and their meaning and how they fit together
#### Analytics
* **Spatial Heatmaps** : visualizes where glyphs are clustered on the wall / papyrus
* **Confidence Charts** : Shows how sure the AI is about every symbol
* **Frequency Analysis** : Counts the occurrence of distinguished symbols
#### Digital Encyclopedia
* Includes a searchable database of supported Gardiner Codes with descriptions and transliteration
#### Downloadable Results
* Download the detection result with bounding boxes surrounding each glyph on the wall / papyrus
* Download glyphs gallery as a zip containing all glyphs detected individually cropped
## πAvailable MCP Tools
When connected to Claude Desktop, this server exposes **4 specific tools** that allow the Agent to perform the full archaeological pipeline:
#### `detect glyphs`
* **Description:** Scans an input image to find hieroglyphs.
* **Returns:** A path to the annotated image (boxes drawn) and a JSON object containing the list of found codes and confidence scores.
#### `translate story`
* **Description:** Takes a list of Gardiner codes or keywords and interprets them.
* **Returns:** Two distinct texts: a "Mystical Story" (creative interpretation) and an "Academic Translation" (scientific interpretation).
#### `get stats`
* **Description:** Takes the detection data and generates visual reports.
* **Returns:** A path to an image file containing charts for Symbol Frequency, Confidence Levels, and Spatial Heatmaps.
#### `list codes`
* **Description:** Provides access to the full internal database of Egyptian hieroglyphs.
* **Returns:** The complete dictionary of supported Gardiner codes, descriptions, and categories.
## π How to Use (Claude Desktop)
You can connect this tool to your own Claude Desktop right now!
### Prerequisites
- **Claude Desktop** installed.
- **Node.js** & **Python** installed.
- **Gradio MCP:** Run `pip install "gradio[mcp]"`β
### Configuration
Add this to your `%APPDATA%\Claude\claude_desktop_config.json` (Windows) or `~/Library/Application Support/Claude/claude_desktop_config.json` (Mac):
```
{
"mcpServers": {
"gradio": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp-1st-birthday-rosetta-decoder.hf.space/gradio_api/mcp/",
"--transport",
"streamable-http"
]
},
"upload_helper": {
"command": "C:\\Python313\\python.exe",
"args": [
"-m",
"gradio",
"upload-mcp",
"https://mcp-1st-birthday-rosetta-decoder.hf.space/",
"C:\\Claude_Work"
]
}
}
}
```
*(Note: Change* *β`C:\\Claude_Work`β*β *to the actual folder where you keep your images)*
## π§© Technical Architecture
- **Framework:** Gradio 6.0.0 (with native MCP support)
- **Model:** Ultralytics YOLOv8 (Private Weights)
- **Storage:** Hugging Face Hub (Private Repo for Model, Public Space for Inference)
- **Protocol:** Model Context Protocol (MCP) via SSE (Server-Sent Events)
*Built with β€οΈ for the Hugging Face MCP Hackathon 2025*
|