Back to MCP directory
publicPublicdnsLocal runtime

mcp-pinecone

Pinecone MCP Server是一个为Claude Desktop设计的模型上下文协议服务器,提供与Pinecone索引的读写交互功能。

article

README

🚀 松果云模型上下文协议服务器文档

本项目为Claude桌面实现了一个能够读取和写入松果云索引的MCP(Model Context Protocol)服务器,为Claude桌面与松果云索引的数据交互提供了支持。

smithery badge

PyPI - 下载量

🚀 快速开始

安装与运行

  1. 使用以下命令安装服务器:
uv add mcp-pinecone@latest
  1. 在项目目录中创建配置文件config.json,添加以下内容:
{
  "pinecone": {
    "indexName": "YOUR_INDEX_NAME",
    "apiKey": "YOUR_API_KEY"
  }
}
  1. 启动服务器:
uv run mcp-pinecone

创建索引

使用以下命令创建新的松果云索引:

uv exec mcp-pinecone create-index --name my-index

✨ 主要特性

本项目实现了为Claude桌面读取和写入松果云索引的功能,通过构建MCP服务器,实现了客户端与松果云服务之间的数据交互。

🔧 技术细节

组件结构

flowchart TB
    subgraph 客户端["MCP客户端(如Claude桌面)"]
        UI[用户界面]
    end

    subgraph 服务器组件["MCP服务器(pinecone-mcp)"]
        Server[服务器类]

        subgraph 处理器["请求处理器"]
            PineconeIndexHandler[松果云索引处理器]
            FileHandler[文件处理器]
        end
    end

    subgraph 松果云服务["松果云服务"]
        PineconeService[松果云服务]
        APIEndpoint[API端点]
    end

    UI --> Server
    Server --> PineconeIndexHandler
    PineconeIndexHandler --> PineconeService
    PineconeService --> APIEndpoint

该图展示了项目的组件结构,包括MCP客户端、MCP服务器和松果云服务。客户端通过用户界面与服务器交互,服务器包含服务器类和请求处理器,请求处理器中的松果云索引处理器负责与松果云服务进行数据交互,最终通过API端点完成操作。

📦 安装指南

依赖管理与构建

  1. 同步依赖项并更新锁文件:
uv sync
  1. 构建发行版本:
uv build
  1. 发布到PyPI:
uv publish

💻 使用示例

基础用法

# 安装服务器
uv add mcp-pinecone@latest

# 创建配置文件并添加内容
{
  "pinecone": {
    "indexName": "YOUR_INDEX_NAME",
    "apiKey": "YOUR_API_KEY"
  }
}

# 启动服务器
uv run mcp-pinecone

高级用法

# 创建新的松果云索引
uv exec mcp-pinecone create-index --name my-index

📚 详细文档

项目开发

依赖管理与构建

  1. 同步依赖项并更新锁文件:
uv sync
  1. 构建发行版本:
uv build
  1. 发布到PyPI:
uv publish

调试指南

由于MCP服务器通过标准输入输出运行,调试较为困难。推荐使用MCP Inspector进行调试。

安装Inspector并启动:

npx @modelcontextprotocol/inspector uv --directory {project_dir} run mcp-pinecone

📄 许可证

本项目遵循MIT许可证,具体内容请参阅LICENSE文件。

🔗 其他信息

源代码地址

源代码托管在GitHub

贡献与反馈

欢迎通过Bluesky或提交问题的方式提供反馈和建议。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client