Pinecone Read-Only MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PINECONE_API_KEY | No | Pinecone API key. Required for live Pinecone unless using multi-source mode. | |
| PINECONE_SOURCES | No | Multi-source mode: JSON configuration for multiple Pinecone projects. Use instead of a single PINECONE_API_KEY. | |
| PINECONE_INDEX_NAME | No | Dense index name. Required for core/library use; the published CLI defaults to `rag-hybrid` when unset. | rag-hybrid |
| PINECONE_CONFIG_FILE | No | Multi-source mode: path to a JSON config file for multiple Pinecone projects. Use instead of a single PINECONE_API_KEY. | |
| PINECONE_RERANK_MODEL | No | Reranker model. Set to enable reranking; the CLI defaults to `bge-reranker-v2-m3` when unset. | bge-reranker-v2-m3 |
| PINECONE_SPARSE_INDEX_NAME | No | Sparse index name. Defaults to `{index}-sparse`. | {index}-sparse |
| PINECONE_READ_ONLY_MCP_LOG_LEVEL | No | Logging level (`DEBUG`–`ERROR`). Defaults to `INFO`. | INFO |
| PINECONE_READ_ONLY_MCP_LOG_FORMAT | No | Log format: `text` or `json`. Defaults to `text`. | text |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Quickstart for AI clients: for most user questions, call guided_query with the user's question — it does namespace routing, suggestion, and execution in one shot and returns experimental.decision_trace you can show the user. Alternatively call list_namespaces to discover namespaces, optionally namespace_router to rank candidates from user intent, then query (preset fast/detailed/full), count, query_documents, keyword_search, or generate_urls as needed.
A semantic search server that provides hybrid search capabilities over Pinecone vector indexes with automatic namespace discovery.
Features:
Hybrid Search: Combines dense and sparse embeddings for superior recall
Semantic Reranking: Applied when a rerank model is configured; skipped when none is configured
Dynamic Namespace Discovery: Automatically discovers available namespaces
Metadata Filtering: Supports optional metadata filters for refined searches
Namespace Router: Suggests likely namespace(s) from natural-language intent
Count: Use the count tool for "how many X?" questions; it uses semantic search only and minimal fields (no content) for performance, returning unique document count.
URL Generation: Use generate_urls to synthesize URLs for namespaces that have a registered generator when metadata lacks url.
Document reassembly: Use query_documents to get whole documents (chunks grouped and merged by document_number/doc_id/url) for content analysis or summarization. query_documents reranks when a rerank model is configured.
Keyword search: Use keyword_search to query the sparse index for lexical/keyword-only retrieval without reranking.
Multi-Source: When PINECONE_SOURCES or a config file is set, multiple Pinecone projects are available in one server. Use list_sources and pass source on tools; list_namespaces tags each namespace with its source.
Notes:
Result rows include both
document_id(canonical) andpaper_number(deprecated alias kept for one minor cycle; will be removed in the next major release). Preferdocument_idin new code.
Usage:
Prefer guided_query for single-call retrieval (no prerequisite tools).
Use list_namespaces (cached) to discover available namespaces in the index. The response includes
expires_at_isoso you know when to refresh.Optionally use namespace_router to choose candidate namespace(s) from user intent.
Use count for count questions,
querywith the appropriate preset for chunk-level retrieval, query_documents for full-document content, keyword_search for lexical retrieval, or generate_urls when records need synthesized URLs.
Multi-source (when configured): call list_sources, then list_namespaces (all sources unless source is set). Pass source when a namespace may exist on multiple projects. Treat source on results as provenance.
Manual Alliance flow (after list_namespaces):
Call suggest_query_params before query (preset fast/detailed/full per suggestion), count, or query_documents — mandatory gate unless PINECONE_DISABLE_SUGGEST_FLOW=true
Use the recommended preset/tool from the suggestion response
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_namespacesA | List all available namespaces in the Pinecone index with their metadata fields and record counts. Returns detailed information about each namespace including available metadata fields that can be used for filtering in queries. Use this tool first to discover which namespaces exist and what metadata fields are available for filtering. In multi-source mode, omit source to list namespaces from all configured projects (each tagged with source). Results are cached in-memory for 30 minutes for better performance. |
| namespace_routerA | Suggest likely namespace(s) for a user query using namespace names, metadata fields, and keyword heuristics. Use before suggest_query_params when namespace is unclear. In multi-source mode, ranks across all sources unless source is set. |
| countA | Get the number of unique documents matching a metadata filter and semantic query. Use when the user asks for a count (e.g. "how many documents by author X?", "how many records tagged Y?"). Uses semantic (dense) search only and requests only document identifiers (no content) for performance. Returns the number of unique documents (deduped by document_number/url/doc_id) up to 10,000; truncated=true if at least that many. Mandatory flow: call suggest_query_params first, then count. Use list_namespaces to discover namespace and metadata fields. For count-by-metadata only, use a broad query_text (e.g. "document" or "record"). Same metadata_filter operators as query: $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin, $and, $or. |
| queryB | Hybrid semantic search (dense + sparse) with optional reranking. Requires suggest_query_params to be called first for the target namespace. Use preset= |
| keyword_searchA | Keyword (lexical/sparse-only) search over the Pinecone sparse index ({indexName}-sparse). Use for exact or keyword-style queries. Does not use semantic reranking. Call list_namespaces first to discover namespaces. Does not require suggest_query_params. |
| query_documentsA | Run a semantic query and return whole documents (reassembled from chunks). Reranks for document-level relevance when a rerank model is configured (higher latency/cost than chunk-only query). Use for content analysis, summarization, or when you need full-document context. Chunks are grouped by document_number/doc_id/url, ordered by chunk_index when present (e.g. from RecursiveCharacterTextSplitter), and merged into one content per document. Requires suggest_query_params to be called first for the target namespace. Use list_namespaces to discover namespaces. |
| generate_urlsA | Generate URLs for retrieved results when metadata does not include url and URL is needed. Uses the URL generator registered for the given namespace (if any); returns unavailable for namespaces without a generator. |
| guided_queryA | Combines namespace routing, suggestion, and query into a single call — no prerequisite tools needed. Single orchestrator: optional namespace_router logic -> executes count or hybrid query (fast / detailed / full presets). Returns experimental.decision_trace so behavior stays transparent and debuggable. |
| suggest_query_paramsA | Suggest which fields to request and whether to use the count tool, based on the namespace schema (from list_namespaces) and the user's natural language query. Call list_namespaces first to get available namespaces and metadata fields. Then call this tool with the target namespace and the user query; it returns suggested_fields (only fields that exist in that namespace), use_count_tool (true if the query is a count question), recommended_tool (count | fast | detailed | full — same vocabulary as the query tool preset), and an explanation. When the suggest-flow gate is enabled (the Alliance default) this call is required before the query/count tools; when the gate is off (the core default) it is optional. Either way, use the returned suggested_fields in query tools to reduce payload and cost. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 9 tools
The retrieval tools (query, query_documents, keyword_search) are distinguishable by mode (hybrid/chunk, whole-document, lexical), and the descriptions clarify the distinctions. However, guided_query is an explicit orchestrator that duplicates the namespace_router -> suggest_query_params -> query/count pipeline, and namespace_router vs suggest_query_params have overlapping advisory purposes, creating real 'which path do I take' ambiguity.
Most names follow snake_case verb_noun (list_namespaces, generate_urls, query_documents, suggest_query_params, keyword_search). But there are notable deviations: bare verbs (count, query) and a noun-based name (namespace_router), plus guided_query which is verb_noun but semantically an orchestrator.
Nine tools is a good scope for a read-only retrieval server and comfortably within the 3-15 sweet spot. The only mild redundancy is guided_query re-implementing the route/suggest/query sequence, making the set slightly larger than strictly needed.
The read-only retrieval surface is well covered: namespace discovery, param suggestion, routing, counting, hybrid/lexical search, whole-document retrieval, and URL generation. Minor gaps exist beyond design constraint (write operations are intentionally absent): no direct fetch-by-ID or explicit index/namespace stats endpoint beyond list_namespaces.