Trino 的 MCP 服务器
为 Trino 提供结构化访问的 MCP 服务器,支持 AI 模型查询和分析数据。
快速入门
启动服务
使用 Docker 启动:
docker-compose up -d
或运行独立 API 服务:
python llm_trino_api.py
测试 API
通过 curl 测试查询:
curl -X POST "http://localhost:9097/api/query" \
-H "Content-Type: application/json" \
-d '{"query": "SELECT 1 AS test"}'
加载示例数据
生成并加载测试数据:
python tools/create_bullshit_data.py
python load_bullshit_data.py
运行复杂查询
执行复杂查询:
python test_bullshit_query.py