Iran Bus Tickets MCP Server
Read-only Iranian bus tickets (Safar724): trips, Toman prices, free seats, cheapest ticket.
Iran Bus Tickets scores 56 (Fair), with no SPDX license recorded and written in Python. It installs as a local process. It declares 5 tools. Filed under Uncategorized. GitHub shows 0 stars. Package registries report about 85 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
56 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- No license recorded.
License, quality and maintenance
Where the 56 comes from
22 + 20 + 0 + 0 + 4 + 10 = 56. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 0 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "sepehr071-iran-bus-mcp": { "command": "uvx", "args": [ "iran-bus-mcp" ], "env": { "IRAN_BUS_MCP_PROXY": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
IRAN_BUS_MCP_PROXY | Optional | Optional HTTP proxy URL for the bus-site requests; system proxy settings are ignored. Also accepts a comma-separated list: one is used until it gets blocked or fails to connect, then the next. |
Tools5Tool docs quality grade C
All capabilitiesbus_cheapesttoolCheapest bus trips between two cities on one day, merged across providers and sorted by price in Toman.
bus_citiestoolLook up cities (name, code, province) that tickets can be bought for; use it to spell a city exactly.
bus_searchtoolList bus trips between two cities on one day: time, company, bus type, price in Toman, free seats, terminals.
bus_terminalstoolList the departure and arrival terminals that have trips on a route and the companies running them.
bus_triptoolSeat map summary and refund penalties of one trip: free seat numbers, seats taken by men or women.
About
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.
Quick start
You need uv. No API key or account.
Claude Code:
claude mcp add iran-bus -- uvx iran-bus-mcp
Claude 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 |
|---|---|
bus_cities | Look up cities (name, code, province) that tickets can be bought for; use it to spell a city exactly. |
bus_search | List bus trips between two cities on one day: time, company, bus type, price in Toman, free seats, terminals. |
bus_cheapest | Cheapest bus trips between two cities on one day, merged across providers and sorted by price in Toman. |
bus_terminals | List the departure and arrival terminals that have trips on a route and the companies running them. |
bus_trip | 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-mcp
Development
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 Safar724
Releases: 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.
Frequently asked questions
What is Iran Bus Tickets MCP Server?
Read-only Iranian bus tickets (Safar724): trips, Toman prices, free seats, cheapest ticket.
How do I install Iran Bus Tickets MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Iran Bus Tickets MCP Server runs locally from the PyPI package iran-bus-mcp with the command uvx iran-bus-mcp.
Does Iran Bus Tickets MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Iran Bus Tickets MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does Iran Bus Tickets MCP Server provide?
Iran Bus Tickets MCP Server provides 5 tools, including bus_cheapest, bus_cities, bus_search, and bus_terminals. See the full tool list for descriptions and parameters.
How is Iran Bus Tickets MCP Server's trust score calculated?
Iran Bus Tickets MCP Server scores 56 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.