Read and write to a Pinecone index. The server implements the ability to read and write to a Pinecone index. - semantic-search: Search for records in the Pinecone index. - read-document: Read a document from the Pinecone index. - list-documents: List all documents in the Pinecone index. - pinecone-stats: Get stats about the Pinecone index, including the number of records, dimensions, and namespace
Add this skill
npx mdskills install sirmews/mcp-pineconeWell-documented vector search MCP server with comprehensive tool set and clear setup
1# Pinecone Model Context Protocol Server for Claude Desktop.23[](https://smithery.ai/server/mcp-pinecone)45[](https://pypi.org/project/mcp-pinecone/)67Read and write to a Pinecone index.8910## Components1112```mermaid13flowchart TB14 subgraph Client["MCP Client (e.g., Claude Desktop)"]15 UI[User Interface]16 end1718 subgraph MCPServer["MCP Server (pinecone-mcp)"]19 Server[Server Class]2021 subgraph Handlers["Request Handlers"]22 ListRes[list_resources]23 ReadRes[read_resource]24 ListTools[list_tools]25 CallTool[call_tool]26 GetPrompt[get_prompt]27 ListPrompts[list_prompts]28 end2930 subgraph Tools["Implemented Tools"]31 SemSearch[semantic-search]32 ReadDoc[read-document]33 ListDocs[list-documents]34 PineconeStats[pinecone-stats]35 ProcessDoc[process-document]36 end37 end3839 subgraph PineconeService["Pinecone Service"]40 PC[Pinecone Client]41 subgraph PineconeFunctions["Pinecone Operations"]42 Search[search_records]43 Upsert[upsert_records]44 Fetch[fetch_records]45 List[list_records]46 Embed[generate_embeddings]47 end48 Index[(Pinecone Index)]49 end5051 %% Connections52 UI --> Server53 Server --> Handlers5455 ListTools --> Tools56 CallTool --> Tools5758 Tools --> PC59 PC --> PineconeFunctions60 PineconeFunctions --> Index6162 %% Data flow for semantic search63 SemSearch --> Search64 Search --> Embed65 Embed --> Index6667 %% Data flow for document operations68 UpsertDoc --> Upsert69 ReadDoc --> Fetch70 ListRes --> List7172 classDef primary fill:#2563eb,stroke:#1d4ed8,color:white73 classDef secondary fill:#4b5563,stroke:#374151,color:white74 classDef storage fill:#059669,stroke:#047857,color:white7576 class Server,PC primary77 class Tools,Handlers secondary78 class Index storage79```8081### Resources8283The server implements the ability to read and write to a Pinecone index.8485### Tools8687- `semantic-search`: Search for records in the Pinecone index.88- `read-document`: Read a document from the Pinecone index.89- `list-documents`: List all documents in the Pinecone index.90- `pinecone-stats`: Get stats about the Pinecone index, including the number of records, dimensions, and namespaces.91- `process-document`: Process a document into chunks and upsert them into the Pinecone index. This performs the overall steps of chunking, embedding, and upserting.9293Note: embeddings are generated via Pinecone's inference API and chunking is done with a token-based chunker. Written by copying a lot from langchain and debugging with Claude.94## Quickstart9596### Installing via Smithery9798To install Pinecone MCP Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/mcp-pinecone):99100```bash101npx -y @smithery/cli install mcp-pinecone --client claude102```103104### Install the server105106Recommend using [uv](https://docs.astral.sh/uv/getting-started/installation/) to install the server locally for Claude.107108```109uvx install mcp-pinecone110```111OR112```113uv pip install mcp-pinecone114```115116Add your config as described below.117118#### Claude Desktop119120On MacOS: `~/Library/Application\ Support/Claude/claude_desktop_config.json`121On Windows: `%APPDATA%/Claude/claude_desktop_config.json`122123Note: You might need to use the direct path to `uv`. Use `which uv` to find the path.124125126__Development/Unpublished Servers Configuration__127128```json129"mcpServers": {130 "mcp-pinecone": {131 "command": "uv",132 "args": [133 "--directory",134 "{project_dir}",135 "run",136 "mcp-pinecone"137 ]138 }139}140```141142143__Published Servers Configuration__144145```json146"mcpServers": {147 "mcp-pinecone": {148 "command": "uvx",149 "args": [150 "--index-name",151 "{your-index-name}",152 "--api-key",153 "{your-secret-api-key}",154 "mcp-pinecone"155 ]156 }157}158```159160#### Sign up to Pinecone161162You can sign up for a Pinecone account [here](https://www.pinecone.io/).163164#### Get an API key165166Create a new index in Pinecone, replacing `{your-index-name}` and get an API key from the Pinecone dashboard, replacing `{your-secret-api-key}` in the config.167168## Development169170### Building and Publishing171172To prepare the package for distribution:1731741. Sync dependencies and update lockfile:175```bash176uv sync177```1781792. Build package distributions:180```bash181uv build182```183184This will create source and wheel distributions in the `dist/` directory.1851863. Publish to PyPI:187```bash188uv publish189```190191Note: You'll need to set PyPI credentials via environment variables or command flags:192- Token: `--token` or `UV_PUBLISH_TOKEN`193- Or username/password: `--username`/`UV_PUBLISH_USERNAME` and `--password`/`UV_PUBLISH_PASSWORD`194195### Debugging196197Since MCP servers run over stdio, debugging can be challenging. For the best debugging198experience, we strongly recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/inspector).199200201You can launch the MCP Inspector via [`npm`](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) with this command:202203```bash204npx @modelcontextprotocol/inspector uv --directory {project_dir} run mcp-pinecone205```206207208Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.209210## License211212This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.213214## Source Code215216The source code is available on [GitHub](https://github.com/sirmews/mcp-pinecone).217218## Contributing219220Send your ideas and feedback to me on [Bluesky](https://bsky.app/profile/perfectlycromulent.bsky.social) or by opening an issue.221
Full transparency — inspect the skill content before installing.