Skip to content
MCP server
Registry

Raja Train Tickets MCP Server

Read-only Raja (raja.ir) Iranian trains: stations, search with prices and seats, timetables, news.

Raja Train Tickets scores 57 (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 1 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by sepehr071No licensePython1 stars
Trust score
57Fair
Trust score 57 of 100, Fair

Fair trust

57 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • No license recorded.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 57 comes from

22 + 20 + 1 + 0 + 4 + 10 = 57. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity1 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 1 of 20 points.
License0 / 10

A clear, OSI-style open-source license.

License: 0 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

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.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "sepehr071-raja-mcp": {      "command": "uvx",      "args": [        "raja-mcp"      ],      "env": {        "RAJA_MCP_PROXY": ""      }    }  }}

Environment variables

NameRequiredNotes
RAJA_MCP_PROXYOptionalOptional HTTP proxy URL for the Raja 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 B

All capabilities
  • Read the notices Raja shows at the top of its site: presale dates, refund rules, boarding rules.

  • List the latest Raja company news (title, Jalali date, id) or read one story's text by id.

  • Search one-way trains between two stations on a date, with prices in Toman and free seats.

  • Find Raja railway stations and their codes by Persian or English name.

  • List every stop of a train with its time, from a row's ref of rjsearchtrains.

About

raja-mcp: Raja (رجا) Iran train tickets MCP server for AI agents

raja-mcp is an unofficial, read-only MCP server that lets an AI agent search Iranian passenger trains, prices in Toman and free seats on Raja (رجا, raja.ir), the national train ticket seller. Its 5 tools find stations, search trains between two stations on a date, list every stop of a train, and read Raja's notices (presale dates, refund and boarding rules) and company news. No API key or account is needed; it works in Claude, Cursor, Copilot and any other MCP client. It needs an Iranian IP (see Limits).

PyPI Python CI License: PolyForm Noncommercial

For AI agents · Quick start · Tools · Limits · فارسی


For AI agents

  • What: unofficial MCP server (model context protocol) for raja.ir: stations, one-way train search with Toman prices and free seats, train stops, notices and news.
  • Install: uvx raja-mcp or claude mcp add raja -- uvx raja-mcp. Transport: stdio. Needs uv (Python 3.10+).
  • Auth: none. Optional RAJA_MCP_PROXY (HTTP proxy URL, or a comma-separated list); system proxy settings are ignored.
  • Access: read-only. It cannot log in, reserve, buy or refund a ticket.
  • Tools: 5, all prefixed rj_.
  • Use when: the user asks which trains run between two Iranian cities on a date, what a ticket costs, how many seats are left, where a train stops, or when tickets for the next period go on sale.
  • Output: compact JSON. Prices are Toman per passenger. Stations are Persian or English names or codes; dates are Jalali (1405/08/30) or Gregorian. Notices and news are Persian text.

Quick start

You need uv. No API key or account. Run it from an Iranian network.

Claude Code:

claude mcp add raja -- uvx raja-mcp

Claude Desktop, Cursor, VS Code and other clients:

{
  "mcpServers": {
    "raja": { "command": "uvx", "args": ["raja-mcp"] }
  }
}

Example prompts:

  • "Find the cheapest train from Tehran to Mashhad on 1405/08/30."
  • "Where does train 172 stop and at what times?"
  • "When do Raja tickets for the next period go on sale?"
  • قطار تهران به مشهد در ۳۰ آبان را با قیمت و صندلی خالی پیدا کن.
  • قطار ۱۷۲ در چه ایستگاه‌هایی توقف می‌کند؟

A real answer (rj_search_trains, Tehran to Mashhad, 1405/08/30 = 21 Nov 2026, run 17 Nov 2026): 14 train and wagon rows. The cheapest was train 318 (Raja, 4-star bus-style Saba, 09:10 to 21:30) at 915,050 Toman with 340 seats; then train 330 (Joopar, 3-star 6-berth) at 1,120,000 Toman with 70 seats, and train 368 (Mahtab Sir Jam) at 1,223,800 Toman with 146 seats. Prices and seats change as tickets sell.

Tools

ToolWhat it does
rj_stationsFind Raja railway stations and their codes by Persian or English name.
rj_search_trainsSearch one-way trains between two stations on a date, with prices in Toman and free seats.
rj_train_stopsList every stop of a train with its time, from a row's ref of rj_search_trains.
rj_announcementsRead the notices Raja shows at the top of its site: presale dates, refund rules, boarding rules.
rj_newsList the latest Raja company news (title, Jalali date, id) or read one story's text by id.

Limits

  • Needs an Iranian IP. raja.ir and hostservice.raja.ir answer 403 from foreign exits; the error says so. Run it from Iran, or set RAJA_MCP_PROXY to an Iranian proxy. The server ignores system proxy variables on purpose.
  • Search is one-way, one passenger. Female-only and male-only seat groups are supported by the tool but were not compared against the site.
  • free_seats is what the site shows: "20+" above 20, and sold-out trains are hidden unless asked.
  • A train that passes the origin after midnight needs the previous day for rj_train_stops; the tool retries it.
  • One wagon row (train 198, "پنج ستاره فدک") was in the API but not drawn on the page once; the server returns it.
  • Booking, login, payment and refunds are not covered; tell the user to book on raja.ir. Raja rotates the search key and its api-key header with the site's code, so a site update can break the tools until the server is updated.

فارسی

raja-mcp یک سرور MCP غیررسمی و فقط‌خواندنی است که به ایجنت هوش مصنوعی اجازه می‌دهد قطارهای مسافری ایران، قیمت به تومان و صندلی‌های خالی را در سایت رجا (raja.ir) جست‌وجو کند. ایستگاه‌ها، توقف‌گاه‌های هر قطار، اطلاعیه‌ها و اخبار رجا را هم می‌خواند. خرید، رزرو و استرداد ندارد. رجا فقط از آی‌پی ایران جواب می‌دهد. نصب در Claude Code:

claude mcp add raja -- uvx raja-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 raja.ir, direct Iranian line only

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 Raja. 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 Raja Train Tickets MCP Server?

Read-only Raja (raja.ir) Iranian trains: stations, search with prices and seats, timetables, news.

How do I install Raja Train 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. Raja Train Tickets MCP Server runs locally from the PyPI package raja-mcp with the command uvx raja-mcp.

Does Raja Train Tickets MCP Server support remote (HTTP) connections?

No remote endpoint is listed for Raja Train Tickets MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does Raja Train Tickets MCP Server provide?

Raja Train Tickets MCP Server provides 5 tools, including rj_announcements, rj_news, rj_search_trains, and rj_stations. See the full tool list for descriptions and parameters.

How is Raja Train Tickets MCP Server's trust score calculated?

Raja Train Tickets MCP Server scores 57 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

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server