Graphlit

官方

從 Slack、Gmail 到播客摘要,以及網頁爬取,將任何內容攝取到可搜尋的 Graphlit 專案中。

你可以用 Graphlit MCP 做什麼?

  • Ingest content from tools like Slack, Jira, or GitHub — ask your assistant to ingest messages, issues, or files from connected data sources into your Graphlit project.
  • Search across all ingested knowledge — use Query Contents or Retrieve Relevant Sources to find documents, messages, web pages, and transcripts.
  • Ask questions against your project — prompt the LLM with Prompt LLM Conversation to get RAG-based answers grounded in your ingested content.
  • Crawl and search the web — use built-in Web Crawling and Web Search tools to pull in external pages or podcast results.
  • Extract structured data from text — apply Extract Structured JSON from Text to pull typed information out of unstructured content.
  • Manage collections and feeds — create, update, or delete collections and feeds, and check ingestion status with Is Feed Done? or Is Content Done?.

文件

npm version smithery badge

Graphlit 平台的模型上下文協定 (MCP) 伺服器

概述

模型上下文協定 (MCP) 伺服器可讓 MCP 用戶端與 Graphlit 服務進行整合。本文件概述了設定流程,並提供使用用戶端的基本範例。

將來自 Slack、Discord、網站、Google Drive、電子郵件、Jira、Linear 或 GitHub 的任何內容擷取至 Graphlit 專案中,然後在 Cursor、Windsurf、Goose 或 Cline 等 MCP 用戶端內搜尋並擷取相關知識。

您的 Graphlit 專案可作為一個可搜尋且支援 RAG 的知識庫,橫跨您所有的開發與產品管理工具。

文件(PDF、DOCX、PPTX 等)和 HTML 網頁在擷取時將會被提取為 Markdown。音訊和影片檔案在擷取時將會被轉錄。

網路爬蟲和網路搜尋已內建為 MCP 工具,無需另外整合 Firecrawl、Exa 等其他工具。

您可以在我們的部落格上閱讀更多關於 MCP 伺服器使用案例和功能的資訊。

觀看我們最新的 YouTube 影片,了解如何將 Graphlit MCP 伺服器與 Goose MCP 用戶端搭配使用。

如有任何關於使用 MCP 伺服器的問題,請加入我們的 Discord 社群,並在 #mcp 頻道發文。

graphlit-mcp-server MCP server

工具

擷取

  • 查詢內容
  • 查詢集合
  • 查詢摘要
  • 查詢對話
  • 擷取相關來源
  • 擷取相似圖片
  • 以視覺描述圖片

RAG

  • 提示 LLM 對話

提取

  • 從文字提取結構化 JSON

發布

  • 發布為音訊(ElevenLabs 音訊)
  • 發布為圖片(OpenAI 圖片生成)

擷取

  • 檔案
  • 網頁
  • 訊息
  • 貼文
  • 電子郵件
  • 議題
  • 文字
  • 記憶(短期)

資料連接器

  • Microsoft Outlook 電子郵件
  • Google Mail
  • Notion
  • Reddit
  • Linear
  • Jira
  • GitHub Issues
  • Google Drive
  • OneDrive
  • SharePoint
  • Dropbox
  • Box
  • GitHub
  • Slack
  • Microsoft Teams
  • Discord
  • Twitter/X
  • 播客 (RSS)

網路

  • 網路爬蟲
  • 網路搜尋(包含播客搜尋)
  • 網路映射
  • 螢幕截圖頁面

通知

  • Slack
  • 電子郵件
  • Webhook
  • Twitter/X

操作

  • 設定專案
  • 建立集合
  • 將內容新增至集合
  • 從集合移除內容
  • 刪除集合
  • 刪除摘要
  • 刪除內容
  • 刪除對話
  • 摘要是否完成?
  • 內容是否完成?

列舉

  • 列出 Slack 頻道
  • 列出 Microsoft Teams 團隊
  • 列出 Microsoft Teams 頻道
  • 列出 SharePoint 文件庫
  • 列出 SharePoint 資料夾
  • 列出 Linear 專案
  • 列出 Notion 資料庫
  • 列出 Notion 頁面
  • 列出 Dropbox 資料夾
  • 列出 Box 資料夾
  • 列出 Discord 伺服器
  • 列出 Discord 頻道
  • 列出 Google 日曆
  • 列出 Microsoft 日曆

資源

  • 專案
  • 內容
  • 摘要
  • 集合(內容的集合)
  • 工作流程
  • 對話
  • 規格

先決條件

開始之前,請確保您具備以下條件:

  • 系統上已安裝 Node.js(建議版本 18.x 或更高)。
  • Graphlit 平台上擁有活躍帳戶,並可存取 API 設定儀表板。

設定

Graphlit MCP 伺服器支援設定用於驗證和組態的環境變數:

  • GRAPHLIT_ENVIRONMENT_ID:您的環境 ID。
  • GRAPHLIT_ORGANIZATION_ID:您的組織 ID。
  • GRAPHLIT_JWT_SECRET:用於簽署 JWT 權杖的 JWT 密鑰。

您可以在 Graphlit 平台的 API 設定儀表板中找到這些值。

安裝

透過 VS Code 安裝

如需快速安裝,請使用下方的一鍵安裝按鈕:

Install with NPX in VS Code Install with NPX in VS Code Insiders

若要手動安裝,請在 VS Code 的使用者設定 (JSON) 檔案中新增以下 JSON 區塊。您可以按下 Ctrl + Shift + P 並輸入 Preferences: Open User Settings (JSON) 來執行此操作。

或者,您可以將其新增至工作區中名為 .vscode/mcp.json 的檔案。這將允許您與他人共用該組態。

請注意,.vscode/mcp.json 檔案中不需要 mcp 金鑰。

{
  "mcp": {
    "inputs": [
      {
        "type": "promptString",
        "id": "organization_id",
        "description": "Graphlit Organization ID",
        "password": true
      },
      {
        "type": "promptString",
        "id": "environment_id",
        "description": "Graphlit Environment ID",
        "password": true
      },
      {
        "type": "promptString",
        "id": "jwt_secret",
        "description": "Graphlit JWT Secret",
        "password": true
      }
    ],
    "servers": {
      "graphlit": {
        "command": "npx",
        "args": ["-y", "graphlit-mcp-server"],
        "env": {
          "GRAPHLIT_ORGANIZATION_ID": "${input:organization_id}",
          "GRAPHLIT_ENVIRONMENT_ID": "${input:environment_id}",
          "GRAPHLIT_JWT_SECRET": "${input:jwt_secret}"
        }
      }
    }
  }
}

透過 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,Cursor 應使用 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 Desktop 自動安裝 graphlit-mcp-server:

npx -y @smithery/cli install @graphlit/graphlit-mcp-server --client claude

手動安裝

若要在任何 MCP 用戶端應用程式中使用 Graphlit MCP 伺服器,請使用:

{
    "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 Email 和 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"
            }
        }
    }
}

注意:在 Windows 上執行 'npx' 時,您可能需要透過命令提示字元明確呼叫 npx。

"command": "C:\\Windows\\System32\\cmd.exe /c npx"

支援

請參閱 Graphlit API 文件

如需 Graphlit MCP 伺服器的支援,請提交 GitHub Issue

如需 Graphlit 平台的進一步支援,請加入我們的 Discord 社群。