松果助手MCP

@pinecone-io/assistant-mcp
0 Stars 20 次浏览 pinecone-io 更新于 2026-08-23

松果助手 MCP

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "pinecone-assistant": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PINECONE_API_KEY",
        "-e",
        "PINECONE_ASSISTANT_HOST",
        "pinecone/assistant-mcp"
      ],
      "command": "docker",
      "env": {
        "PINECONE_API_KEY": "\u003cYOUR_PINECONE_API_KEY_HERE\u003e",
        "PINECONE_ASSISTANT_HOST": "\u003cYOUR_PINECONE_ASSISTANT_HOST_HERE\u003e"
      }
    }
  }
}

该服务需要配置环境变量:LOG_LEVEL、PINECONE_API_KEY、PINECONE_ASSISTANT_HOST

服务介绍

Pinecone Assistant MCP Server

一个用于从Pinecone Assistant检索信息的MCP服务器实现。

特性

  • 从Pinecone Assistant检索信息
  • 支持配置结果数量以获取多个结果

前提条件

  • 您的系统上已安装Docker
  • Pinecone API密钥 - 请从Pinecone控制台获取
  • Pinecone Assistant API主机 - 创建助手后(例如在Pinecone控制台中),您可以在助手详情页面找到该主机

使用Docker构建

要构建Docker镜像:

docker build -t pinecone/assistant-mcp .

使用Docker运行

使用您的Pinecone API密钥运行服务器:

docker run -i --rm \
  -e PINECONE_API_KEY=<YOUR_PINECONE_API_KEY_HERE> \
  -e PINECONE_ASSISTANT_HOST=<YOUR_PINECONE_ASSISTANT_HOST_HERE> \
  pinecone/assistant-mcp

环境变量

  • PINECONE_API_KEY(必需):您的Pinecone API密钥
  • PINECONE_ASSISTANT_HOST(可选):Pinecone Assistant API主机(默认值: https://prod-1-data.ke.pinecone.io
  • LOG_LEVEL(可选):日志级别(默认值: info)

与Claude Desktop配合使用

将以下内容添加到您的claude_desktop_config.json文件中:

{
  "mcpServers": {
    "pinecone-assistant": {
      "command": "docker",
      "args": [
        "run", 
        "-i", 
        "--rm", 
        "-e", 
        "PINECONE_API_KEY", 
        "-e", 
        "PINECONE_ASSISTANT_HOST", 
        "pinecone/assistant-mcp"
      ],
      "env": {
        "PINECONE_API_KEY": "<YOUR_PINECONE_API_KEY_HERE>",
        "PINECONE_ASSISTANT_HOST": "<YOUR_PINECONE_ASSISTANT_HOST_HERE>"
      }
    }
  }
}

从源代码构建

如果您希望不使用Docker直接从源代码构建:

  1. 确保已安装Rust (https://rustup.rs/)
  2. 克隆此仓库
  3. 运行 cargo build --release
  4. 二进制文件将位于 target/release/assistant-mcp

使用检查器进行测试

export PINECONE_API_KEY=<YOUR_PINECONE_API_KEY_HERE>
export PINECONE_ASSISTANT_HOST=<YOUR_PINECONE_ASSISTANT_HOST_HERE>
# Run the inspector alone
npx @modelcontextprotocol/inspector cargo run
# Or run with Docker directly through the inspector
npx @modelcontextprotocol/inspector -- docker run -i --rm -e PINECONE_API_KEY -e PINECONE_ASSISTANT_HOST pinecone/assistant-mcp

许可证

本项目根据LICENSE文件中指定的条款获得许可。