图灵知识桥
模型上下文协议(MCP)服务器实现了MCP客户端与Graphlit服务之间的集成。 将从Slack到Gmail再到播客订阅源的内容,以及网络爬虫获取的内容,全部导入到Graphlit项目中——然后通过MCP客户端检索相关的内容。
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"graphlit-mcp-server": {
"args": [
"-y",
"graphlit-mcp-server"
],
"command": "npx",
"env": {
"DISCORD_BOT_TOKEN": "your-discord-bot-token",
"GITHUB_PERSONAL_ACCESS_TOKEN": "your-github-pat",
"GOOGLE_EMAIL_CLIENT_ID": "your-google-client-id",
"GOOGLE_EMAIL_CLIENT_SECRET": "your-google-client-secret",
"GOOGLE_EMAIL_REFRESH_TOKEN": "your-google-refresh-token",
"GRAPHLIT_ENVIRONMENT_ID": "your-environment-id",
"GRAPHLIT_JWT_SECRET": "your-jwt-secret",
"GRAPHLIT_ORGANIZATION_ID": "your-organization-id",
"JIRA_EMAIL": "your-jira-email",
"JIRA_TOKEN": "your-jira-token",
"LINEAR_API_KEY": "your-linear-api-key",
"NOTION_API_KEY": "your-notion-api-key",
"NOTION_DATABASE_ID": "your-notion-database-id",
"SLACK_BOT_TOKEN": "your-slack-bot-token",
"TWITTER_TOKEN": "your-twitter-token"
}
}
}
}
该服务需要配置环境变量:DISCORD_BOT_TOKEN、GITHUB_PERSONAL_ACCESS_TOKEN、GOOGLE_EMAIL_CLIENT_ID、GOOGLE_EMAIL_CLIENT_SECRET、GOOGLE_EMAIL_REFRESH_TOKEN、GRAPHLIT_ENVIRONMENT_ID、GRAPHLIT_JWT_SECRET、GRAPHLIT_ORGANIZATION_ID、JIRA_EMAIL、JIRA_TOKEN、LINEAR_API_KEY、NOTION_API_KEY、NOTION_DATABASE_ID、SLACK_BOT_TOKEN
可用工具 (43 个)
该服务在 MCP 协议中暴露的工具,AI 可按需调用
retrieveSources 6 个参数 需填 1 项
Retrieve relevant content sources from Graphlit knowledge base. Do *not* use for retrieving content by content identifier - retrieve content resource instead, with URI 'contents://{id}'. Accepts a search prompt, optional recency filter (defaults to all time), and optional content type and file type filters. Also accepts optional feed and collection identifiers to filter content by. Prompt should be optimized for vector search, via text embeddings. Rewrite prompt as appropriate for higher relevance to search results. Returns the ranked content sources, including their content resource URI to retrieve the complete Markdown text.
必填参数:prompt
extractText 3 个参数 需填 2 项
Extracts JSON data from text using LLM. Accepts text to be extracted, and JSON schema which describes the data which will be extracted. JSON schema needs be of type 'object' and include 'properties' and 'required' fields. Optionally accepts text prompt which is provided to LLM to guide data extraction. Defaults to 'Extract data using the tools provided'. Returns extracted JSON from text.
必填参数:text、schema
createCollection 2 个参数 需填 1 项
Create a collection. Accepts a collection name, and optional list of content identifiers to add to collection. Returns the collection identifier
必填参数:name
addContentsToCollection 2 个参数 需填 2 项
Add contents to a collection. Accepts a collection identifier and a list of content identifiers to add to collection. Returns the collection identifier.
必填参数:id、contents
removeContentsFromCollection 2 个参数 需填 2 项
Remove contents from collection. Accepts a collection identifier and a list of content identifiers to remove from collection. Returns the collection identifier.
必填参数:id、contents
deleteCollection 1 个参数 需填 1 项
Delete a collection. Does *not* delete the content in the collection. Accepts a collection identifier. Returns the collection identifier and collection state, i.e. Deleted.
必填参数:id
deleteFeed 1 个参数 需填 1 项
Delete a feed and all of its ingested content. Accepts a feed identifier which was returned from one of the ingestion tools, like ingestGoogleDriveFiles. Content deletion will happen asynchronously. Returns the feed identifier and feed state, i.e. Deleted.
必填参数:id
deleteContent 1 个参数 需填 1 项
Delete content. Accepts a content identifier. Returns the content identifier and content state, i.e. Deleted.
必填参数:id
deleteContents 3 个参数
Deletes contents from Graphlit knowledge base. Accepts optional content type and file type filters to limit the contents which will be deleted. Also accepts optional limit of how many contents to delete, defaults to 1000. Returns the content identifiers and content state, i.e. Deleted.
该工具无需必填参数,直接调用即可
deleteFeeds 2 个参数
Deletes feeds from Graphlit knowledge base. Accepts optional feed type filter to limit the feeds which will be deleted. Also accepts optional limit of how many feeds to delete, defaults to 100. Returns the feed identifiers and feed state, i.e. Deleted.
该工具无需必填参数,直接调用即可
isContentDone 1 个参数 需填 1 项
Check if content has completed asynchronous ingestion. Accepts a content identifier which was returned from one of the non-feed ingestion tools, like ingestUrl. Returns whether the content is done or not.
必填参数:id
isFeedDone 1 个参数 需填 1 项
Check if an asynchronous feed has completed ingesting all the available content. Accepts a feed identifier which was returned from one of the ingestion tools, like ingestGoogleDriveFiles. Returns whether the feed is done or not.
必填参数:id
listMicrosoftTeamsTeams
Lists available Microsoft Teams teams. Returns a list of Microsoft Teams teams, where the team identifier can be used with listMicrosoftTeamsChannels to enumerate Microsoft Teams channels.
该工具无需必填参数,直接调用即可
listMicrosoftTeamsChannels 1 个参数 需填 1 项
Lists available Microsoft Teams channels. Returns a list of Microsoft Teams channels, where the channel identifier can be used with ingestMicrosoftTeamsMessages to ingest messages into Graphlit knowledge base.
必填参数:teamId
listSlackChannels
Lists available Slack channels. Returns a list of Slack channels, where the channel name can be used with ingestSlackMessages to ingest messages into Graphlit knowledge base.
该工具无需必填参数,直接调用即可
listSharePointLibraries
Lists available SharePoint libraries. Returns a list of SharePoint libraries, where the selected libraryId can be used with listSharePointFolders to enumerate SharePoint folders in a library.
该工具无需必填参数,直接调用即可
listSharePointFolders 1 个参数 需填 1 项
Lists available SharePoint folders. Returns a list of SharePoint folders, which can be used with ingestSharePointFiles to ingest files into Graphlit knowledge base.
必填参数:libraryId
ingestSharePointFiles 3 个参数 需填 1 项
Ingests files from SharePoint library into Graphlit knowledge base. Accepts a SharePoint libraryId and an optional folderId to ingest files from a specific SharePoint folder. Libraries can be enumerated with listSharePointLibraries and library folders with listSharePointFolders. Accepts an optional read limit for the number of files to ingest. Executes asynchronously and returns the feed identifier.
必填参数:libraryId
ingestOneDriveFiles 1 个参数
Ingests files from OneDrive folder into Graphlit knowledge base. Accepts an optional read limit for the number of files to ingest. Executes asynchronously and returns the feed identifier.
该工具无需必填参数,直接调用即可
ingestGoogleDriveFiles 1 个参数
Ingests files from Google Drive folder into Graphlit knowledge base. Accepts an optional read limit for the number of files to ingest. Executes asynchronously and returns the feed identifier.
该工具无需必填参数,直接调用即可
ingestDropboxFiles 2 个参数
Ingests files from Dropbox folder into Graphlit knowledge base. Accepts optional relative path to Dropbox folder (i.e. /Pictures), and an optional read limit for the number of files to ingest. If no path provided, ingests files from root Dropbox folder. Executes asynchronously and returns the feed identifier.
该工具无需必填参数,直接调用即可
ingestBoxFiles 2 个参数
Ingests files from Box folder into Graphlit knowledge base. Accepts optional Box folder identifier, and an optional read limit for the number of files to ingest. If no folder identifier provided, ingests files from root Box folder (i.e. "0"). Folder identifier can be inferred from Box URL. https://app.box.com/folder/123456 -> folder identifier is "123456". Executes asynchronously and returns the feed identifier.
该工具无需必填参数,直接调用即可
ingestGitHubFiles 3 个参数 需填 2 项
Ingests files from GitHub repository into Graphlit knowledge base. Accepts GitHub repository owner and repository name and an optional read limit for the number of files to ingest. For example, for GitHub repository (https://github.com/openai/tiktoken), 'openai' is the repository owner, and 'tiktoken' is the repository name. Executes asynchronously and returns the feed identifier.
必填参数:repositoryName、repositoryOwner
ingestNotionPages 1 个参数
Ingests pages from Notion database into Graphlit knowledge base. Accepts an optional read limit for the number of messages to ingest. Executes asynchronously and returns the feed identifier.
该工具无需必填参数,直接调用即可
ingestMicrosoftTeamsMessages 3 个参数 需填 2 项
Ingests messages from Microsoft Teams channel into Graphlit knowledge base. Accepts Microsoft Teams team identifier and channel identifier, and an optional read limit for the number of messages to ingest. Executes asynchronously and returns the feed identifier.
必填参数:teamId、channelId
ingestSlackMessages 2 个参数 需填 1 项
Ingests messages from Slack channel into Graphlit knowledge base. Accepts Slack channel name and an optional read limit for the number of messages to ingest. Executes asynchronously and returns the feed identifier.
必填参数:channelName
ingestDiscordMessages 2 个参数 需填 1 项
Ingests messages from Discord channel into Graphlit knowledge base. Accepts Discord channel name and an optional read limit for the number of messages to ingest. Executes asynchronously and returns the feed identifier.
必填参数:channelName
ingestRedditPosts 2 个参数 需填 1 项
Ingests posts from Reddit subreddit into Graphlit knowledge base. Accepts a subreddit name and an optional read limit for the number of posts to ingest. Executes asynchronously and returns the feed identifier.
必填参数:subredditName
ingestGoogleEmail 1 个参数
Ingests emails from Google Email account into Graphlit knowledge base. Accepts an optional read limit for the number of emails to ingest. Executes asynchronously and returns the feed identifier.
该工具无需必填参数,直接调用即可
ingestMicrosoftEmail 1 个参数
Ingests emails from Microsoft Email account into Graphlit knowledge base. Accepts an optional read limit for the number of emails to ingest. Executes asynchronously and returns the feed identifier.
该工具无需必填参数,直接调用即可
ingestLinearIssues 2 个参数 需填 1 项
Ingests issues from Linear project into Graphlit knowledge base. Accepts Linear project name and an optional read limit for the number of issues to ingest. Executes asynchronously and returns the feed identifier.
必填参数:projectName
ingestGitHubIssues 3 个参数 需填 2 项
Ingests issues from GitHub repository into Graphlit knowledge base. Accepts GitHub repository owner and repository name and an optional read limit for the number of issues to ingest. For example, for GitHub repository (https://github.com/openai/tiktoken), 'openai' is the repository owner, and 'tiktoken' is the repository name. Executes asynchronously and returns the feed identifier.
必填参数:repositoryName、repositoryOwner
ingestJiraIssues 3 个参数 需填 2 项
Ingests issues from Atlassian Jira repository into Graphlit knowledge base. Accepts Atlassian Jira server URL and project name, and an optional read limit for the number of issues to ingest. Executes asynchronously and returns the feed identifier.
必填参数:url、projectName
webCrawl 2 个参数 需填 1 项
Crawls web pages from web site into Graphlit knowledge base. Accepts a URL and an optional read limit for the number of pages to crawl. Uses sitemap.xml to discover pages to be crawled from website. Executes asynchronously and returns the feed identifier.
必填参数:url
webMap 1 个参数 需填 1 项
Enumerates the web pages at or beneath the provided URL using web sitemap. Does *not* ingest web pages into Graphlit knowledge base. Accepts web page URL as string. Returns list of mapped URIs from web site.
必填参数:url
webSearch 2 个参数 需填 1 项
Performs web search based on search query. Format the search query as what would be entered into a Google search. Prefer calling this tool over using 'curl' directly for any web search. Does *not* ingest pages into Graphlit knowledge base. Accepts search query as string, and optional search service type. Can search for web pages, podcasts, videos, images, news, or shopping. Search service types: Tavily, Exa. Defaults to Tavily. Returns URL, title and relevant Markdown text from resulting web pages.
必填参数:search
ingestRSS 2 个参数 需填 1 项
Ingests posts from RSS feed into Graphlit knowledge base. For podcast RSS feeds, audio will be downloaded, transcribed and ingested into Graphlit knowledge base. Accepts RSS URL and an optional read limit for the number of posts to read. Executes asynchronously and returns the feed identifier.
必填参数:url
ingestUrl 1 个参数 需填 1 项
Ingests content from URL into Graphlit knowledge base. Can scrape web pages, and can ingest individual Word documents, PDFs, audio recordings, videos, images, or any other unstructured data. Executes asynchronously and returns the content identifier.
必填参数:url
ingestText 3 个参数 需填 2 项
Ingests text as content into Graphlit knowledge base. Accepts a name for the content object, the text itself, and an optional text type (Plain, Markdown, Html). Defaults to Markdown text type. Can use for storing long-term textual memories or the output from LLM or other tools as content resources, which can be later searched or retrieved. Executes *synchronously* and returns the content identifier.
必填参数:name、text
ingestFile 1 个参数 需填 1 项
Ingests local file into Graphlit knowledge base. Accepts the path to the file in the local filesystem. Executes asynchronously and returns the content identifier.
必填参数:filePath
screenshotPage 1 个参数 需填 1 项
Screenshots web page from URL. Executes asynchronously and returns the content identifier.
必填参数:url
describeImage 2 个参数 需填 2 项
Prompts vision LLM and returns completion. Does *not* ingest image into Graphlit knowledge base. Accepts image URL as string. Returns Markdown text from LLM completion.
必填参数:prompt、url
describeContent 2 个参数 需填 1 项
Prompts vision LLM and returns description of image content. Accepts content identifier as string, and optional prompt for image description. Returns Markdown text from LLM completion.
必填参数:id
服务介绍
Graphlit 平台的 Model Context Protocol (MCP) 服务器
概述
Model Context Protocol (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。本文档概述了设置过程,并提供了使用客户端的基本示例。
您可以从 Slack、Discord、网站、Google Drive、电子邮件、Jira、Linear 或 GitHub 中导入任何内容到 Graphlit 项目中,然后在像 Cursor、Windsurf 或 Cline 这样的 MCP 客户端中搜索和检索相关知识。
文档(PDF、DOCX、PPTX 等)和 HTML 网页将在导入时被提取为 Markdown 格式。
音频和视频文件将在导入时转录。
Web 爬虫和网络搜索作为 MCP 工具内置,无需单独集成如 Firecrawl、Exa 等其他工具。
您可以在我们的 博客 上了解更多关于 MCP 服务器用例和功能的信息。
工具
检索
- 查询内容
- 查询集合
- 检索相关源
- 检索相似图片
- 图片视觉描述
提取
- 从文本中提取结构化的 JSON
导入
- 文件
- 网页
- 消息
- 帖子
- 电子邮件
- 问题
- 文本
数据连接器
- Microsoft Outlook 电子邮件
- Google Mail
- Notion
- Linear
- Jira
- GitHub Issues
- Google Drive
- OneDrive
- SharePoint
- Dropbox
- Box
- GitHub
- Slack
- Microsoft Teams
- Discord
- Twitter/X
- 播客 (RSS)
Web
- Web 爬虫
- Web 搜索(包括播客搜索)
- Web 映射
- 截图页面
通知
- Slack
- 电子邮件
- Webhook
操作
- 配置项目
- 创建集合
- 向集合添加内容
- 从集合中移除内容
- 删除集合
- 删除订阅
- 删除内容
- 订阅完成了吗?
- 内容完成了吗?
枚举
- 列出 Slack 频道
- 列出 Microsoft Teams 团队
- 列出 Microsoft Teams 频道
- 列出 SharePoint 库
- 列出 SharePoint 文件夹
- 列出 Linear 项目
资源
- 项目
- 内容
- 订阅
- 内容集合
- 工作流
- 规范
前提条件
在开始之前,请确保您具备以下条件:
- 您的系统上安装了 Node.js(建议版本 18.x 或更高)。
- 在 Graphlit 平台 上拥有一个活跃帐户,并可以访问 API 设置仪表板。
配置
Graphlit MCP 服务器支持通过设置环境变量来进行身份验证和配置:
GRAPHLIT_ENVIRONMENT_ID:您的环境 ID。GRAPHLIT_ORGANIZATION_ID:您的组织 ID。GRAPHLIT_JWT_SECRET:用于签署 JWT 令牌的 JWT 密钥。
你可以在 Graphlit 平台 的 API 设置仪表板中找到这些值。
安装
通过 Windsurf 安装
要在 Windsurf IDE 应用程序中安装 graphlit-mcp-server,Cline 应该使用 NPX:
npx -y graphlit-mcp-server
你的 mcp_config.json 文件应该配置如下:
{
"mcpServers": {
"graphlit-mcp-server": {
"command": "npx",
"args": [
"-y",
"graphlit-mcp-server"
],
"env": {
"GRAPHLIT_ORGANIZATION_ID": "your-organization-id",
"GRAPHLIT_ENVIRONMENT_ID": "your-environment-id",
"GRAPHLIT_JWT_SECRET": "your-jwt-secret",
}
}
}
}
通过 Cline 安装
要在 Cline IDE 应用程序中安装 graphlit-mcp-server,Cline 应该使用 NPX:
npx -y graphlit-mcp-server
你的 cline_mcp_settings.json 文件应该配置如下:
{
"mcpServers": {
"graphlit-mcp-server": {
"command": "npx",
"args": [
"-y",
"graphlit-mcp-server"
],
"env": {
"GRAPHLIT_ORGANIZATION_ID": "your-organization-id",
"GRAPHLIT_ENVIRONMENT_ID": "your-environment-id",
"GRAPHLIT_JWT_SECRET": "your-jwt-secret",
}
}
}
}
通过 Cursor 安装
要在 Cursor IDE 应用程序中安装 graphlit-mcp-server,Cline 应该使用 NPX:
npx -y graphlit-mcp-server
你的 mcp.json 文件应该配置如下:
{
"mcpServers": {
"graphlit-mcp-server": {
"command": "npx",
"args": [
"-y",
"graphlit-mcp-server"
],
"env": {
"GRAPHLIT_ORGANIZATION_ID": "your-organization-id",
"GRAPHLIT_ENVIRONMENT_ID": "your-environment-id",
"GRAPHLIT_JWT_SECRET": "your-jwt-secret",
}
}
}
}
通过 Smithery 安装
要通过 Smithery 自动为 Claude 桌面版安装 graphlit-mcp-server:
npx -y @smithery/cli install @graphlit/graphlit-mcp-server --client claude
手动安装
要在任何 MCP 客户端应用程序中使用 Graphlit MCP Server,请使用:
{
"mcpServers": {
"graphlit-mcp-server": {
"command": "npx",
"args": [
"-y",
"graphlit-mcp-server"
],
"env": {
"GRAPHLIT_ORGANIZATION_ID": "your-organization-id",
"GRAPHLIT_ENVIRONMENT_ID": "your-environment-id",
"GRAPHLIT_JWT_SECRET": "your-jwt-secret",
}
}
}
}
可选地,你可以配置数据连接器的凭证,如 Slack、Google 邮件和 Notion。仅需要 GRAPHLIT_ORGANIZATION_ID、GRAPHLIT_ENVIRONMENT_ID 和 GRAPHLIT_JWT_SECRET。
{
"mcpServers": {
"graphlit-mcp-server": {
"command": "npx",
"args": [
"-y",
"graphlit-mcp-server"
],
"env": {
"GRAPHLIT_ORGANIZATION_ID": "your-organization-id",
"GRAPHLIT_ENVIRONMENT_ID": "your-environment-id",
"GRAPHLIT_JWT_SECRET": "your-jwt-secret",
"SLACK_BOT_TOKEN": "your-slack-bot-token",
"DISCORD_BOT_TOKEN": "your-discord-bot-token",
"TWITTER_TOKEN": "your-twitter-token",
"GOOGLE_EMAIL_REFRESH_TOKEN": "your-google-refresh-token",
"GOOGLE_EMAIL_CLIENT_ID": "your-google-client-id",
"GOOGLE_EMAIL_CLIENT_SECRET": "your-google-client-secret",
"LINEAR_API_KEY": "your-linear-api-key",
"GITHUB_PERSONAL_ACCESS_TOKEN": "your-github-pat",
"JIRA_EMAIL": "your-jira-email",
"JIRA_TOKEN": "your-jira-token",
"NOTION_API_KEY": "your-notion-api-key",
"NOTION_DATABASE_ID": "your-notion-database-id"
}
}
}
}
支持
请参考 Graphlit API 文档。
对于 Graphlit MCP Server 的支持,请提交一个 GitHub Issue。
对于 Graphlit 平台的进一步支持,请加入我们的 Discord 社区。