Skip to main content
Glama
bama-ir-mcp

bama-ir-mcp

by sepehr071

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-mcp or claude 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-mcp

Other clients: command uvx, args ["bama-ir-mcp"].

Tools

Tool

What it does

ba_search

Car ads with filters, 30 per page, sortable.

ba_ad

One car, motorcycle or truck ad in full, with the real number of ads for that model; optional similar ads.

ba_market_stats

Min, quartiles, median, max asking price for a model, per year, from live ads.

ba_new_prices

Today's price of new-car trims (market, factory, dealer) with daily change and trend.

ba_dealers

Showrooms with ads for a model or city, with address and rating.

ba_search_bikes_trucks

Motorcycle or truck ads with filters (brand, year, price, city, body, usage...).

ba_dealer_ads

One dealer's inventory (up to 100 ads) with filters and sorting.

ba_price_list

Search and rank the daily new-car or motorcycle price list by brand, price type, origin.

ba_market_pulse

Today's market score and analysis plus the biggest new-car price movers.

ba_car_specs

Technical specs, expert rating, pros and cons, trims of a car or motorcycle model.

ba_vehicles

Brand, model and trim values for the other tools (cars, motorcycles, trucks).

ba_filters

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 tools
ba_adAd detailsA
Read-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 reviewA
Read-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 inventoryA
Read-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 modelA
Read-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 valuesA
Read-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 pulseA
Read-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 statsA
Read-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 pricesA
Read-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 listA
Read-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_search_bikes_trucksSearch motorcycle and truck adsA
Read-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 trimsA
Read-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

    A4/5.0

    Scored across 12 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables 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.
      8
      31
      471 PyPI
      1
      PolyForm Noncommercial 1.0.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables 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.
      15
      142 PyPI
      2
      PolyForm Noncommercial 1.0.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables 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.
      12
      164 PyPI
      2
      PolyForm Noncommercial 1.0.0
    • A
      license
      A
      quality
      B
      maintenance
      This 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.
      11
      287 PyPI
      2
      PolyForm Noncommercial 1.0.0