SourceSync.ai MCP 服务器
SourceSync.ai API 的模型上下文协议 (MCP) 服务器实现。该服务器允许 AI 模型通过标准化接口与 SourceSync.ai 的知识管理平台进行交互。
特征
管理命名空间以组织知识
从各种来源(文本、URL、网站、外部服务)获取内容
检索、更新和管理知识库中存储的文档
针对您的知识库执行语义和混合搜索
直接从解析的文本 URL 访问文档内容
管理与外部服务的连接
默认配置支持无缝 AI 集成
安装
使用 npx 运行
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 sourcesyncai-mcp:
手动安装
在光标上运行
要在 Cursor 中配置 SourceSync.ai MCP:
打开游标设置
前往
Features > MCP Servers
点击
+ Add New MCP Server
输入以下内容:
名称:
sourcesyncai-mcp
(或您喜欢的名称)类型:
command
命令:
env SOURCESYNCAI_API_KEY=your-api-key npx -y sourcesyncai-mcp
添加后,您可以通过描述您的知识管理需求,将SourceSync.ai工具与Cursor的AI功能结合使用。
在风帆冲浪中奔跑
将其添加到您的./codeium/windsurf/model_config.json
:
在 Claude Desktop 上运行
要将此 MCP 服务器与 Claude Desktop 一起使用:
找到 Claude Desktop 配置文件:
macOS :
~/Library/Application Support/Claude/claude_desktop_config.json
Windows :
%APPDATA%\Claude\claude_desktop_config.json
Linux :
~/.config/Claude/claude_desktop_config.json
编辑配置文件以添加 SourceSync.ai MCP 服务器:
保存配置文件并重新启动Claude Desktop
配置
环境变量
必需的
SOURCESYNC_API_KEY
:您的 SourceSync.ai API 密钥(必需)
选修的
SOURCESYNC_NAMESPACE_ID
:用于操作的默认命名空间 IDSOURCESYNC_TENANT_ID
:您的租户 ID(可选)
配置示例
具有默认值的基本配置:
可用工具
验证
validate_api_key
SourceSync.ai API 密钥
命名空间
create_namespace
:创建一个新的命名空间list_namespaces
:列出所有命名空间get_namespace
:获取特定命名空间的详细信息update_namespace
:更新命名空间delete_namespace
:删除命名空间
数据提取
ingest_text
:提取文本内容ingest_urls
:从 URL 中提取内容ingest_sitemap
:从站点地图中提取内容ingest_website
:从网站提取内容ingest_notion
:从 Notion 中提取内容ingest_google_drive
:从 Google Drive 提取内容ingest_dropbox
:从 Dropbox 提取内容ingest_onedrive
:从 OneDrive 提取内容ingest_box
:从 Box 中提取内容get_ingest_job_run_status
:获取摄取作业运行的状态
文件
getDocuments
:使用可选过滤器检索文档updateDocuments
:更新文档元数据deleteDocuments
:删除文档resyncDocuments
:重新同步文档fetchUrlContent
:从文档 URL 获取文本内容
搜索
semantic_search
:执行语义搜索hybrid_search
:执行混合搜索(语义+关键字)
连接
create_connection
:创建与外部服务的新连接list_connections
:列出所有连接get_connection
:获取特定连接的详细信息update_connection
:更新连接revoke_connection
:撤销连接
示例提示
以下是配置 MCP 服务器后可以与 Claude 或 Cursor 一起使用的一些示例提示:
“在我的 SourceSync 知识库中搜索有关机器学习的信息。”
“将这篇文章纳入我的 SourceSync 知识库:[URL]”
“在 SourceSync 中为我的项目文档创建一个新的命名空间。”
“列出我的 SourceSync 命名空间中的所有文档。”
“从我的 SourceSync 命名空间获取文档 [document_id] 的文本内容。”
故障排除
连接问题
如果您在连接 SourceSync.ai MCP 服务器时遇到问题:
验证路径:确保配置中的所有路径都是绝对路径,而不是相对路径。
检查权限:确保服务器文件具有执行权限(
chmod +x dist/index.js
)。启用开发者模式:在 Claude Desktop 中,启用开发者模式并检查 MCP 日志文件。
测试服务器:直接从命令行运行服务器:
node /path/to/sourcesyncai-mcp/dist/index.js重新启动 AI 客户端:进行更改后,完全重新启动 Claude Desktop 或 Cursor。
检查环境变量:确保所有必需的环境变量都已正确设置。
调试日志
如需详细日志记录,请添加 DEBUG 环境变量:
发展
项目结构
src/index.ts
:主入口点和服务器设置src/schemas.ts
:所有工具的架构定义src/sourcesync.ts
:与 SourceSync.ai API 交互的客户端src/sourcesync.types.ts
:TypeScript 类型定义
构建和测试
执照
麻省理工学院
链接
文档内容检索工作流程:
首先,使用
getDocuments
和includeConfig.parsedTextFileUrl: true
来获取文档及其内容 URL从文档响应中提取 URL
使用
fetchUrlContent
检索实际内容:
Related MCP Servers
- AsecurityAlicenseAqualityEnables AI models to interact with HubSpot CRM data and operations through a standardized interface, supporting contact and company management.Last updated -103MIT License
- -securityFlicense-qualityEnables AI models to interact with Jira using a standardized protocol, offering full Jira REST API integration with features like optimal performance through connection pooling, error handling, and request monitoring.Last updated -2
- AsecurityAlicenseAqualityEnables AI assistants to interact with Meilisearch via the Model Context Protocol, allowing comprehensive index, document, and search management through a standardized interface.Last updated -6809MIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that enables AI models to interact with SourceSync.ai's knowledge management platform for managing documents, ingesting content from various sources, and performing semantic searches.Last updated -256