bama-ir-mcp
One line: An unofficial, read-only MCP server that gives AI agents Bama (bama.ir) Iran car-market data — ads, prices, dealers and specs — with no API key.
Search car ads (used/new) with real filters: vehicle (brand/model/trim), Jalali year range, price, mileage, region/city, seller type, transmission, body, fuel, color, paint condition, cylinder, drive, origin, country, presale, installment, with photo/price, sorting, paging (30/page, no total count).
Read one ad in full (car, motorcycle or truck): price, specs, condition, seller, description, photos, live ad counts for the model/trim; optional similar ads. No phone numbers.
Compute asking-price statistics for a model per year: min, quartiles, median, max, sampling up to 5 pages of live ads.
Check new-car trim prices (market, factory, dealer) with daily change %, trend and optional price history.
Search and rank the daily price list across all brands (cheapest, most expensive, biggest rise/drop, domestic vs imported).
Show the market pulse: today's score, trend, Persian analysis and biggest price movers.
Find dealers (showrooms with address and rating) by model or city, and list a dealer's inventory (up to 100 ads) with filters and sorting.
Search motorcycle and truck ads with section-specific filters (usage, body, fuel, etc.).
Get technical specs and reviews: power, torque, dimensions, expert rating, pros/cons, trims and generations; optional equipment lists.
Look up valid filter values: brands, models, trims via
ba_vehicles; regions, body, fuel, color, country, cylinder, drive, engine volume, economy, origin, lifestyle, year, truck usage viaba_filters.Constraints: read-only (cannot log in, post ads, message sellers), asking prices not sale prices, Toman prices, Jalali years, compact JSON, Persian text, Iran-only vehicles.
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., "@bama-ir-mcp Show me 2020 Toyota Corolla ads in Tehran under 2 billion toman"
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.
bama-ir-mcp: Bama (باما) Iran car marketplace MCP server for AI agents
bama-ir-mcp is an unofficial, read-only MCP server that gives AI agents the car ads and price lists of Bama (bama.ir), Iran's car marketplace. Its 12 tools search used and new car, motorcycle and truck ads with real filters, read one ad in full, compute asking-price statistics for a model, search and rank the new-car price list, show the daily market mood, return technical specs and expert ratings, browse a dealer's inventory and look up brand, model and filter values. No API key or Bama account is needed. It works in Claude, Cursor, Copilot and any other MCP client.
For AI agents · Quick start · Tools · FAQ
For AI agents
What: unofficial MCP server (model context protocol) for bama.ir: car ad search (brand/model/trim, year, price, mileage, city, seller, gearbox, body, fuel, color, paint condition, installment), ad details, market price statistics per model and year, new-car price list with trend, dealers and their inventory, motorcycle and truck ads, technical specs and ratings, market pulse.
Install:
uvx bama-ir-mcporclaude mcp add bama -- uvx bama-ir-mcp. Transport: stdio. Needs uv (Python 3.10+).Auth: none. Optional
BAMA_MCP_PROXY(HTTP proxy URL, or a comma-separated list); system proxy settings are ignored.Access: read-only. It cannot log in, post ads, message sellers or read phone numbers.
Tools: 12, all prefixed
ba_. Typical sequences:ba_vehicles->ba_search->ba_ad;ba_vehicles->ba_market_stats;ba_new_prices/ba_price_list;ba_car_specs;ba_dealers->ba_dealer_ads;ba_filters->ba_search.Use when: the user asks what a used or new car costs in Iran, wants listings by model, year, mileage or city, wants to compare asking prices, or needs a dealer.
Do not use when: a car outside Iran, or actual sale prices (these are asking prices).
Output: compact JSON. Prices are Toman, years Jalali (imports may show Gregorian), mileage km, text Persian.
Related MCP server: karnameh-mcp
Quick start
claude mcp add bama -- uvx bama-ir-mcpOther clients: command uvx, args ["bama-ir-mcp"].
Tools
Tool | What it does |
| Car ads with filters, 30 per page, sortable. |
| One car, motorcycle or truck ad in full, with the real number of ads for that model; optional similar ads. |
| Min, quartiles, median, max asking price for a model, per year, from live ads. |
| Today's price of new-car trims (market, factory, dealer) with daily change and trend. |
| Showrooms with ads for a model or city, with address and rating. |
| Motorcycle or truck ads with filters (brand, year, price, city, body, usage...). |
| One dealer's inventory (up to 100 ads) with filters and sorting. |
| Search and rank the daily new-car or motorcycle price list by brand, price type, origin. |
| Today's market score and analysis plus the biggest new-car price movers. |
| Technical specs, expert rating, pros and cons, trims of a car or motorcycle model. |
| Brand, model and trim values for the other tools (cars, motorcycles, trucks). |
| Values for region, body, fuel, color, country, truck usage and other filters. |
FAQ
Does it need the internet from Iran? Bama answers from inside Iran and through most proxies. Set BAMA_MCP_PROXY to route through one.
Why a sample, not a total? Bama gives no result count and 30 ads per page; ba_market_stats samples up to 5 pages and says so.
Is it allowed? It calls the same public JSON the website uses, serially and with caching. It does not bypass any browser check.
Author: Sepehr Radmard (سپهر رادمرد), github.com/sepehr071, linkedin.com/in/sepehr-radmard. Not affiliated with Bama.
مجوز استفاده (License)
استفادهٔ شخصی و غیرتجاری رایگان است. استفاده در شرکت، محصول پولی یا پروژهٔ مشتری به مجوز تجاری نیاز دارد؛ از راه لینکدین یا گیت‌هاب با سپهر رادمرد تماس بگیرید. متن کامل: PolyForm Noncommercial 1.0.0. نسخه‌های پیش از 0.2.1 با مجوز MIT منتشر شده‌اند و همان مجوز را دارند.
Free for personal and non-commercial use under the PolyForm Noncommercial License 1.0.0. Using it in a company, a paid product or a client project needs a commercial license: contact Sepehr Radmard on LinkedIn or GitHub. Versions before 0.2.1 were released under MIT and stay under it.
Available Tools
12 toolsba_adAd detailsARead-onlyIdempotent
Get one Bama ad (car, motorcycle or truck) in full: price, specs, condition, seller, description and photos.
Use after ba_search or ba_search_bikes_trucks. ads_of_same_model / ads_of_same_trim are the real live ad counts; similar_total counts Bama's wider pool. Phone numbers are not available.
Inputs: code (required), kind, similar.
ba_car_specsCar and motorcycle specs and reviewARead-onlyIdempotent
Technical specifications and the editorial review score of a car or motorcycle model from Bama's research pages.
Without model it lists the brand's models. Returns power, torque, dimensions, rating, pros/cons, trims and generations. ba_ad shows what is for sale, ba_new_prices the new price.
Inputs: brand (required), trim, model, vehicle_type, +2 more.
ba_dealer_adsDealer inventoryARead-onlyIdempotent
List the ads of one dealer (showroom) on Bama: the dealer's whole inventory, up to the first 100 ads.
Use after ba_dealers. Filters and sorting run on the fetched list. Returns address, location and compact ads.
Inputs: dealer_id (required), sort, limit, query, +3 more.
ba_dealersDealers selling a modelARead-onlyIdempotent
List car dealers (showrooms) with ads for a model or city on Bama, with address, rating and how many ads match.
Scans the first pages of dealer-only ads. Then ba_dealer_ads for one showroom or ba_search seller=dealer.
Inputs: pages, region, vehicle.
ba_filtersFilter valuesARead-onlyIdempotent
List the allowed values of one ba_search filter (states and cities, body types, fuels, colors, years...).
E.g. kind=region query=اصفهان gives 'isfahan'; region lists states only unless query is given. Trucks: vehicle_type=truck kind=usage; motorcycles: kind=body, fuel or color. Not every kind exists for every section.
Inputs: kind (required), query, vehicle_type.
ba_market_pulseCar market pulseARead-onlyIdempotent
Today's car market mood from Bama (score, trend and a short analysis per market) plus the biggest price movers.
The analysis is Bama's Persian text. Movers are new cars with the largest price change; follow up with ba_new_prices or ba_price_list.
Inputs: movers.
ba_market_statsUsed-car market price statsARead-onlyIdempotent
Price statistics (min, quartiles, median, max, per year) for a car model from live Bama ads.
Samples the newest matching ads with a fixed price (no negotiable, installment or presale), Toman. Asking prices, not sale prices. Narrow with year, mileage, region; ba_search sort=cheapest shows the ads.
Inputs: pages, region, seller, vehicle, +5 more.
ba_new_pricesNew-car pricesARead-onlyIdempotent
Current price of every new-car trim of a brand or model on Bama's price list (market price or factory price).
Each row is one trim and year: Toman price, provider (قیمت بازار market, قیمت کارخانه factory, قیمت نمایندگی dealer), daily change percent and a 30-quote trend. Brand-wide queries can be long; pass model and trim for one. See also ba_price_list (all brands), ba_market_stats (used), ba_car_specs.
Inputs: brand (required), trim, model, history_days.
ba_price_listNew-car price listARead-onlyIdempotent
Search Bama's daily price list of new cars (or motorcycles) across all brands and rank it.
Each row is one trim, year and price type: Toman price and change since the last quote. Use sort for "cheapest" or "biggest_rise". One model's history: ba_new_prices; specs: ba_car_specs.
Inputs: sort, limit, search, imported, +2 more.
ba_searchSearch car adsARead-onlyIdempotent
Search used and new car ads on Bama (bama.ir) with filters; up to 30 compact ads per page.
Get vehicle values from ba_vehicles and other values from ba_filters. Prices Toman, mileage_km 0 = zero-km. Then ba_ad for one code, ba_market_stats for statistics. No total count: page while has_more is true. Motorcycles and trucks: ba_search_bikes_trucks.
Inputs: body, fuel, page, sort, +22 more.
ba_search_bikes_trucksSearch motorcycle and truck adsARead-onlyIdempotent
Search motorcycle or truck (heavy vehicle, bus, machinery) ads on Bama with filters.
Get values from ba_vehicles / ba_filters with the same vehicle_type. Prices Toman. Then ba_ad with a code. No total count: page while has_more is true. Cars: ba_search.
Inputs: kind (required), body, fuel, page, +18 more.
ba_vehiclesBrands, models and trimsARead-onlyIdempotent
Look up the brand, model and trim values that ba_search, ba_market_stats and ba_new_prices take.
query finds matches (up to 25); brand lists its models and trims; neither lists all brands. Values look like 'samand', 'samand,lx', 'peugeot,206ir,type2'. vehicle_type motorcycle/truck feeds ba_search_bikes_trucks.
Inputs: brand, query, vehicle_type.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Most tools are clearly separated by resource and action (ad detail vs. ad search, used market stats vs. new price list, dealers vs. dealer inventory), and descriptions explicitly cross-reference the right follow-up tool. The one real overlap is ba_new_prices vs. ba_price_list (both new-car price surfaces), distinguished only by 'one brand/model' vs. 'across all brands with ranking', which an agent could still mix up.
All names share a consistent ba_ prefix with snake_case and descriptive noun phrases (ba_market_stats, ba_dealer_ads, ba_price_list). It is not a verb_noun scheme, and a couple of names are long/compound (ba_search_bikes_trucks), but the convention is uniform and readable throughout.
Twelve tools is well within the sweet spot and each one maps to a distinct capability: search, detail, specs, stats, dealers, lookup tables, and price lists. No tool looks redundant or filler.
The surface covers the full read-only lifecycle: discover vehicles/filters, search cars or bikes/trucks, fetch an ad, get specs, market statistics, dealer discovery and inventory, and new-car pricing. The only notable gaps are the acknowledged lack of total result counts (forcing pagination) and no aggregate/compare or history-over-time tool beyond the 30-quote trend.
Maintenance
Related MCP Connectors
Automotive data for AI agents: VIN decode, listings, specs, build data, recalls, payments, taxes.
Car-listing search and used-car market analysis as agent tools.
Search live US dealership inventory, get market prices, and send buyer inquiries. Free, no API key.
Automotive inventory search for AI assistants: vehicles, dealers, deals, and market data.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI agents to search and read Divar classified ads across Iranian cities, covering homes, cars, phones and more, with price statistics, deal finding, fair-price appraisal, ad comparison and map browsing. It is read-only, needs no account or API key, and returns compact JSON with prices in Toman.831471 PyPI1PolyForm Noncommercial 1.0.0
- AlicenseAqualityBmaintenanceEnables AI agents to read public Iranian car-marketplace data, including filtered used-car ads, full ad details, new-car prices and history, spec comparisons, and magazine articles, without an API key.15142 PyPI2PolyForm Noncommercial 1.0.0
- AlicenseAqualityBmaintenanceEnables AI agents to read public Hamrah Mechanic data read-only with no API key: daily Iranian car market prices by brand, model, trim and year, price ranges and monthly history, filtered used and zero-km listings with full ad details, inspection fees, showroom locations, and expert reviews and magazine articles. Works in Claude, Cursor, Copilot and other MCP clients over stdio.12164 PyPI2PolyForm Noncommercial 1.0.0
- AlicenseAqualityBmaintenanceThis server enables AI agents to search, analyze, and retrieve detailed information from classified advertisements across Iran. It facilitates comprehensive market research by summarizing asking prices and providing metadata for various categories and filters.11287 PyPI2PolyForm Noncommercial 1.0.0