armut-mcp 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,20 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags: ["v*"]
6
+
7
+ jobs:
8
+ publish:
9
+ runs-on: ubuntu-latest
10
+ permissions:
11
+ id-token: write # required for PyPI trusted publishing (OIDC)
12
+ contents: read
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - uses: actions/setup-python@v5
16
+ with:
17
+ python-version: "3.12"
18
+ - run: pip install build
19
+ - run: python -m build
20
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,61 @@
1
+ name: Publish to MCP Registry
2
+
3
+ # Official MCP Registry (registry.modelcontextprotocol.io) via GitHub OIDC.
4
+ # No secret, no interactive login: the runner's OIDC token proves ownership
5
+ # of the io.github.mohammad-abbasi-sh/* namespace.
6
+ # Refs: https://github.com/modelcontextprotocol/registry
7
+
8
+ on:
9
+ push:
10
+ tags: ["v*"]
11
+ workflow_dispatch:
12
+
13
+ jobs:
14
+ publish:
15
+ runs-on: ubuntu-latest
16
+ permissions:
17
+ id-token: write # required for OIDC -> MCP Registry
18
+ contents: read
19
+ steps:
20
+ - uses: actions/checkout@v4
21
+
22
+ - name: Sync server.json version to tag
23
+ # Only sync when running on a version tag (v*). On workflow_dispatch
24
+ # (ref = refs/heads/main) keep the version committed in server.json.
25
+ run: |
26
+ VER=""
27
+ if [[ "$GITHUB_REF" == refs/tags/* ]]; then
28
+ TAG="${GITHUB_REF#refs/tags/}"
29
+ VER="${TAG#v}"
30
+ fi
31
+ if [ -n "$VER" ]; then
32
+ python3 - "$VER" << 'EOF'
33
+ import json, sys
34
+ ver = sys.argv[1]
35
+ d = json.load(open('server.json'))
36
+ d['version'] = ver
37
+ for pkg in d.get('packages', []):
38
+ pkg['version'] = ver
39
+ json.dump(d, open('server.json', 'w'), indent=2, ensure_ascii=False)
40
+ print('server.json version ->', ver)
41
+ EOF
42
+ else
43
+ echo "No version tag ($GITHUB_REF); keeping server.json version as-is"
44
+ fi
45
+
46
+ - name: Install mcp-publisher
47
+ run: |
48
+ curl -sL "https://github.com/modelcontextprotocol/registry/releases/download/v1.8.7/mcp-publisher_linux_amd64.tar.gz" -o /tmp/mcp-publisher.tar.gz
49
+ tar -xzf /tmp/mcp-publisher.tar.gz -C /tmp
50
+ sudo mv /tmp/mcp-publisher /usr/local/bin/mcp-publisher
51
+ mcp-publisher --version
52
+
53
+ - name: Validate server.json
54
+ run: mcp-publisher validate server.json
55
+
56
+ - name: Publish to MCP Registry (OIDC)
57
+ run: |
58
+ mcp-publisher login github-oidc
59
+ mcp-publisher publish server.json
60
+ # A registry outage must never break the release; re-run from Actions if needed.
61
+ continue-on-error: true
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Mohammad Abbasi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,107 @@
1
+ Metadata-Version: 2.5
2
+ Name: armut-mcp
3
+ Version: 0.1.0
4
+ Summary: Unofficial read-only MCP server for armut.com local services (search, pros, FAQs, price guides)
5
+ Author: Mohammad Abbasi
6
+ License: MIT
7
+ License-File: LICENSE
8
+ Requires-Python: >=3.10
9
+ Requires-Dist: httpx>=0.27
10
+ Requires-Dist: mcp<2
11
+ Description-Content-Type: text/markdown
12
+
13
+ # armut-mcp 🇹🇷
14
+
15
+ mcp-name: io.github.mohammad-abbasi-sh/armut-mcp
16
+
17
+ Unofficial **read-only** MCP server for **armut.com**, Türkiye's local-services marketplace — search 6,759 services (cleaning, moving, repairs, lessons and more), browse top professionals with ratings and reviews, read service FAQs, and get price guides with 12 months of average prices and real quote examples.
18
+
19
+ > Built by Mohammad Abbasi as part of the "Turkey MCP factory" (Sepehr-style pipeline). Not affiliated with armut.com.
20
+
21
+ ## For AI agents
22
+
23
+ Add to your MCP client config (stdio):
24
+
25
+ ```json
26
+ {
27
+ "mcpServers": {
28
+ "armut": {
29
+ "command": "uvx",
30
+ "args": ["armut-mcp"]
31
+ }
32
+ }
33
+ }
34
+ ```
35
+
36
+ Or run locally: `python -m armut_mcp.server` (needs `mcp<2`, `httpx`).
37
+
38
+ ## Tools
39
+
40
+ | Tool | Description |
41
+ |------|-------------|
42
+ | `armut_search_services` | Search the 6,759-service catalogue by keyword — `query` ("temizlik", "nakliyat", "boyaci"), Turkish letters fine; returns slug, service_id, price-guide and service-page URLs |
43
+ | `armut_service_detail` | Detail of one service (slug e.g. "ev-temizligi"): name, description, pro count, average rating, review count, service_id |
44
+ | `armut_list_pros` | Top professionals for a service: name, city/district, member since, bio, rating, review count, profile URL; `city` ("istanbul") filters to that city; `limit` 1..40 |
45
+ | `armut_service_faq` | Frequently asked questions for a service, with answers |
46
+ | `armut_price_guide` | Price guide for a service: page-listed min/max price (TRY), 12 months of average/min/max prices with quote counts, total quotes, pro count, rating, real example jobs with winning prices, recent reviews; `city` ("adana") for that city's guide |
47
+ | `armut_trending_services` | What's popular right now: service groups, trending/popular services with pro counts and ratings, most-searched city+service combos |
48
+
49
+ Example output (`armut_search_services` / "temizlik"):
50
+
51
+ ```json
52
+ {"query": "temizlik", "count": 10, "services": [
53
+ {"slug": "ev-temizligi", "name": "Ev Temizligi", "service_id": 191,
54
+ "price_url": "https://armut.com/fiyatlari/ev-temizligi_191",
55
+ "service_url": "https://armut.com/ev-temizligi"}, …]}
56
+ ```
57
+
58
+ Example output (`armut_service_detail` / "ev-temizligi"):
59
+
60
+ ```json
61
+ {"name": "Ev Temizliği", "service_id": 191, "pro_count": 10141,
62
+ "rating_average": 4.6, "review_count": 415591,
63
+ "description": "Güvenilir Ev Temizliği hizmeti al, zaman kazan, garantide ol. …",
64
+ "url": "https://armut.com/ev-temizligi"}
65
+ ```
66
+
67
+ Example output (`armut_list_pros` / "ev-temizligi", istanbul, 1):
68
+
69
+ ```json
70
+ {"service": "Ev Temizliği", "city": "istanbul", "count": 1, "pros": [
71
+ {"name": "Nermin K.", "location": "Şişli, İstanbul", "since": "…",
72
+ "bio": "…", "rating": 4.1, "review_count": 162,
73
+ "profile_url": "https://armut.com/hizmetveren/…"}]}
74
+ ```
75
+
76
+ Example output (`armut_price_guide` / "ev-temizligi", adana):
77
+
78
+ ```json
79
+ {"service": "Ev Temizliği", "service_id": 191, "city": "Adana",
80
+ "currency": "TRY", "min_price_try": 479, "max_price_try": 1024,
81
+ "quote_count": 790, "pro_count": 433, "rating_average": 4.6,
82
+ "monthly_average_try": [
83
+ {"month": "2025-11", "avg_try": 2756.39, "min_try": 1763,
84
+ "max_try": 3806, "quotes": 88}, …]}
85
+ ```
86
+
87
+ Notes:
88
+ - Data comes from armut.com's public server-rendered pages (schema.org Product/ItemList/FAQPage JSON-LD on service pages, `__NEXT_DATA__` on the homepage and price-guide pages, the public price sitemap) — no key, no login, read-only.
89
+ - Turkish `-lik` nouns surface as `-ligi` in slugs ("temizlik" → "ev-temizligi"); the search handles that, so a plain "temizlik" query finds "ev-temizligi".
90
+ - The page-listed min/max price and the 12 monthly averages come from different page fields; the monthly averages (with quote counts) are the more reliable price signal.
91
+ - Requests are spaced ~0.8s apart to stay polite.
92
+ - Environments behind an MITM proxy: set `SSL_CERT_FILE` to a CA bundle that trusts the proxy.
93
+
94
+ ## Development
95
+
96
+ ```bash
97
+ python3 -m venv .venv && .venv/bin/pip install "mcp<2" httpx pytest
98
+ .venv/bin/pip install -e .
99
+ .venv/bin/python -m pytest tests/ -q
100
+ ```
101
+
102
+ - `tests/test_services.py` — offline, parses real captured fixtures (29 tests)
103
+ - `tests/test_live.py` — 8 cautious live requests against armut.com (needs `SSL_CERT_FILE` behind the lab proxy)
104
+
105
+ ## License
106
+
107
+ MIT
@@ -0,0 +1,93 @@
1
+ # armut-mcp 🇹🇷
2
+
3
+ سرور MCP غیررسمی و **فقط‌خواندنی** برای **armut.com**، بازار خدمات محلی ترکیه — جست‌وجو در ۶٬۷۵۹ خدمت (نظافت، اسباب‌کشی، تعمیرات، تدریس خصوصی و بیشتر)، مرور بهترین متخصصان با امتیاز و نظر، پرسش‌های متداول هر خدمت و راهنمای قیمت با میانگین ۱۲ ماهه و نمونه‌های واقعی قیمت‌ها.
4
+
5
+ > ساختهٔ محمد عباسی در قالب «کارخانهٔ Turkey MCP» (خط تولید به سبک سپهر). وابستگی به armut.com ندارد.
6
+
7
+ ## برای ایجنت‌های هوش مصنوعی
8
+
9
+ به پیکربندی کلاینت MCP خود (stdio) اضافه کنید:
10
+
11
+ ```json
12
+ {
13
+ "mcpServers": {
14
+ "armut": {
15
+ "command": "uvx",
16
+ "args": ["armut-mcp"]
17
+ }
18
+ }
19
+ }
20
+ ```
21
+
22
+ یا به‌صورت محلی اجرا کنید: `python -m armut_mcp.server` (نیازمند `mcp<2` و `httpx`).
23
+
24
+ ## ابزارها
25
+
26
+ | ابزار | توضیح |
27
+ |------|-------|
28
+ | `armut_search_services` | جست‌وجو در کاتالوگ ۶٬۷۵۹ خدمتی با کلیدواژه — `query` مثل «temizlik» (نظافت)، «nakliyat» (اسباب‌کشی)، «boyaci» (نقاش)؛ حروف ترکی مشکلی ندارند؛ نام کوتاه، شناسهٔ خدمت، آدرس راهنمای قیمت و صفحهٔ خدمت را برمی‌گرداند |
29
+ | `armut_service_detail` | جزئیات یک خدمت (نام کوتاه مثل «ev-temizligi»): نام، توضیح، تعداد متخصص، میانگین امتیاز، تعداد نظر، شناسهٔ خدمت |
30
+ | `armut_list_pros` | بهترین متخصصان یک خدمت: نام، شهر/منطقه، تاریخ عضویت، معرفی، امتیاز، تعداد نظر، آدرس پروفایل؛ `city` (مثل «istanbul») به آن شهر محدود می‌کند؛ `limit` از ۱ تا ۴۰ |
31
+ | `armut_service_faq` | پرسش‌های متداول یک خدمت با پاسخ‌ها |
32
+ | `armut_price_guide` | راهنمای قیمت یک خدمت: کمینه/بیشینهٔ قیمت در صفحه (لیر)، میانگین/کمینه/بیشینهٔ ۱۲ ماهه با تعداد قیمت‌ها، مجموع قیمت‌ها و متخصصان، امتیاز، نمونه‌های واقعی کار با قیمت برنده و نظرات اخیر مشتریان؛ `city` (مثل «adana») راهنمای آن شهر را می‌دهد |
33
+ | `armut_trending_services` | محبوب‌های الان: گروه‌های خدمت، خدمات ترند و محبوب با تعداد متخصص و امتیاز، پرجست‌وجوترین ترکیب‌های شهر+خدمت |
34
+
35
+ خروجی نمونه (`armut_search_services` / «temizlik»):
36
+
37
+ ```json
38
+ {"query": "temizlik", "count": 10, "services": [
39
+ {"slug": "ev-temizligi", "name": "Ev Temizligi", "service_id": 191,
40
+ "price_url": "https://armut.com/fiyatlari/ev-temizligi_191",
41
+ "service_url": "https://armut.com/ev-temizligi"}, …]}
42
+ ```
43
+
44
+ خروجی نمونه (`armut_service_detail` / «ev-temizligi»):
45
+
46
+ ```json
47
+ {"name": "Ev Temizliği", "service_id": 191, "pro_count": 10141,
48
+ "rating_average": 4.6, "review_count": 415591,
49
+ "description": "Güvenilir Ev Temizliği hizmeti al, zaman kazan, garantide ol. …",
50
+ "url": "https://armut.com/ev-temizligi"}
51
+ ```
52
+
53
+ خروجی نمونه (`armut_list_pros` / «ev-temizligi»، استانبول، ۱):
54
+
55
+ ```json
56
+ {"service": "Ev Temizliği", "city": "istanbul", "count": 1, "pros": [
57
+ {"name": "Nermin K.", "location": "Şişli, İstanbul", "since": "…",
58
+ "bio": "…", "rating": 4.1, "review_count": 162,
59
+ "profile_url": "https://armut.com/hizmetveren/…"}]}
60
+ ```
61
+
62
+ خروجی نمونه (`armut_price_guide` / «ev-temizligi»، آدانا):
63
+
64
+ ```json
65
+ {"service": "Ev Temizliği", "service_id": 191, "city": "Adana",
66
+ "currency": "TRY", "min_price_try": 479, "max_price_try": 1024,
67
+ "quote_count": 790, "pro_count": 433, "rating_average": 4.6,
68
+ "monthly_average_try": [
69
+ {"month": "2025-11", "avg_try": 2756.39, "min_try": 1763,
70
+ "max_try": 3806, "quotes": 88}, …]}
71
+ ```
72
+
73
+ نکته‌ها:
74
+ - داده‌ها از صفحات عمومی سمت‌سرور armut.com می‌آیند (JSON-LD از نوع Product/ItemList/FAQPage در schema.org در صفحات خدمت، `__NEXT_DATA__` در صفحهٔ اصلی و صفحات راهنمای قیمت، و نقشهٔ سایت عمومی قیمت) — بدون کلید، بدون ورود، فقط خواندنی.
75
+ - در ترکی، اسم‌های پایان‌یافته به `-lik` در نام‌های کوتاه به `-ligi` تبدیل می‌شوند («temizlik» ← «ev-temizligi»)؛ جست‌وجو این را در نظر می‌گیرد، پس جست‌وجوی سادهٔ «temizlik»، «ev-temizligi» را هم پیدا می‌کند.
76
+ - کمینه/بیشینهٔ قیمت صفحه و میانگین‌های ۱۲ ماهه از فیلدهای متفاوتی در صفحه می‌آیند؛ میانگین‌های ماهانه (همراه با تعداد قیمت‌ها) نشانهٔ قابل‌اعتمادتری برای قیمت‌اند.
77
+ - بین درخواست‌ها حدود ۰٫۸ ثانیه فاصله گذاشته می‌شود تا به سایت فشار نیاید.
78
+ - پشت پروکسی MITM: متغیر `SSL_CERT_FILE` را به بستهٔ CA مورد اعتماد پروکسی بدهید.
79
+
80
+ ## توسعه
81
+
82
+ ```bash
83
+ python3 -m venv .venv && .venv/bin/pip install "mcp<2" httpx pytest
84
+ .venv/bin/pip install -e .
85
+ .venv/bin/python -m pytest tests/ -q
86
+ ```
87
+
88
+ - `tests/test_services.py` — آفلاین، با نمونه‌های واقعی ذخیره‌شده (۲۹ تست)
89
+ - `tests/test_live.py` — ۸ درخواست محتاطانهٔ زنده به armut.com
90
+
91
+ ## مجوز
92
+
93
+ MIT
@@ -0,0 +1,93 @@
1
+ # armut-mcp 🇹🇷
2
+
3
+ Türkiye'nin yerel hizmetler pazaryeri **armut.com** için resmi olmayan, **salt okunur** MCP sunucusu — 6.759 hizmette arama (temizlik, nakliyat, tamir, özel ders ve daha fazlası), puan ve yorumlarıyla en iyi profesyoneller, hizmet SSS'leri ve 12 aylık ortalama fiyatlar ile gerçek teklif örnekleri içeren fiyat rehberleri.
4
+
5
+ > Mohammad Abbasi tarafından "Turkey MCP factory" (Sepehr tarzı hat) kapsamında geliştirildi. armut.com ile bağlantısı yoktur.
6
+
7
+ ## Yapay zekâ ajanları için
8
+
9
+ MCP istemci yapılandırmanıza (stdio) ekleyin:
10
+
11
+ ```json
12
+ {
13
+ "mcpServers": {
14
+ "armut": {
15
+ "command": "uvx",
16
+ "args": ["armut-mcp"]
17
+ }
18
+ }
19
+ }
20
+ ```
21
+
22
+ Veya yerelde çalıştırın: `python -m armut_mcp.server` (`mcp<2`, `httpx` gerekir).
23
+
24
+ ## Araçlar
25
+
26
+ | Araç | Açıklama |
27
+ |------|----------|
28
+ | `armut_search_services` | 6.759 hizmetlik katalogda anahtar kelimeyle arama — `query` ("temizlik", "nakliyat", "boyaci"), Türkçe harfler sorun değil; kısaltma, hizmet kimliği, fiyat rehberi ve hizmet sayfası adresini döndürür |
29
+ | `armut_service_detail` | Tek hizmetin detayı (kısaltma, örn. "ev-temizligi"): ad, açıklama, profesyonel sayısı, ortalama puan, yorum sayısı, hizmet kimliği |
30
+ | `armut_list_pros` | Bir hizmetin en iyi profesyonelleri: ad, şehir/ilçe, üyelik tarihi, tanıtım yazısı, puan, yorum sayısı, profil adresi; `city` ("istanbul") o şehre filtreler; `limit` 1..40 |
31
+ | `armut_service_faq` | Bir hizmetin sık sorulan soruları ve cevapları |
32
+ | `armut_price_guide` | Bir hizmetin fiyat rehberi: sayfadaki en düşük/en yüksek fiyat (TL), 12 aylık ortalama/en düşük/en yüksek fiyatlar ve teklif sayıları, toplam teklif ve profesyonel sayısı, puan, kazanan fiyatlarıyla gerçek iş örnekleri, son müşteri yorumları; `city` ("adana") o şehrin rehberini verir |
33
+ | `armut_trending_services` | Şu an popüler olanlar: hizmet grupları, trend ve popüler hizmetler (profesyonel sayısı ve puanlarıyla), en çok aranan şehir+hizmet kombinasyonları |
34
+
35
+ Örnek çıktı (`armut_search_services` / "temizlik"):
36
+
37
+ ```json
38
+ {"query": "temizlik", "count": 10, "services": [
39
+ {"slug": "ev-temizligi", "name": "Ev Temizligi", "service_id": 191,
40
+ "price_url": "https://armut.com/fiyatlari/ev-temizligi_191",
41
+ "service_url": "https://armut.com/ev-temizligi"}, …]}
42
+ ```
43
+
44
+ Örnek çıktı (`armut_service_detail` / "ev-temizligi"):
45
+
46
+ ```json
47
+ {"name": "Ev Temizliği", "service_id": 191, "pro_count": 10141,
48
+ "rating_average": 4.6, "review_count": 415591,
49
+ "description": "Güvenilir Ev Temizliği hizmeti al, zaman kazan, garantide ol. …",
50
+ "url": "https://armut.com/ev-temizligi"}
51
+ ```
52
+
53
+ Örnek çıktı (`armut_list_pros` / "ev-temizligi", İstanbul, 1):
54
+
55
+ ```json
56
+ {"service": "Ev Temizliği", "city": "istanbul", "count": 1, "pros": [
57
+ {"name": "Nermin K.", "location": "Şişli, İstanbul", "since": "…",
58
+ "bio": "…", "rating": 4.1, "review_count": 162,
59
+ "profile_url": "https://armut.com/hizmetveren/…"}]}
60
+ ```
61
+
62
+ Örnek çıktı (`armut_price_guide` / "ev-temizligi", Adana):
63
+
64
+ ```json
65
+ {"service": "Ev Temizliği", "service_id": 191, "city": "Adana",
66
+ "currency": "TRY", "min_price_try": 479, "max_price_try": 1024,
67
+ "quote_count": 790, "pro_count": 433, "rating_average": 4.6,
68
+ "monthly_average_try": [
69
+ {"month": "2025-11", "avg_try": 2756.39, "min_try": 1763,
70
+ "max_try": 3806, "quotes": 88}, …]}
71
+ ```
72
+
73
+ Notlar:
74
+ - Veriler armut.com'un herkese açık sunucu taraflı sayfalarından gelir (hizmet sayfalarında schema.org Product/ItemList/FAQPage JSON-LD, ana sayfa ve fiyat rehberi sayfalarında `__NEXT_DATA__`, herkese açık fiyat site haritası) — anahtar yok, giriş yok, salt okunur.
75
+ - Türkçede `-lik` ile biten isimler kısaltmalarda `-ligi` olur ("temizlik" → "ev-temizligi"); arama bunu dikkate alır, yani düz "temizlik" sorgusu "ev-temizligi"ni de bulur.
76
+ - Sayfadaki en düşük/en yüksek fiyat ile 12 aylık ortalamalar sayfanın farklı alanlarından gelir; teklif sayılarıyla birlikte verilen aylık ortalamalar daha güvenilir fiyat göstergesidir.
77
+ - İstekler arasında ~0,8 sn beklenir (nazik kullanım).
78
+ - MITM proxy arkasındaki ortamlar: `SSL_CERT_FILE` ile proxy'ye güvenen bir CA paketi gösterin.
79
+
80
+ ## Geliştirme
81
+
82
+ ```bash
83
+ python3 -m venv .venv && .venv/bin/pip install "mcp<2" httpx pytest
84
+ .venv/bin/pip install -e .
85
+ .venv/bin/python -m pytest tests/ -q
86
+ ```
87
+
88
+ - `tests/test_services.py` — çevrimdışı, gerçek yakalanmış örneklerle (29 test)
89
+ - `tests/test_live.py` — armut.com'a karşı 8 temkinli canlı istek
90
+
91
+ ## Lisans
92
+
93
+ MIT
@@ -0,0 +1,95 @@
1
+ # armut-mcp 🇹🇷
2
+
3
+ mcp-name: io.github.mohammad-abbasi-sh/armut-mcp
4
+
5
+ Unofficial **read-only** MCP server for **armut.com**, Türkiye's local-services marketplace — search 6,759 services (cleaning, moving, repairs, lessons and more), browse top professionals with ratings and reviews, read service FAQs, and get price guides with 12 months of average prices and real quote examples.
6
+
7
+ > Built by Mohammad Abbasi as part of the "Turkey MCP factory" (Sepehr-style pipeline). Not affiliated with armut.com.
8
+
9
+ ## For AI agents
10
+
11
+ Add to your MCP client config (stdio):
12
+
13
+ ```json
14
+ {
15
+ "mcpServers": {
16
+ "armut": {
17
+ "command": "uvx",
18
+ "args": ["armut-mcp"]
19
+ }
20
+ }
21
+ }
22
+ ```
23
+
24
+ Or run locally: `python -m armut_mcp.server` (needs `mcp<2`, `httpx`).
25
+
26
+ ## Tools
27
+
28
+ | Tool | Description |
29
+ |------|-------------|
30
+ | `armut_search_services` | Search the 6,759-service catalogue by keyword — `query` ("temizlik", "nakliyat", "boyaci"), Turkish letters fine; returns slug, service_id, price-guide and service-page URLs |
31
+ | `armut_service_detail` | Detail of one service (slug e.g. "ev-temizligi"): name, description, pro count, average rating, review count, service_id |
32
+ | `armut_list_pros` | Top professionals for a service: name, city/district, member since, bio, rating, review count, profile URL; `city` ("istanbul") filters to that city; `limit` 1..40 |
33
+ | `armut_service_faq` | Frequently asked questions for a service, with answers |
34
+ | `armut_price_guide` | Price guide for a service: page-listed min/max price (TRY), 12 months of average/min/max prices with quote counts, total quotes, pro count, rating, real example jobs with winning prices, recent reviews; `city` ("adana") for that city's guide |
35
+ | `armut_trending_services` | What's popular right now: service groups, trending/popular services with pro counts and ratings, most-searched city+service combos |
36
+
37
+ Example output (`armut_search_services` / "temizlik"):
38
+
39
+ ```json
40
+ {"query": "temizlik", "count": 10, "services": [
41
+ {"slug": "ev-temizligi", "name": "Ev Temizligi", "service_id": 191,
42
+ "price_url": "https://armut.com/fiyatlari/ev-temizligi_191",
43
+ "service_url": "https://armut.com/ev-temizligi"}, …]}
44
+ ```
45
+
46
+ Example output (`armut_service_detail` / "ev-temizligi"):
47
+
48
+ ```json
49
+ {"name": "Ev Temizliği", "service_id": 191, "pro_count": 10141,
50
+ "rating_average": 4.6, "review_count": 415591,
51
+ "description": "Güvenilir Ev Temizliği hizmeti al, zaman kazan, garantide ol. …",
52
+ "url": "https://armut.com/ev-temizligi"}
53
+ ```
54
+
55
+ Example output (`armut_list_pros` / "ev-temizligi", istanbul, 1):
56
+
57
+ ```json
58
+ {"service": "Ev Temizliği", "city": "istanbul", "count": 1, "pros": [
59
+ {"name": "Nermin K.", "location": "Şişli, İstanbul", "since": "…",
60
+ "bio": "…", "rating": 4.1, "review_count": 162,
61
+ "profile_url": "https://armut.com/hizmetveren/…"}]}
62
+ ```
63
+
64
+ Example output (`armut_price_guide` / "ev-temizligi", adana):
65
+
66
+ ```json
67
+ {"service": "Ev Temizliği", "service_id": 191, "city": "Adana",
68
+ "currency": "TRY", "min_price_try": 479, "max_price_try": 1024,
69
+ "quote_count": 790, "pro_count": 433, "rating_average": 4.6,
70
+ "monthly_average_try": [
71
+ {"month": "2025-11", "avg_try": 2756.39, "min_try": 1763,
72
+ "max_try": 3806, "quotes": 88}, …]}
73
+ ```
74
+
75
+ Notes:
76
+ - Data comes from armut.com's public server-rendered pages (schema.org Product/ItemList/FAQPage JSON-LD on service pages, `__NEXT_DATA__` on the homepage and price-guide pages, the public price sitemap) — no key, no login, read-only.
77
+ - Turkish `-lik` nouns surface as `-ligi` in slugs ("temizlik" → "ev-temizligi"); the search handles that, so a plain "temizlik" query finds "ev-temizligi".
78
+ - The page-listed min/max price and the 12 monthly averages come from different page fields; the monthly averages (with quote counts) are the more reliable price signal.
79
+ - Requests are spaced ~0.8s apart to stay polite.
80
+ - Environments behind an MITM proxy: set `SSL_CERT_FILE` to a CA bundle that trusts the proxy.
81
+
82
+ ## Development
83
+
84
+ ```bash
85
+ python3 -m venv .venv && .venv/bin/pip install "mcp<2" httpx pytest
86
+ .venv/bin/pip install -e .
87
+ .venv/bin/python -m pytest tests/ -q
88
+ ```
89
+
90
+ - `tests/test_services.py` — offline, parses real captured fixtures (29 tests)
91
+ - `tests/test_live.py` — 8 cautious live requests against armut.com (needs `SSL_CERT_FILE` behind the lab proxy)
92
+
93
+ ## License
94
+
95
+ MIT
@@ -0,0 +1,22 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "armut-mcp"
7
+ version = "0.1.0"
8
+ description = "Unofficial read-only MCP server for armut.com local services (search, pros, FAQs, price guides)"
9
+ readme = "README.md"
10
+ license = { text = "MIT" }
11
+ requires-python = ">=3.10"
12
+ dependencies = [
13
+ "mcp<2",
14
+ "httpx>=0.27",
15
+ ]
16
+ authors = [{ name = "Mohammad Abbasi" }]
17
+
18
+ [project.scripts]
19
+ armut-mcp = "armut_mcp.server:main"
20
+
21
+ [tool.hatch.build.targets.wheel]
22
+ packages = ["src/armut_mcp"]
@@ -0,0 +1 @@
1
+ {"$schema":"https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json","description":"Unofficial read-only MCP server for armut.com local services: search, pros, FAQs, price guides.","name":"io.github.mohammad-abbasi-sh/armut-mcp","packages":[{"identifier":"armut-mcp","registryBaseUrl":"https://pypi.org","registryType":"pypi","transport":{"type":"stdio"},"version":"0.1.0"}],"repository":{"source":"github","url":"https://github.com/mohammad-abbasi-sh/armut-mcp"},"title":"armut.com Local Services","version":"0.1.0","websiteUrl":"https://github.com/mohammad-abbasi-sh/armut-mcp"}
File without changes