- Home
- MCP servers
- TripNow
TripNow
- python
0
GitHub Stars
python
Language
4 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
You can use this MCP server to query real-time flight and train ticket information, track dynamic travel statuses, and get smart answers to common travel questions. It aggregates ticketing data, dynamic updates, and a knowledge base to provide fast, accurate travel information for MCP Plaza users.
How to use
You will interact with the MCP server through an MCP client. Start by choosing the tool you need: real-time ticket queries, dynamic status tracking, or knowledge-based travel Q&A. In conversations, describe your travel request clearly, including the origin, destination, travel date, and whether you want flights or trains. The server will respond with the relevant information and can handle multi-turn dialogues to refine results.
How to install
Prerequisites: Python 3.11 or newer must be installed on your system.
Step 1: Clone or download the project directory and navigate into it.
Step 2: Install dependencies from the requirements file.
pip install -r requirements.txt
Step 3: Optionally install dependencies directly via pip if you prefer.
pip install httpx>=0.25.0 mcp>=1.0.0 pydantic>=2.0.0
Configure your API key for authentication.
Additional setup and configuration
Two MCP connection options are provided: a local STDIO server and a remote HTTP server. Choose the method that best fits your deployment.
- STDIO local server configuration uses a Python script.
{
"mcpServers": {
"tripnow": {
"command": "python",
"args": [
"/path/to/tripnow-mcp/api_mcp.py"
],
"env": {
"tripnow_api_key": "YOUR_API_KEY"
}
}
}
}
- Streamable HTTP remote server configuration uses a URL and an API key header.
{
"mcpServers": {
"tripnow": {
"url": "https://tripnowengine.133.cn/mcp",
"headers": {
"tripnow-api-key": "YOUR_API_KEY"
}
}
}
}
Available tools
航铁票务实时查询
Query real-time ticket information for flights and trains based on origin, destination, and travel date, returning core details like numbers, times, and seating options.
航铁动态精准追踪
Fetch real-time dynamic status for trains or flights, including location, status, boarding gates, and delay reasons.
航铁知识智能问答
Answer travel questions related to tickets, policies, changes, and baggage using an internal knowledge base.