About keremurat-json
keremurat-json is an MCP server for developers to compare two JSON strings recursively. It ignores object, property, and array order, and reports difference paths and types.
Key features
- 01Recursively compare nested objects and arrays
- 02Ignore object, property, and array order
- 03Report missing keys, extra keys, and value differences
- 04Include paths to differences
- 05Check value data types
Use cases
- 01Review changes between JSON configurations
- 02Compare JSON API responses
- 03Locate differences in nested structures
MCP support
It exposes the `compare_json` tool to MCP clients, accepting two JSON strings and returning a difference report.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://server.smithery.ai/@keremurat/json/mcpclaude mcp add --transport http ai-smithery-keremurat-json https://server.smithery.ai/@keremurat/json/mcp{"mcpServers":{"ai-smithery-keremurat-json":{"type":"http","url":"https://server.smithery.ai/@keremurat/json/mcp"}}}Open in Cursor{"servers":{"ai-smithery-keremurat-json":{"type":"http","url":"https://server.smithery.ai/@keremurat/json/mcp"}}}Open in VS Code{"mcpServers":{"ai-smithery-keremurat-json":{"type":"http","url":"https://server.smithery.ai/@keremurat/json/mcp"}}}{"mcpServers":{"ai-smithery-keremurat-json":{"serverUrl":"https://server.smithery.ai/@keremurat/json/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
https://server.smithery.ai/@keremurat/json/mcpAuth requiredTools
Details
From the project README🔍 JSON Compare MCP Server
Derinlemesine ve sıra-bağımsız JSON karşılaştırma MCP tool'u
İki JSON dosyasını akıllıca karşılaştırın, farklılıkları tespit edin!
✨ Özellikler
- 🔍 Derinlemesine Karşılaştırma - Nested objeler ve array'ler dahil tüm seviyeler
- 🔀 Sıra-Bağımsız - Property ve obje sıralaması önemli değil
- 📊 Detaylı Raporlama - Eksik, fazla ve farklı değerlerin detaylı raporu
- 🎯 Path Tracking - Her farkın tam konumu (örn:
root.user.settings.theme) - 🏷️ Tip Kontrolü - Değer tiplerini de karşılaştırır
- ⚡ Hızlı ve Verimli - Optimize edilmiş recursive algoritma
🎯 Hızlı Başlangıç
1. Kurulum
git clone https://github.com/yourusername/json-compare-mcp.git
cd json-compare-mcp
pip install -r requirements.txt
2. MCP Server'ı Başlat
python server.py
3. Test Et
python test_compare.py
📦 Ne İçeriyor?
json-compare-mcp/
├── 🐍 app.py # JSON karşılaştırma implementasyonu
├── 🚀 server.py # MCP server yapılandırması
├── 🧪 test_compare.py # Test suite
├── 📋 requirements.txt # Python bağımlılıkları
├── 🐳 Dockerfile # Container yapılandırması
├── ⚙️ smithery.yaml # Smithery deployment config
└── 📁 test_samples/ # Örnek JSON dosyaları
├── file1.json
├── file2.json
└── file3_different.json
🚀 Kullanım
MCP Tool: compare_json
# İki JSON string'ini karşılaştır
compare_json(
json1='{"name": "Ahmet", "age": 30, "city": "Istanbul"}',
json2='{"age": 30, "city": "Istanbul", "name": "Ahmet"}'
)
Not: Artık dosya yolu değil, direkt JSON string kullanın!
Çıktı Formatı
{
"status": "different",
"total_differences": 11,
"differences": [
{
"type": "missing_key",
"path": "root.user.settings.language",
"key": "language",
"file1_value": "tr",
"message": "Key 'language' exists in file1 but missing in file2"
},
{
"type": "value_mismatch",
"path": "root.user.name",
"file1_value": "Ahmet Yılmaz",
"file2_value": "Mehmet Demir",
"message": "Value mismatch at 'root.user.name'"
}
],
"summary": {
"missing_keys": 1,
"extra_keys": 2,
"value_mismatches": 8,
"type_mismatches": 0
}
}
🔍 Karşılaştırma Mantığı
Seviye 1: Üst Seviye Obje Karşılaştırma
- ✅ Her iki JSON'daki üst seviye objeleri/anahtarları tespit et
- ✅ SIRALAMA ÖNEMLİ DEĞİL - Objeler farklı sırada olabilir
- ✅ Eksik/fazla objeleri tespit et ve uyar
- ✅ Eşleşen objeler için Seviye 2'ye geç
Seviye 2: İç Nesne/Property Karşılaştırma
- ✅ Tüm property'leri karşılaştır
- ✅ SIRALAMA ÖNEMLİ DEĞİL - Property'ler farklı sırada olabilir
- ✅ Property varlığı, tip ve içerik kontrolü
- ✅ Array'ler için sıra-bağımsız karşılaştırma
Fark Tipleri
| Tip | Açıklama |
|---|---|
missing_key | Anahtar file1'de var, file2'de yok |
extra_key | Anahtar file2'de var, file1'de yok |
value_mismatch | Değerler farklı |
type_mismatch | Veri tipleri farklı |
🧪 Test
Test Suite'i Çalıştır
python test_compare.py
Test Senaryoları
- Sıra-bağımsız test: Aynı içerik, farklı sıralama →
identical - Farklılık tespiti: Farklı değerler → detaylı fark raporu
- Kendisi ile: Aynı dosya →
identical
Test Çıktısı
✅ Test 1 - Sıra-bağımsız: BAŞARILI
✅ Test 2 - Farklılık tespiti: BAŞARILI
✅ Test 3 - Aynı dosya: BAŞARILI
🔍 Test 2 Detayları:
- Eksik anahtarlar: 1
- Fazla anahtarlar: 2
- Değer uyuşmazlıkları: 8
- Tip uyuşmazlıkları: 0
- Toplam fark: 11
🛠️ Geliştirme
Yeni Tool Eklemek
app.py dosyasına yeni fonksiyon ekle:
def myNewTool(param: str) -> str:
# Your logic
return result
server.py dosyasına MCP tool olarak kaydet:
@mcp.tool()
async def my_new_tool(param: str) -> str:
"""Tool açıklaması"""
return myNewTool(param)
🚀 Deployment
Smithery Deployment
- Repository'yi GitHub'a push et
- Smithery'de repository'yi bağla
- Tek tıkla deploy et! 🎉
Docker Deployment
docker build -t json-compare-mcp .
docker run -p 8000:8000 json-compare-mcp
Manuel Deployment
pip install -r requirements.txt
python server.py
📋 Gereksinimler
- Python 3.11+
- mcp
- requests
🤝 Katkıda Bulunma
- 🍴 Fork et
- 🌱 Feature branch oluştur
- 💻 Değişiklikleri yap
- 🧪 Test et
- 📝 Pull request gönder
📄 Lisans
MIT License - Detaylar için LICENSE dosyasına bakın.
Made with ❤️ for better JSON comparison
Sıra-bağımsız, derinlemesine, güvenilir 🚀
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.