Skip to main content
Glama
viraildev

virail-mcp

Official
by viraildev
README.md
# virail-mcp

An [MCP](https://modelcontextprotocol.io) server for [Virail](https://www.virail.com) transport search — trains, buses, flights, ferries, and carpooling across Europe and beyond. Gives any MCP-compatible AI agent (Claude Desktop, Cursor, Claude.ai, etc.) the ability to search real, live travel connections with real prices, schedules, and booking links.

## Hosted endpoint

Virail runs this server for you at:

```
https://virail.ai/mcp
```

No install, no API key — just point your MCP client at that URL. For clients that support remote MCP servers via a config file, the shape typically looks like:

```json
{
  "mcpServers": {
    "virail": {
      "url": "https://virail.ai/mcp"
    }
  }
}
```

The exact config key/format for adding a remote MCP server varies by client and changes over time — check your client's own docs for "remote MCP server" or "custom connector" setup if the snippet above doesn't match what it expects. Claude.ai / Claude Desktop, for instance, let you add one directly from Settings without editing a config file at all.

This HTTP endpoint is the only supported way to use virail-mcp right now — there's no local/CLI install.

Step-by-step setup for Claude.ai, Claude Desktop, Cursor, and other clients: **[virail.ai/mcp-setup](https://virail.ai/mcp-setup)**.

## Tools

### `search_transport`

Search for connections between two places on a date.

| Argument | Type | Required | Description |
|---|---|---|---|
| `departure` | string | yes | Origin city or station name |
| `arrival` | string | yes | Destination city or station name |
| `date` | string | yes | Travel date, `YYYY-MM-DD` |
| `adults` | number | no | Number of adult passengers (default `1`) |
| `tld` | string | no | Virail market, e.g. `com`, `it`, `fr`, `de`, `es` (default `com`) |
| `locale` | string | no | Response language, e.g. `en`, `it`, `fr` (default `en`) |
| `currency` | string | no | Price currency, e.g. `EUR`, `USD` (default `EUR`) |

Returns a list of trip options, each with departure/arrival times and stations, duration, number of transfers, total price, carrier(s), transport mode(s), and a booking link.

## Development

```bash
npm install
npm run build   # compile to dist/
npm test        # run unit tests
```

## License

MIT

TDQS

A4.2/5.0

Scored across 1 tool

Disambiguation5/5

只有一个工具,因此不存在工具之间混淆的可能性。该工具具有清晰、唯一的用途,即搜索交通连接。

Naming Consistency5/5

该工具遵循清晰的动词_名词模式,易于阅读和预测。由于只有一个工具,没有冲突或混合约定。

Tool Count3/5

单个工具令人感觉单薄,对于交通搜索服务器而言尤其如此,该服务器可能还需要位置查找或行程详情等辅助工具。然而,该工具本身作为一个综合搜索入口,属于边缘情况。

Completeness4/5

该工具满足了其声明的目的:提供连接、价格、时刻表和预订链接。缺少诸如获取可用路线或筛选运输方式的辅助操作,但这些可能超出了单一搜索工具的范围。

Maintenance

ActivityMaintained
ResponsivenessNo issues