SourceSync.ai MCP Server

SourceSync.ai MCP Server

site icon
2025.03.03 0
知识管理AI集成开发效率
SourceSync.ai MCP Server 是一个基于 Model Context Protocol (MCP) 的服务实现,用于与 SourceSync.ai 的知识管理平台进行交互。该服务器提供了一系列功能,帮助用户通过标准化接口管理知识库,包括内容摄取、文档管理、搜索和外部服务连接等。
View on GitHub

Overview

基本能力

产品定位

SourceSync.ai MCP Server 是一个知识管理平台的服务接口,旨在通过标准化协议(MCP)实现AI模型与知识库的高效交互。

核心功能

  • 命名空间管理:创建、列出、获取、更新和删除命名空间
  • 内容摄取:从多种来源(文本、URL、网站、外部服务如Notion、Google Drive等)摄取内容
  • 文档管理:检索、更新、删除和重新同步文档
  • 搜索功能:支持语义搜索和混合搜索(语义+关键词)
  • 外部服务连接:创建、列出、获取、更新和撤销与外部服务的连接
  • API密钥验证:验证SourceSync.ai API密钥

适用场景

  • 知识库管理:组织和维护企业或个人的知识库
  • 内容聚合:从多个来源自动收集和整理信息
  • 智能搜索:通过自然语言查询快速找到相关知识
  • AI集成:为AI模型提供结构化的知识访问接口

工具列表

  • 认证工具validate_api_key
  • 命名空间工具create_namespace, list_namespaces, get_namespace, update_namespace, delete_namespace
  • 数据摄取工具ingest_text, ingest_urls, ingest_sitemap, ingest_website, ingest_notion, ingest_google_drive, ingest_dropbox, ingest_onedrive, ingest_box, get_ingest_job_run_status
  • 文档工具getDocuments, updateDocuments, deleteDocuments, resyncDocuments, fetchUrlContent
  • 搜索工具semantic_search, hybrid_search
  • 连接工具create_connection, list_connections, get_connection, update_connection, revoke_connection

常见问题解答

  • 连接问题:检查路径、权限和环境变量设置
  • 调试方法:启用开发者模式,直接运行服务器进行测试
  • 日志记录:添加DEBUG环境变量获取详细日志

使用教程

使用依赖

  • Node.js环境
  • npm包管理器

安装教程

  1. 使用npx运行
env SOURCESYNC_API_KEY=your_api_key npx -y sourcesyncai-mcp
  1. 通过Smithery安装
npx -y @smithery/cli install @pbteja1998/sourcesyncai-mcp --client claude
  1. 手动安装
git clone https://github.com/yourusername/sourcesyncai-mcp.git
cd sourcesyncai-mcp
npm install
npm run build
node dist/index.js
  1. 在Cursor中配置
  2. 打开Cursor设置
  3. 转到Features > MCP Servers
  4. 添加新MCP服务器
  5. 输入名称和命令:env SOURCESYNCAI_API_KEY=your-api-key npx -y sourcesyncai-mcp

  6. 在Windsurf中配置 编辑./codeium/windsurf/model_config.json文件,添加相应配置

  7. 在Claude Desktop中配置 编辑Claude Desktop配置文件,添加MCP服务器配置

调试方式

  1. 直接运行服务器
node /path/to/sourcesyncai-mcp/dist/index.js
  1. 检查环境变量
  2. 查看日志输出

许可证

该项目遵循 MIT 开源许可条款。