A lightweight plugin that integrates Pinecone vector database capabilities directly into Claude Code, enabling semantic search, index management, and RAG (Retrieval Augmented Generation) workflows.
- Pinecone Assistant – Fully managed RAG service for document Q&A with citations, natural language support, and incremental file syncing
- Pinecone MCP Server – Full integration with the Pinecone Model Context Protocol server for index creation, listing, searching, and more
- Slash Commands – Quick access to common Pinecone operations directly from Claude Code
- Semantic Search – Query your vector indexes using natural language
- Natural Language Recognition – Assistant commands work without explicit slash commands
Install from the official Claude Code Plugins Directory:
-
Install the plugin:
/plugin install pinecone -
Restart Claude Code to activate the plugin.
Alternatively, install directly from the Pinecone marketplace:
-
Add the Pinecone plugin marketplace:
/plugin marketplace add pinecone-io/pinecone-claude-code-plugin -
Install the plugin:
/plugin install pinecone@pinecone-claude-code-plugin -
When prompted, select your preferred installation scope:
- User scope (default) – Available across all your projects
- Project scope – Shared with your team via version control
- Local scope – Project-specific, not shared (gitignored)
-
Restart Claude Code to activate the plugin.
- Restart Claude Code to activate the plugin.
After installing via either method, configure your Pinecone API key before running Claude Code:
export PINECONE_API_KEY="your-api-key-here"Don't have a Pinecone account? Sign up for free at app.pinecone.io
To use Pinecone Assistant functionality, you must have uv installed. uv is a fast Python package and project manager:
macOS and Linux:
curl -LsSf https://astral.sh/uv/install.sh | shWindows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"With Homebrew:
brew install uvAfter installation, restart your terminal and verify with: uv --version
Full installation guide: https://docs.astral.sh/uv/getting-started/installation/
For additional command-line capabilities, install the Pinecone CLI:
brew tap pinecone-io/tap
brew install pinecone-io/tap/pineconeDisplay help information about the plugin, including:
- Available functionality
- API key configuration
- Troubleshooting tips
Run this when first installing the Plugin, then proceed to the quickstart.
Get started quickly with Pinecone! This command:
- Downloads and generates an AGENTS.md file, optimized for use with Claude Code and Pinecone
- Walks you through a Python quickstart tutorial
- Helps you create your first index and perform semantic searches
Query your Pinecone indexes using natural language. This command wraps the Pinecone MCP server for easy searching of integrated indexes. Most useful when you already have an integrated index created, and want to query it quickly from Claude.
Usage:
/pinecone:query query [your search text] index [indexName] namespace [ns] reranker [rerankModel]
Parameters:
| Parameter | Required | Description |
|---|---|---|
query |
Yes | The text to search for |
index |
Yes | The name of the Pinecone index to search |
namespace |
No | The namespace within the index |
reranker |
No | The reranking model to use for improved relevance |
If you omit required arguments, the command will interactively guide you through selecting available indexes and namespaces.
Note: The
/querycommand currently only works with integrated indexes that use Pinecone's hosted embedding models. Third-party embedding models (OpenAI, HuggingFace, etc.) are not yet supported.
Pinecone Assistant is a fully managed RAG (Retrieval Augmented Generation) service that enables document Q&A with citations. The plugin includes full support with both slash commands and natural language recognition.
Create a new Pinecone Assistant for document-based Q&A with custom instructions and regional deployment.
Usage:
/pinecone:assistant-create --name my-docs-assistant [--instructions "Use professional tone"] [--region us]
Upload files or entire directories to your assistant for indexing. Supports PDF, Markdown, TXT, DOCX, and JSON files.
Usage:
/pinecone:assistant-upload --assistant my-docs-assistant --source ./docs
Sync local files with your assistant. Only uploads new or changed files (uses mtime and size detection). Optionally delete files from assistant that no longer exist locally.
Usage:
/pinecone:assistant-sync --assistant my-docs-assistant --source ./docs [--delete-missing] [--dry-run]
Chat with your assistant and receive cited responses with page numbers and source references.
Usage:
/pinecone:assistant-chat --assistant my-docs-assistant --message "What is RAG?"
Retrieve relevant context snippets from your assistant without generating a full chat response. Useful for custom RAG workflows.
Usage:
/pinecone:assistant-context --assistant my-docs-assistant --query "embedding models" [--top-k 5]
List all assistants in your account with status, region, and file count details.
Usage:
/pinecone:assistant-list [--files]
The assistant skill automatically recognizes natural language requests without requiring slash commands:
- "Create a Pinecone assistant from my docs"
- "Upload my docs to the assistant"
- "Sync my documentation with the assistant"
- "Ask my assistant about authentication"
- "Search my assistant for information about embedding models"
The skill remembers the last assistant you used, so you can say "my assistant" or "it" in follow-up requests.
Learn more: https://docs.pinecone.io/guides/assistant/quickstart
The plugin includes the full Pinecone MCP Server with the following tools:
| Tool | Description |
|---|---|
list-indexes |
List all available Pinecone indexes |
describe-index |
Get index configuration and namespaces |
describe-index-stats |
Get statistics including record counts and namespaces |
search-records |
Search records with optional metadata filtering and reranking |
create-index-for-model |
Create a new index with integrated embeddings |
upsert-records |
Insert or update records in an index |
rerank-documents |
Rerank documents using a specified reranking model |
For complete MCP server documentation, visit: Pinecone MCP Server Guide
Make sure your PINECONE_API_KEY environment variable is set correctly:
echo $PINECONE_API_KEYIf it's empty, set it and restart Claude Code.
- Ensure you have Node.js installed (the MCP server runs via
npx) - Check that your API key is valid
- Restart Claude Code after setting environment variables
The /query command only works with integrated indexes that use Pinecone's hosted embedding models. If you're using external embedding providers (OpenAI, HuggingFace, etc.), you'll need to use the MCP tools directly or wait for expanded support.
Make sure you have uv installed. uv is required for all assistant commands:
# Verify uv is installed
uv --version
# Install if missing
curl -LsSf https://astral.sh/uv/install.sh | sh # macOS/LinuxAfter installing uv, restart your terminal.
pinecone · semantic search · vector search · vector database · retrieval · RAG · agentic RAG · sparse search · document Q&A · citations · assistant · managed RAG
MIT License – see LICENSE for details.
Have fun and enjoy developing with Pinecone! 🌲