使用说明
Talon MCP服务器
英语| 中文
MCP(模型上下文协议)服务器 塔隆 多模型数据引擎。使Cursor、Claude Desktop、Windsurf和其他MCP兼容客户端中的AI代理能够直接查询和操作所有9个Talon引擎。
安装
npm install -g talon-mcp-server
或直接通过 npx --无需安装:
npx talon-mcp-server
快速开始
1.启动Talon服务器
./talon-server --http-port 8080 --data ./data
2.在游标中配置
添加到您的项目 .cursor/mcp.json:
{
"mcpServers": {
"talon": {
"command": "npx",
"args": ["-y", "talon-mcp-server"],
"env": {
"TALON_URL": "http://localhost:8080"
}
}
}
}
3.在Claude Desktop中配置
添加 ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"talon": {
"command": "npx",
"args": ["-y", "talon-mcp-server"],
"env": {
"TALON_URL": "http://localhost:8080"
}
}
}
}
4.在Windsurf中配置
添加 ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"talon": {
"command": "npx",
"args": ["-y", "talon-mcp-server"],
"env": {
"TALON_URL": "http://localhost:8080"
}
}
}
}
支持的引擎和工具
| 引擎 | 工具 | 说明 |
|---|---|---|
| 结构化查询语言 | talon_sql_query, talon_sql_execute |
带有向量/地理函数的完整SQL |
| 键值 | talon_kv_get/set/delete/scan/mget/incr |
Redis兼容键值存储 |
| 矢量 | talon_vector_search/insert/create_index |
HNSW相似性搜索 |
| 时间序列 | talon_ts_query/write/create |
具有聚合功能的时间序列数据 |
| 消息队列 | talon_mq_publish/poll/ack/create_topic/list_topics |
消费者群体、DLQ、优先级 |
| 全文搜索 | talon_fts_search/index_doc/hybrid_search/create_index |
BM25+混合动力车(BM25+矢量RRF) |
| 地理空间 | talon_geo_search/add/create |
地理空间半径/框搜索 |
| 图 | talon_graph_query/shortest_path/add_vertex/add_edge/create |
带BFS的属性图,最短路径 |
| 人工智能 | talon_ai_session, talon_ai_memory |
会话/上下文/内存管理 |
| 管理员 | talon_list_tables/describe_table/server_info/persist/raw_execute |
架构检查、服务器状态、原始命令 |
38工具 涵盖Talon的所有功能。
环境变量
| 变量 | 默认值 | 描述 |
|---|---|---|
TALON_URL |
http://localhost:8080 |
Talon服务器HTTP端点 |
TALON_TIMEOUT |
30000 |
请求超时(毫秒) |
例子
配置后,AI代理可以直接与Talon交互:
"Show me all tables in the database"
→ talon_list_tables
"Create a users table with id, name, and a 384-dim embedding column"
→ talon_sql_execute: CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT, emb VECTOR(384))
"Search for vectors similar to [0.1, 0.2, ...] in the embeddings index"
→ talon_vector_search
"Set cache key session:abc to token123 with 1 hour TTL"
→ talon_kv_set(key="session:abc", value="token123", ttl=3600)
"Find articles about 'machine learning' using hybrid search"
→ talon_fts_hybrid_search: BM25 + vector similarity with RRF fusion
发展
git clone https://github.com/darkmice/talon-mcp.git
cd talon-mcp
npm install
npm run build
npm run dev # Watch mode with tsx
npm start # Run built server
许可证
麻省理工学院