Vectorize MCP Server

官方

Vectorize MCP 伺服器,用於進階檢索、私有深度研究、任意格式轉 Markdown 檔案提取與文字分塊。

文件

Vectorize MCP 伺服器

一個模型上下文協定(MCP)伺服器實作,整合 Vectorize 以提供進階的向量檢索與文字擷取功能。

Vectorize MCP server

安裝

使用 npx 執行

export VECTORIZE_ORG_ID=YOUR_ORG_ID
export VECTORIZE_TOKEN=YOUR_TOKEN
export VECTORIZE_PIPELINE_ID=YOUR_PIPELINE_ID

npx -y @vectorize-io/vectorize-mcp-server@latest

VS Code 安裝

若要一鍵安裝,請點擊下方的任一安裝按鈕:

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

手動安裝

若要快速安裝,請使用本節頂部的一鍵安裝按鈕。

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

{
  "mcp": {
    "inputs": [
      {
        "type": "promptString",
        "id": "org_id",
        "description": "Vectorize Organization ID"
      },
      {
        "type": "promptString",
        "id": "token",
        "description": "Vectorize Token",
        "password": true
      },
      {
        "type": "promptString",
        "id": "pipeline_id",
        "description": "Vectorize Pipeline ID"
      }
    ],
    "servers": {
      "vectorize": {
        "command": "npx",
        "args": ["-y", "@vectorize-io/vectorize-mcp-server@latest"],
        "env": {
          "VECTORIZE_ORG_ID": "${input:org_id}",
          "VECTORIZE_TOKEN": "${input:token}",
          "VECTORIZE_PIPELINE_ID": "${input:pipeline_id}"
        }
      }
    }
  }
}

或者,您可以將下列內容新增至工作區中名為 .vscode/mcp.json 的檔案,以便與他人共用設定:

{
  "inputs": [
    {
      "type": "promptString",
      "id": "org_id",
      "description": "Vectorize Organization ID"
    },
    {
      "type": "promptString",
      "id": "token",
      "description": "Vectorize Token",
      "password": true
    },
    {
      "type": "promptString",
      "id": "pipeline_id",
      "description": "Vectorize Pipeline ID"
    }
  ],
  "servers": {
    "vectorize": {
      "command": "npx",
      "args": ["-y", "@vectorize-io/vectorize-mcp-server@latest"],
      "env": {
        "VECTORIZE_ORG_ID": "${input:org_id}",
        "VECTORIZE_TOKEN": "${input:token}",
        "VECTORIZE_PIPELINE_ID": "${input:pipeline_id}"
      }
    }
  }
}

Claude/Windsurf/Cursor/Cline 上的設定

{
  "mcpServers": {
    "vectorize": {
      "command": "npx",
      "args": ["-y", "@vectorize-io/vectorize-mcp-server@latest"],
      "env": {
        "VECTORIZE_ORG_ID": "your-org-id",
        "VECTORIZE_TOKEN": "your-token",
        "VECTORIZE_PIPELINE_ID": "your-pipeline-id"
      }
    }
  }
}

工具

擷取文件

執行向量搜尋並擷取文件(請參閱官方 API):

{
  "name": "retrieve",
  "arguments": {
    "question": "Financial health of the company",
    "k": 5
  }
}

文字擷取與分塊(任何檔案轉換為 Markdown)

從文件中擷取文字,並將其分塊為 Markdown 格式(請參閱官方 API):

{
  "name": "extract",
  "arguments": {
    "base64document": "base64-encoded-document",
    "contentType": "application/pdf"
  }
}

深度研究

從您的管線產生私人深度研究(請參閱官方 API):

{
  "name": "deep-research",
  "arguments": {
    "query": "Generate a financial status report about the company",
    "webSearch": true
  }
}

開發

npm install
npm run dev

發佈

變更 package.json 的版本後:

git commit -am "x.y.z"
git tag x.y.z
git push origin
git push origin --tags

貢獻

  1. Fork 此儲存庫
  2. 建立您的功能分支
  3. 提交 Pull Request