用 FastMCP 重新实现的 12306 车票查询服务,基于 Joooook/12306-mcp。
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add 12306-fastmcp -- npx -y @northegg/12306-mcp~/.codex/config.toml
[mcp_servers.12306-fastmcp]
command = "npx"
args = ["-y", "@northegg/12306-mcp"]
# codex mcp add 12306-fastmcp -- npx -y @northegg/12306-mcp~/.cursor/mcp.json
{
"mcpServers": {
"12306-fastmcp": {
"command": "npx",
"args": [
"-y",
"@northegg/12306-mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"12306-fastmcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@northegg/12306-mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"12306-fastmcp": {
"command": "npx",
"args": [
"-y",
"@northegg/12306-mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"12306-fastmcp": {
"command": "npx",
"args": [
"-y",
"@northegg/12306-mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"12306-fastmcp": {
"command": "npx",
"args": [
"-y",
"@northegg/12306-mcp"
]
}
}
}