mcp-嵌入-搜索
一个模型上下文协议 (MCP) 服务器,用于查询包含嵌入和转录片段的 Turso 数据库。此工具允许用户通过提问来搜索相关的转录片段,而无需生成新的嵌入。
特征
- 🔍 转录片段的向量相似性搜索
- 📊 基于余弦相似度的相关性评分
- 📝 完整的成绩单元数据(剧集标题、时间戳)
- ⚙️ 可配置的搜索参数(限制、最低分数)
- 🔄 高效的数据库连接池
- 🛡️ 全面的错误处理
- 📈 性能优化,响应速度更快
配置
此服务器需要通过您的 MCP 客户端进行配置。以下是不同环境下的示例:
克莱恩配置
将其添加到您的 Cline MCP 设置中:
Claude桌面配置
将其添加到您的 Claude Desktop 配置中:
API
服务器实现了一个 MCP 工具:
搜索嵌入
使用向量相似性搜索相关的转录片段。
参数:
question
(字符串,必需):要搜索的查询文本limit
(数字,可选):返回的结果数(默认值:5,最大值:50)min_score
(数字,可选):最小相似度阈值(默认值:0.5,范围:0-1)
响应格式:
数据库架构
此工具需要具有以下架构的 Turso 数据库:
embedding
列应包含可与vector_distance_cos
函数一起使用的向量嵌入。
发展
设置
- 克隆存储库
- 安装依赖项:
- 构建项目:
- 以开发模式运行:
出版
该项目使用变更集进行版本管理。要发布:
- 创建变更集:
- 对包进行版本控制:
- 发布到 npm:
贡献
欢迎贡献代码!欢迎提交 Pull 请求。
执照
MIT 许可证 - 有关详细信息,请参阅LICENSE文件。
致谢
- 基于模型上下文协议
- 专为在转录本数据库中进行高效的向量相似性搜索而设计
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
模型上下文协议服务器使用向量相似性在 Turso 数据库中搜索转录片段,允许用户通过提问来查找相关内容,而无需生成新的嵌入。
Related Resources
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that provides AI-powered features for the Transcripter project, including tools for searching and summarizing transcriptions and resources for accessing transcription and analysis data.Last updated -690TypeScript
- -securityAlicense-qualityA Model Context Protocol server that enables semantic search capabilities by providing tools to manage Qdrant vector database collections, process and embed documents using various embedding services, and perform semantic searches across vector embeddings.Last updated -89TypeScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables retrieval of transcripts from YouTube videos. This server provides direct access to video transcripts and subtitles through a simple interface, making it ideal for content analysis and processing.Last updated -125810TypeScriptMIT License
- -security-license-qualityA Model Context Protocol server that enables searching YouTube videos, retrieving and storing transcripts, and performing semantic search over video content without using the official YouTube API.Last updated -1PythonMIT License