gratis-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@gratis-mcp Gratis'te şampuan ara ve fiyat aralığını göster"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
gratis-mcp
Unofficial read-only MCP server for Gratis (gratis.com) — Türkiye's #1 personal-care & cosmetics retail chain (800+ stores in 81 provinces, founded 2009, 486 brands, 19.5M+ Gratis Kart members): product search, full product detail, reviews, category listings, the category tree, the brand directory, price statistics and the store locator.
mcp-name: io.github.mohammad-abbasi-sh/gratis-mcp
Tools
Tool | What it does |
| Search products by keyword (Turkish), e.g. |
| Full detail of one product (numeric id, e.g. |
| Reviews of one product: total count, average rating and the review list (rating, comment, masked reviewer, date). |
| Products of one category (id from |
| The full nested category tree: 14 top-level departments with subcategories down to leaf level. |
| The brand directory (486 brands): name + numeric id, optional name filter. |
| Price statistics for a search (first 24 results): min / median / mean / max in TRY, cheapest / most expensive, discount share, top categories. |
| Gratis stores (926 stores): name, city, district, address, phone, store type, returns, coordinates, opening hours per weekday. Optional city filter, e.g. |
| Reachability check (one search against the API). |
Related MCP server: hepsiburada-mcp
Install
Requires Python 3.10+. The package is published on PyPI (pending publisher setup — see below); once live:
uvx gratis-mcpClaude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"gratis": {
"command": "uvx",
"args": ["gratis-mcp"]
}
}
}No login, no API key. Read-only: the server only calls the storefront's public read-only API.
For AI agents
Search is Turkish: use Turkish keywords (
şampuan, notshampoo). Results carryexact_match— a nonsense query returns zero results (itemCount: 0), soexact_match: falsemeans the site found nothing.Prices are live and move with campaigns.
price_tryis the effective shelf price,gratis_card_price_tryis the Gratis Kart member price (often ~50% off),list_price_trythe non-discounted price. Verify price and availability on gratis.com before buying.Product ids are numeric strings (e.g.
10217999) — find one withgratis_search_productsfirst, then pass it togratis_get_product/gratis_product_reviews.Category ids are numeric strings from
gratis_list_categories(e.g.502= Cilt Bakım / skincare,503= Saç Bakım / hair care). Brand filters use the numeric brand id fromgratis_list_brands.There is no server-side sort: results come in the site's default order; sort the returned page client-side if needed.
Every response includes
fetched_at(UTC) andsource.
How it works
All data comes from the storefront's own public Retter backend (
api.gratis.retter.io, project1oakekr4e) — the same endpoints the website's JavaScript calls:CALL/Search/search,CALL/Product/getProductDetail/<id>,CALL/Product/getReviews/<id>,CALL/Search/getCategoryTree,CALL/Search/getBrands,CALL/StoreManager/getStores/default.GET calls that carry an input object follow the Retter SDK convention: the input JSON is key-sorted, JSON-stringified, base64-encoded and sent as the
dataquery param with__isbase64=true(plus__culture=tr-TRand__platform=WEB). A plain?query=<json>is rejected by the server's input validation.Search returns 24 products per page with prices as integer kuruş (converted to TRY), stock status, categories, review counts and image URLs. Category listings are the same search with a
categoriesfilter.Prices are integers in kuruş in the API (71900 = 719.00 TL) and are exposed as TRY floats.
Transport is plain HTTPS with a browser user-agent (the API answers plain requests with HTTP 200 — no bot wall). Requests are spaced ~0.5s apart and retried once on transport errors.
Caveats
Gratis runs frequent campaigns: a price seen in the morning can change the same day. The server always returns what the API returns at fetch time.
Review paging is not exposed by the API:
gratis_product_reviewsreturns the review list the API returns for the product (usually the most recent page).Descriptions are HTML on the site; the server returns them as plain text (truncated to 2000 chars).
The store list is large (926 stores) — use the
cityfilter to narrow it down.
License
PolyForm Noncommercial 1.0.0 — free for personal and non-commercial use; commercial use needs a separate license.
Built by Mohammad Abbasi — Almanibama · mabbasi.ir
Available Tools
9 toolsgratis_category_productsA
Products of one Gratis category.
category_id: a category id from gratis_list_categories, e.g. "502" (Cilt Bakım / skincare), "503" (Saç Bakım / hair care). page: result page (24 products per page, default 1). limit: how many of the page to return (1-50, default 10).
Inputs: category_id (required), page, limit. Returns: result
gratis_get_productA
Full detail of one Gratis product.
product_id: the numeric Gratis product id, e.g. "10217999" (find one with gratis_search_products first). Returns name, brand, current / list / Gratis Kart prices in TRY, stock status, categories, volume, EAN, origin, plain-text description, features, keywords, visible attributes, review summary, view/sales/favourite counts, variant products and image URLs.
Inputs: product_id (required). Returns: result
gratis_healthA
Check whether Gratis is reachable right now.
Returns status ok (HTTP 200), blocked (HTTP 429 — rate limit) or error, plus the HTTP status and the probed URL. One polite search against the API; it fetches no product detail.
Inputs: no named parameters. Returns: result
gratis_list_brandsA
Gratis' brand directory (486 brands).
query: optional substring to filter brand names, e.g. "loreal" (Turkish-insensitive). Returns each brand's Turkish name and numeric id. No arguments lists all brands.
Inputs: query. Returns: result
gratis_list_categoriesA
Gratis' full nested category tree.
Returns 14 top-level departments (Makyaj, Cilt Bakım, Saç Bakım, ...) with their subcategories down to leaf level, each with its Turkish name and numeric id. Use a category's id with gratis_category_products. No arguments.
Inputs: no named parameters. Returns: result
gratis_list_storesA
Gratis stores in Türkiye (926 stores).
city: optional Turkish city name to filter by, e.g. "İstanbul", "Ankara", "İzmir" (substring match, case-insensitive). limit: how many stores to return (1-50, default 20). Returns each store's name, city, district, neighbourhood, address, phone, store type, whether it accepts returns, latitude/longitude and opening hours per weekday — plus the full list of cities the locator covers.
Inputs: city, limit. Returns: result
gratis_price_statsA
Price statistics for a Gratis search (first 24 results).
query: e.g. "şampuan". Returns the search total, the number of products analysed, min / median / mean / max shelf price in TRY, the cheapest and most expensive product, how many are discounted and the average discount, and the most common categories. Use it to answer "how much does X cost at Gratis?" without paging through listings.
Inputs: query (required). Returns: result
gratis_product_reviewsA
Reviews of one Gratis product.
product_id: the numeric Gratis product id, e.g. "10217999". Returns the total review count, the average rating and the review list (rating, comment, masked reviewer name, date).
Inputs: product_id (required). Returns: result
gratis_search_productsA
Search Gratis products by keyword (Turkish).
query: e.g. "şampuan" (shampoo), "ruj", "güneş kremi". page: result page (24 products per page, default 1). limit: how many of the page to return (1-50, default 10). in_stock: only products in stock. Returns each product's name, id, brand, current / list / Gratis Kart prices in TRY, discount %, stock status, categories, volume, review counts and URL. A nonsense query returns zero results (exact_match false).
Inputs: query (required), page, limit, in_stock. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Most tools target a distinct resource+action (detail, reviews, categories, brands, stores, health), and descriptions clearly explain when to use each. The only mild overlap is between gratis_search_products, gratis_category_products and gratis_price_stats, which all revolve around querying product listings, though keyword browse vs. category browse vs. aggregate stats are reasonably differentiated.
All names share a consistent gratis_ prefix and snake_case, which makes them predictable. However, the convention mixes verb_noun (get_product, search_products, list_categories) with noun_noun (product_reviews, category_products, price_stats) and a bare noun (health), a minor deviation from a single pattern.
Nine tools is well within the ideal range and each one earns its place: discovery (search, category, brand), detail (product, reviews), aggregation (price stats), plus stores and health. No tool feels redundant or like filler.
The surface covers the core shopping-research lifecycle (find, inspect, review, price-compare, locate stores) but has notable gaps: gratis_list_brands returns numeric brand ids with no tool that consumes a brand id, so listing products by brand is a dead end. There is also no filtering/sorting on search (brand, category, price) and no pagination on reviews.
Maintenance
Related MCP Connectors
Turkey data API for AI agents: 40 tools + search/call for 230+ endpoints. Addresses (provinces, districts, postal codes, boundaries), validation (IBAN, tax ID/VKN, TCKN, phone, barcode), tax and salary calculators, Official Gazette, exchange rates, gold, crypto, economic indicators, prayer times, holidays and business days, weather, air quality, earthquakes, dam levels, fuel prices, EV charging, power outages, tolls, pharmacies on duty, football standings. Turkish JSON, free plan.
Live data for AI agents. Search the catalog, read the price, call the tool; keys stay server-side.
Official data for AI assistants: medicines, recalls, cosmetics, money, travel, places, prices.
Public K-beauty catalog, product search, and latest-offers tools with canonical product facts.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables querying Turkish market prices, searching products, and comparing prices across different stores using the Market Fiyatı API.38 npm38MIT
- AlicenseAqualityBmaintenanceEnables read-only product search, product-detail lookup, review retrieval, category browsing, and price statistics for a Turkish e-commerce marketplace.6PolyForm Noncommercial 1.0.0
- AlicenseAqualityBmaintenanceProvides read-only access to Migros Sanal Market's public catalogue, enabling product search, product details, category and promotion listings, and price statistics for Turkish supermarket items.5PolyForm Noncommercial 1.0.0
- AlicenseAqualityBmaintenanceEnables read-only browsing of BİM's weekly Aktüel and İndirim deals, letting users search priced products, view per-week price statistics, and list product categories and Turkish provinces.7PolyForm Noncommercial 1.0.0