iran-bus-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., "@iran-bus-mcp What's the cheapest bus from Tehran to Isfahan tomorrow?"
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.
iran-bus-mcp: Iran bus tickets (بلیط اتوبوس) MCP server for AI agents, Safar724
iran-bus-mcp is an unofficial, read-only MCP server that lets an AI agent search intercity bus trips, prices in Toman and free seats on Safar724 (سفر ۷۲۴, safar724.com), the Iranian bus ticket marketplace. Its 5 tools look up cities, list the trips between two cities on a day, find the cheapest ticket, list terminals and companies on a route, and show the free seats and refund rules of one trip. No API key or account is needed; it works in Claude, Cursor, Copilot and any other MCP client.
For AI agents · Quick start · Tools · Limits · فارسی
For AI agents
What: unofficial MCP server (model context protocol) for Iranian intercity bus tickets. Only Safar724 is covered today; every tool has a
providerargument (allby default) so more ticket sites can join.Install:
uvx iran-bus-mcporclaude mcp add iran-bus -- uvx iran-bus-mcp. Transport: stdio. Needs uv (Python 3.10+).Auth: none. Optional
IRAN_BUS_MCP_PROXY(HTTP proxy URL, or a comma-separated list); system proxy settings are ignored.Access: read-only. It cannot hold a seat, book or pay, and there is no login.
Tools: 5, all prefixed
bus_.Use when: the user asks which buses run between two Iranian cities on a day, what a ticket costs, which is the cheapest, which terminal it leaves from, or whether seats are left.
Output: compact JSON. Prices are Toman per seat. Cities are Persian or English names; dates are Jalali (
1405/08/28), Gregorian (2026-11-19),todayortomorrow(Tehran time). Company and bus-type text is Persian.
Related MCP server: flytoday-mcp
Quick start
You need uv. No API key or account.
Claude Code:
claude mcp add iran-bus -- uvx iran-bus-mcpClaude Desktop, Cursor, VS Code and other clients:
{
"mcpServers": {
"iran-bus": { "command": "uvx", "args": ["iran-bus-mcp"] }
}
}Example prompts:
"What is the cheapest bus from Tehran to Isfahan tomorrow?"
"List bus trips from Tehran to Mashhad on 1405/08/30 and show free seats."
"Which terminals do Tehran to Shiraz buses leave from?"
ارزانترین بلیط اتوبوس تهران به اصفهان برای فردا کدام است؟
اتوبوسهای تهران به تبریز در روز ۳۰ آبان را با قیمت و صندلی خالی نشان بده.
A real answer (bus_cheapest, Tehran to Isfahan, 17 Nov 2026 for 1405/08/27): the cheapest trip was 544,500 Toman at 22:30 with Royal Safar Iranian (رویال سفر ایرانیان), 29 seats free, from the Beyhaghi (Argentina) terminal; next were two 551,000 Toman trips at 12:30 and 13:45 from the southern terminal (Khazaneh). Prices and seats change as tickets sell.
Tools
Tool | What it does |
| Look up cities (name, code, province) that tickets can be bought for; use it to spell a city exactly. |
| List bus trips between two cities on one day: time, company, bus type, price in Toman, free seats, terminals. |
| Cheapest bus trips between two cities on one day, merged across providers and sorted by price in Toman. |
| List the departure and arrival terminals that have trips on a route and the companies running them. |
| Seat map summary and refund penalties of one trip: free seat numbers, seats taken by men or women. |
Limits
Only Safar724 works. payaneh.ir (پایانه) is not supported.
Trips come only for days Safar724 sells; a past date is refused. Trips that continue past the destination are listed with their
viacity.The site's VIP flag is unreliable, so VIP is read from the bus-type text.
Prices and free seats are a snapshot. Booking and payment happen on safar724.com.
Works from Iranian and foreign networks (tested from both). Set
IRAN_BUS_MCP_PROXYif your network blocks it; the server ignores system proxy variables on purpose.
فارسی
iran-bus-mcp یک سرور MCP غیررسمی و فقطخواندنی است که به ایجنت هوش مصنوعی اجازه میدهد سفرهای اتوبوس بینشهری، قیمت به تومان و صندلیهای خالی را در سفر ۷۲۴ (safar724.com) جستوجو کند. ارزانترین بلیط، پایانهها و شرکتهای یک مسیر و نقشهٔ صندلی هر سفر را میدهد. رزرو و پرداخت ندارد. سایت پایانه (payaneh.ir) فعلاً پشتیبانی نمیشود. نصب در Claude Code:
claude mcp add iran-bus -- uvx iran-bus-mcpDevelopment
uv sync
uv run ruff check . && uv run ruff format --check .
uv run python -m pytest -q # offline tests on recorded fixtures
uv run python -m pytest -m live -q # live calls to Safar724Releases: bump the version in pyproject.toml and server.json, run uv lock, then push a v* tag; GitHub Actions publishes to PyPI.
Disclaimer
Unofficial and not affiliated with or endorsed by Safar724. It is read-only and uses the public pages and API of that site, which can change without notice.
Author
Built and maintained by Sepehr Radmard (سپهر رادمرد). LinkedIn · GitHub · more servers in iran-mcp.
مجوز استفاده (License)
استفادهٔ شخصی و غیرتجاری رایگان است. استفاده در شرکت، محصول پولی یا پروژهٔ مشتری به مجوز تجاری نیاز دارد؛ از راه لینکدین یا گیت‌هاب با سپهر رادمرد تماس بگیرید. متن کامل: PolyForm Noncommercial 1.0.0. نسخه‌های پیش از 0.1.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.1.1 were released under MIT and stay under it.
Available Tools
5 toolsbus_cheapestCheapest bus ticketsARead-onlyIdempotent
Cheapest bus trips between two cities on one day, merged across providers and sorted by price in Toman.
Each trip carries its provider. A provider that failed is listed under errors.
Inputs: date (required), origin (required), destination (required), limit, +2 more.
bus_citiesFind bus citiesARead-onlyIdempotent
Look up cities (name, code, province) that tickets can be bought for; use it to spell a city exactly.
Inputs: query (required), provider.
bus_searchSearch bus tripsARead-onlyIdempotent
List bus trips between two cities on one day: time, company, bus type, price in Toman, free seats, terminals.
One block per provider with the trip count and the price range. Trips with no free seat are left out. The trip id feeds bus_trip.
Inputs: date (required), origin (required), destination (required), sort, +3 more.
bus_terminalsBus terminals on a routeBRead-onlyIdempotent
List the departure and arrival terminals that have trips on a route and the companies running them.
Inputs: date (required), origin (required), destination (required), provider.
bus_tripBus trip seats and refund rulesBRead-onlyIdempotent
Seat map summary and refund penalties of one trip: free seat numbers, seats taken by men or women.
Inputs: trip_id (required), destination (required), provider.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a distinct slice of the bus-ticket domain: city lookup, route search, cheapest-price aggregation, terminal listing, and single-trip seat map. The main overlap is bus_search vs bus_cheapest, since both take two cities and a date, but the descriptions make clear that one returns per-provider detail and the other returns a merged price-sorted list.
All five tools share a predictable `bus_` prefix followed by a short lowercase token (cities, terminals, search, cheapest, trip). The only minor wobble is that some suffixes are nouns and others are actions, but the pattern stays readable and scannable.
Five tools is well-scoped for a read-only bus-ticket lookup service, and each one maps to a genuine step in the user journey (pick city, find route, compare price, inspect terminals, inspect trip). No tool feels redundant or missing from the count itself.
The surface covers discovery, search, price comparison, route context, and seat/refund detail, so an agent can answer most travel questions end to end. Gaps exist around booking/purchase and provider-level fallbacks, but these may be intentionally out of scope for a lookup server.
Maintenance
Related MCP Connectors
Free web search, 130M+ business records, local search, weather and travel data for AI agents.
Omio MCP server for ChatGPT, Claude and any AI agent: search trips, find the cheapest day and start booking in your own Omio account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Omio yourself; Cotlet does not store your password and you need no Omio API key. About the official Omio API: Omio has no public API for your own account (checked 24 Oct 2026). Its affiliate programme lists a Search API for partners, and its app in ChatGPT searches trips; Your Bookings, saved travelers and checkout work only on omio.com and in the Omio app. Setup and FAQ: https://cotlet.dev/integrations/omio-api-mcp-server
Give AI assistants access to real-time data. Search the web, compare flights, find hotels, and more.
Web search, browser automation, scraping, crawling and CAPTCHA solving for AI agents.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI agents to search and compare the cheapest flights, trains, buses, private taxis and hotels across Iran, including free seats, baggage allowances, refund rules and exact prices, for a single date or across weeks. All 22 tools are read-only and return compact structured JSON, so an agent can plan multi-mode trips and hotel stays without logging in or booking.22313 PyPI2PolyForm Noncommercial 1.0.0
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to compare and find the cheapest domestic and international flights, hotels, villas, trains and buses in Iran, with exact Toman prices, fare and cancellation rules, baggage details, seats left and hotel reviews. Also covers CIP lounges, eSIM plans, visas and tours, and is read-only, so it never books, holds seats or pays.364 PyPI2PolyForm Noncommercial 1.0.0
- AlicenseAqualityBmaintenanceEnables AI agents to search read-only Alibaba (alibaba.ir) travel listings for trains, buses, domestic and international flights, hotels, villas, holiday homes, and tour packages, including prices, availability, seat maps, and cheapest travel days.14192 PyPIPolyForm Noncommercial 1.0.0
- AlicenseAqualityBmaintenanceProvides read-only access to obilet.com's Türkiye bus and flight ticket data, letting agents search locations, list bus journeys for a route and date with prices, seats, and ratings, fetch full journey details, compute price statistics, and read flight summaries. No login or API key is required, and individual flight listings are out of scope.5MIT