mcp-server-12306 vs filesystem
并排对比,帮你在这两个 MCP server 之间做选择。
mcp-server-12306 by drfccv | filesystem by modelcontextprotocol | |
|---|---|---|
| Stars | ★ 327 | ★ 85,748 |
| 30天用量 | — | — |
| 综合分 | 50 | 77 |
| 官方 | — | ✓ |
| 分类 | AI / LLM 工具travel开发者工具 | 本地文件系统开发者工具效率工具 |
| 实现语言 | Python | TypeScript |
| 最近提交 | 1 个月前 | 本月 |
mcp-server-12306 · 概述
12306 MCP Server 是一个通过 MCP 协议提供实时火车票数据查询的高性能系统。
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
mcp-server-12306 · 使用场景
- 帮助旅客查找和比较火车选项的 AI 助手
- 需要实时 12306 数据的自动化旅行预订系统
- 需要显示实时列车时刻表和可用性的应用程序
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
mcp-server-12306 · 安装
安装
模式 1:Stdio 模式(Claude Desktop 推荐)
使用 uvx:
{
"mcpServers": {
"12306": {
"command": "uvx",
"args": ["mcp-server-12306"]
}
}
}使用 pipx:
{
"mcpServers": {
"12306": {
"command": "pipx",
"args": ["run", "--no-cache", "mcp-server-12306"]
}
}
}模式 2:HTTP 模式
git clone https://github.com/drfccv/mcp-server-12306.git
cd mcp-server-12306
uv sync
uv run python scripts/start_server.py客户端配置:
{
"mcpServers": {
"12306": {
"url": "http://localhost:8000/mcp"
}
}
}filesystem · 安装
安装
使用 NPX
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/allowed/directory"
]
}
}
}使用 Docker
{
"mcpServers": {
"filesystem": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--mount", "type=bind,src=/path/to/allowed/dir,dst=/projects/allowed/dir",
"mcp/filesystem",
"/projects"
]
}
}
}VS Code 扩展
点击 README 中的安装按钮直接在 VS Code 中安装。