Skip to main content
Glama

MCP Embedding Search

mcp-嵌入-搜索

一个模型上下文协议 (MCP) 服务器,用于查询包含嵌入和转录片段的 Turso 数据库。此工具允许用户通过提问来搜索相关的转录片段,而无需生成新的嵌入。

特征

  • 🔍 转录片段的向量相似性搜索
  • 📊 基于余弦相似度的相关性评分
  • 📝 完整的成绩单元数据(剧集标题、时间戳)
  • ⚙️ 可配置的搜索参数(限制、最低分数)
  • 🔄 高效的数据库连接池
  • 🛡️ 全面的错误处理
  • 📈 性能优化,响应速度更快

配置

此服务器需要通过您的 MCP 客户端进行配置。以下是不同环境下的示例:

克莱恩配置

将其添加到您的 Cline MCP 设置中:

{ "mcpServers": { "mcp-embedding-search": { "command": "node", "args": ["/path/to/mcp-embedding-search/dist/index.js"], "env": { "TURSO_URL": "your-turso-database-url", "TURSO_AUTH_TOKEN": "your-turso-auth-token" } } } }

Claude桌面配置

将其添加到您的 Claude Desktop 配置中:

{ "mcpServers": { "mcp-embedding-search": { "command": "node", "args": ["/path/to/mcp-embedding-search/dist/index.js"], "env": { "TURSO_URL": "your-turso-database-url", "TURSO_AUTH_TOKEN": "your-turso-auth-token" } } } }

API

服务器实现了一个 MCP 工具:

搜索嵌入

使用向量相似性搜索相关的转录片段。

参数:

  • question (字符串,必需):要搜索的查询文本
  • limit (数字,可选):返回的结果数(默认值:5,最大值:50)
  • min_score (数字,可选):最小相似度阈值(默认值:0.5,范围:0-1)

响应格式:

[ { "episode_title": "Episode Title", "segment_text": "Transcript segment content...", "start_time": 123.45, "end_time": 167.89, "similarity": 0.85 } // Additional results... ]

数据库架构

此工具需要具有以下架构的 Turso 数据库:

CREATE TABLE embeddings ( id INTEGER PRIMARY KEY AUTOINCREMENT, transcript_id INTEGER NOT NULL, embedding TEXT NOT NULL, FOREIGN KEY(transcript_id) REFERENCES transcripts(id) ); CREATE TABLE transcripts ( id INTEGER PRIMARY KEY AUTOINCREMENT, episode_title TEXT NOT NULL, segment_text TEXT NOT NULL, start_time REAL NOT NULL, end_time REAL NOT NULL );

embedding列应包含可与vector_distance_cos函数一起使用的向量嵌入。

发展

设置

  1. 克隆存储库
  2. 安装依赖项:
npm install
  1. 构建项目:
npm run build
  1. 以开发模式运行:
npm run dev

出版

该项目使用变更集进行版本管理。要发布:

  1. 创建变更集:
npm run changeset
  1. 对包进行版本控制:
npm run version
  1. 发布到 npm:
npm run release

贡献

欢迎贡献代码!欢迎提交 Pull 请求。

执照

MIT 许可证 - 有关详细信息,请参阅LICENSE文件。

致谢

-
security - not tested
F
license - not found
-
quality - not tested

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 数据库中搜索转录片段,允许用户通过提问来查找相关内容,而无需生成新的嵌入。

  1. 特征
    1. 配置
      1. 克莱恩配置
      2. Claude桌面配置
    2. API
      1. 搜索嵌入
    3. 数据库架构
      1. 发展
        1. 设置
        2. 出版
      2. 贡献
        1. 执照
          1. 致谢

            Related MCP Servers

            • -
              security
              F
              license
              -
              quality
              A 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 -
              690
              TypeScript
            • -
              security
              A
              license
              -
              quality
              A 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 -
              89
              TypeScript
              MIT License
            • A
              security
              A
              license
              A
              quality
              A 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 -
              1
              258
              10
              TypeScript
              MIT License
              • Linux
              • Apple
            • -
              security
              -
              license
              -
              quality
              A 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 -
              1
              Python
              MIT License

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/spences10/mcp-embedding-search'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server