Vector Toolbox MCP
Vector Toolbox MCP is an MCP server for managing Pinecone vector indexes and running schema-aware vector/text search, with embeddings, reranking, TTL, and status tools.
Create, list, describe, configure, and delete Pinecone indexes, including indexes with hosted embedding models.
Manage namespaces; inspect index stats, metadata samples, and available search capabilities.
Upsert, update, fetch, list, and delete records/vectors, with validation, batching, and TTL expiration handling.
Search using BM25 text, Lucene query strings, dense, sparse, hybrid/auto modes, or Vectors API dense+sparse hybrid.
Apply metadata and FTS filters; fuse hybrid results with RRF or weighted scoring.
Rerank results, generate embeddings, and list hosted embedding/reranking models.
Check server configuration, backends, default embedder, and read-only status.
README also documents Chroma, Weaviate, and Qdrant backends, though the provided schema exposes Pinecone tools plus status.
Allows generating dense embeddings through OpenAI's embedding models for use in vector storage and search operations.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Vector Toolbox MCP Search the 'kb' namespace for 'refund policy' using hybrid search"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Vector Toolbox MCP
One MCP server, many vector databases — the same idea as Google's MCP Toolbox for databases, applied to vector stores. Pinecone, Chroma, Weaviate and Qdrant are wired up; the tool surface, backend contract and embedding layer are built so Milvus or pgvector slot in behind the same shape.
Built against the Pinecone Python SDK v10 — the Documents API with declared
field schemas, not the older dimension/metric index model.
Quick start
You need uv (or Docker). Add this to your MCP client's config and restart it:
{
"mcpServers": {
"vector-toolbox": {
"command": "uvx",
"args": ["--from", "vector-toolbox-mcp[chroma]", "vector-toolbox-mcp"],
"env": { "PINECONE_API_KEY": "pcsk_..." }
}
}
}Why
--frominargs? Python extras (like[chroma]or[all]) need--fromto telluvxwhich optional dependencies to install before running thevector-toolbox-mcpbinary. If you only need the default Pinecone backend, you can omit--fromand pass["vector-toolbox-mcp"].
Or let the installer find the config file, keep your other servers, and use absolute paths for you:
uvx --from vector-toolbox-mcp vector-toolbox-install claude-desktop # or: antigravity, cursorChroma needs no account — its default store is a local folder
(~/.vector-toolbox/chroma). Pinecone needs PINECONE_API_KEY. Full options:
Install and connect.
Related MCP server: @dotlab-hq/vector-store-mcp
Install and connect
Way to run | Best for | Command the client launches |
uvx (PyPI) | Most people |
|
Docker, stdio | No Python on the machine |
|
Docker, HTTP | One shared server, several clients or machines | client connects to |
Source checkout | Developing the server |
|
Extras pick optional dependencies: chroma, weaviate, qdrant, openai, cohere,
local (sentence-transformers — large), or all (everything but local).
Pinecone support is always included. Example: vector-toolbox-mcp[chroma,weaviate].
Configuration
Everything is an environment variable — set them in the client config's env
block, in a .env file, or with -e for Docker. The full list with comments is
in .env.example. The ones most people touch:
Variable | Default | Purpose |
| — | Pinecone backend |
|
| Chroma default client: |
|
| Where the persistent Chroma store lives |
| — | Chroma Cloud |
|
| Weaviate default client: |
|
| Self-hosted Weaviate |
| — | Weaviate Cloud |
|
| Default embedder ( |
| — | Those embedders |
|
|
|
|
|
|
|
| HTTP listener |
| — | Require |
| — | Host headers to accept on HTTP (DNS-rebinding protection) |
A .env is found, in order: --env-file / VTB_ENV_FILE, a source checkout's
root, ~/.config/vector-toolbox/.env, the working directory. Real environment
variables always win. Command-line flags: vector-toolbox-mcp --help.
Claude Desktop
Config file: macOS ~/Library/Application Support/Claude/claude_desktop_config.json,
Windows %APPDATA%\Claude\claude_desktop_config.json (Settings → Developer →
Edit Config opens it).
vector-toolbox-install claude-desktop # uvx
vector-toolbox-install claude-desktop --mode docker
vector-toolbox-install claude-desktop --mode source # from a checkoutor paste one of examples/claude-desktop/ — uvx.json,
docker.json, source.json. Then quit Claude Desktop completely (Cmd+Q on
macOS, Exit from the tray on Windows) and reopen it.
macOS: "spawn uvx ENOENT". Apps started from the Dock don't get your shell's
PATH. Use the absolute path fromwhich uvxascommand(the installer does this for you).
Claude Desktop's config file only launches local servers. To use a remote HTTP deployment, add its URL as a custom connector in Claude's settings instead.
Claude Code
claude mcp add vector-toolbox -e PINECONE_API_KEY=pcsk_... -- uvx --from 'vector-toolbox-mcp[chroma]' vector-toolbox-mcp
claude mcp add --transport http vector-toolbox http://localhost:8000/mcp --header "Authorization: Bearer $VTB_AUTH_TOKEN"Google Antigravity
Antigravity (IDE, 2.0 and CLI) reads ~/.gemini/config/mcp_config.json, or
.agents/mcp_config.json inside a workspace. In the IDE: agent panel … →
MCP Servers → Manage MCP Servers → View raw config.
vector-toolbox-install antigravity # uvx, local
vector-toolbox-install antigravity --mode http --url http://localhost:8000/mcp --token-env VTB_AUTH_TOKENExamples: examples/antigravity/mcp_config.json
(local) and mcp_config.remote.json
(remote — note Antigravity's key is serverUrl, not url). Refresh the server
list after editing.
Cursor and VS Code
Cursor: ~/.cursor/mcp.json or .cursor/mcp.json in a project —
vector-toolbox-install cursor, or see examples/cursor/mcp.json.
VS Code: .vscode/mcp.json uses a servers key and can prompt for secrets —
see examples/vscode/mcp.json.
Docker
The image ghcr.io/salindahulangamuwa/vector-toolbox-mcp (linux/amd64 and
arm64) runs as a non-root user with /data as its volume: the persistent Chroma
store and Chroma's embedding-model cache live there.
stdio — the client starts a container per session (see
examples/claude-desktop/docker.json):
docker run -i --rm -e VTB_TRANSPORT=stdio -e PINECONE_API_KEY \
-v vector-toolbox-data:/data ghcr.io/salindahulangamuwa/vector-toolbox-mcpHTTP — one long-running server, any number of clients:
export VTB_AUTH_TOKEN=$(python3 -c "import secrets; print(secrets.token_urlsafe(32))")
docker run -d --name vector-toolbox -p 127.0.0.1:8000:8000 \
-e VTB_AUTH_TOKEN -e PINECONE_API_KEY -v vector-toolbox-data:/data \
ghcr.io/salindahulangamuwa/vector-toolbox-mcp
curl http://127.0.0.1:8000/health # {"status": "ok", ...}Clients connect to http://127.0.0.1:8000/mcp with
Authorization: Bearer $VTB_AUTH_TOKEN.
Compose — docker-compose.yml runs the HTTP server
with secrets from .env; --profile chroma adds a Chroma server alongside it:
cp .env.example .env # fill in keys and VTB_AUTH_TOKEN
docker compose up -d
docker compose --profile chroma up -dBuild it yourself with docker build -t vector-toolbox-mcp .
(--build-arg EXTRAS=chroma,openai,cohere,local to include sentence-transformers).
Exposing HTTP beyond localhost: set
VTB_AUTH_TOKEN, put TLS in front (Caddy, nginx, a cloud load balancer), and setVTB_ALLOWED_HOSTSto your domain. The server prints a warning if it binds to a public address without a token. See SECURITY.md.
From source
git clone https://github.com/SalindaHulangamuwa/VectorToolBoxMCP.git && cd VectorToolBoxMCP
uv venv && uv pip install -e ".[chroma]"
cp .env.example .env # optional; read automatically from here
python scripts/handshake_check.py .venv/bin/vector-toolbox-mcp # proves MCP works over stdio
.venv/bin/vector-toolbox-install claude-desktop --mode sourceIf it does not show up
Symptom | Cause |
Server missing from the client | The client was reloaded, not fully restarted |
|
|
Every call errors | Keys not reaching the server — call |
Only read tools work |
|
| Add the |
| Add the |
| Add the |
Weaviate "not reachable" | Both ports must be open: HTTP (8080) and gRPC (50051) |
HTTP returns 401 | Missing or wrong |
Running the command by hand shows start-up errors the client hides. It then waits silently for JSON-RPC on stdin — that is normal.
Why the schema comes first
In current Pinecone an index declares a schema of searchable fields, and the schema decides which searches that index can ever answer:
Field type | Enables |
| semantic search |
| learned lexical search (SPLADE-style) |
| BM25 and Lucene query strings |
The schema is immutable. Adding a signal later means creating a new index and reindexing. Because of that, every search tool in this server checks the request against the live schema before going to the network, and a mismatch comes back as an explanation ("index X has no FTS field; it supports dense, vectors_api") rather than an HTTP 400.
pinecone_index_capabilities is the tool that reports this.
The five index/search recipes
# | Setup | Create with | Search with |
1 | Single text field — keyword only (FTS) |
|
|
2 | Multi-field FTS |
|
|
3 | Dense + FTS |
|
|
4 | Multi-signal — dense + sparse + FTS | all three lists |
|
5 | Sparse + dense hybrid, single-vector index | one dense + one sparse field, no text |
|
Multi-field FTS is several clauses, not one
A text clause names exactly one field. Scoring across body and summary
means two clauses in a single request, which Pinecone combines with equal
weight — there is no per-clause weight parameter. The toolbox builds those
clauses for you from fields, and field_queries lets each field carry its own
query text. Weighting across text fields is only reachable through
query_string boosts (title:(x)^3 OR body:(x)) or by running the fields
separately and fusing with mode="hybrid".
One thing worth knowing about hybrid
Pinecone's Documents API accepts several text / query_string clauses in one
request, but a dense_vector or sparse_vector clause must stand alone. So a
true multi-signal search is several requests fused client-side. This server does
that with Reciprocal Rank Fusion by default (score-scale agnostic — BM25 scores
and cosine similarities are not comparable), with fusion="weighted" and
weights={"dense": 2, "text": 1} available when you want to bias a signal.
Recipe 5 is the exception: on a single-vector index the Vectors API scores a dense
and a sparse vector together in one server-side request. That is what
pinecone_query_vectors is for.
TTL — read this before relying on it
Pinecone has no server-side record expiry. Rather than pretend otherwise, the toolbox implements TTL as an explicit convention:
a record written with
ttl_secondscarriesvtb_expires_at(epoch seconds) as ordinary metadata; a record written without one carries nothing extra;searches exclude lapsed records by default, using
{"$or": [{"vtb_expires_at": {"$exists": false}}, {"vtb_expires_at": {"$gt": now}}]}— the$existshalf is what stops records with no TTL (including any written outside this server) from being hidden;pinecone_purge_expiredactually deletes lapsed records — it is the only thing that reclaims storage. Run it on a schedule if TTL matters to you.
The field name is not cosmetic: Pinecone rejects any field starting with _
or $ — _ is reserved for _id and _score, $ for filter operators — and
one invalid field fails the entire upsert request. _expires_at would have
broken every write.
Embeddings are pluggable
Storing vectors is decoupled from producing them. Any tool that needs an embedding
takes embed_provider / embed_model / embed_dimension, falling back to
VTB_EMBED_PROVIDER / VTB_EMBED_MODEL.
Provider | Dense | Sparse | Install |
| ✅ | ✅ | included |
| ✅ | — |
|
| ✅ | — |
|
| ✅ | — |
|
Documents that already carry a vector are left alone, so pre-computed and generated vectors can be mixed in one upsert. Vector width is checked against the schema before anything is sent.
There is also the fully hosted route: pinecone_create_index_for_model attaches a
Pinecone embedding model to the index, and pinecone_search_records embeds the
query server-side. No provider needed on this side.
Constraints the toolbox checks for you
Each of these fails an entire request server-side, so they are validated before the call goes out, with a message naming the offender:
Constraint | Enforced where |
At most 1 |
|
Field names unique, ≤64 bytes, never | create + every upsert |
Every document needs an |
|
One bad document fails the whole batch — so all offenders are reported at once |
|
≤1000 documents per request | batching |
| every search |
A | every search |
Other documented limits worth designing around: 40 KB metadata per record, 2 MB
per document, 100 KB and 10,000 tokens per FTS field, 10,000 values per $in,
128 tokens per $match_* operator.
Filter operators. Metadata: $eq $ne $gt $gte $lt $lte $in $nin $exists $and $or $not. On FTS fields additionally $match_phrase, $match_all,
$match_any. Lucene (query_string) supports boolean operators, phrases, phrase
slop, boosting, phrase prefix and regex — but not fuzzy matching.
Multi-tenancy. Use one namespace per tenant rather than a metadata filter
over a shared namespace: query cost scales with namespace size, so filtering
user_id across 100 GB costs 100× what querying a 1 GB namespace does.
Eventual consistency. A read immediately after a write may not see it. The live smoke test polls rather than assuming.
Tools
Index lifecycle — pinecone_create_index, pinecone_create_index_for_model,
pinecone_list_indexes, pinecone_describe_index, pinecone_index_capabilities,
pinecone_configure_index, pinecone_delete_index
Namespaces — pinecone_list_namespaces, pinecone_describe_namespace,
pinecone_create_namespace, pinecone_delete_namespace,
pinecone_sample_metadata, pinecone_describe_index_stats
Writing — pinecone_upsert_documents, pinecone_upsert_vectors,
pinecone_update_documents, pinecone_update_vector, pinecone_delete_records,
pinecone_purge_expired
Reading — pinecone_fetch_records, pinecone_list_record_ids
Search — pinecone_search (text / query_string / dense / sparse / hybrid / auto),
pinecone_search_records (integrated inference), pinecone_query_vectors
(Vectors API), pinecone_rerank
Utilities — pinecone_embed, pinecone_list_models, vectortoolbox_status
Chroma — clients: chroma_create_client, chroma_list_clients,
chroma_remove_client, chroma_heartbeat · collections:
chroma_list_embedding_functions, chroma_create_collection,
chroma_get_collection, chroma_list_collections, chroma_modify_collection,
chroma_configure_collection, chroma_delete_collection, chroma_count,
chroma_peek, chroma_fork_collection · records: chroma_add,
chroma_update, chroma_upsert, chroma_conditional_transaction,
chroma_delete · reading: chroma_query, chroma_get,
chroma_full_text_search, chroma_validate_filter, chroma_sample_metadata
Weaviate — clients: weaviate_create_client, weaviate_list_clients,
weaviate_remove_client, weaviate_heartbeat, weaviate_list_modules ·
collections: weaviate_list_collections, weaviate_get_collection_config,
weaviate_collection_capabilities, weaviate_create_collection,
weaviate_update_collection, weaviate_add_to_collection,
weaviate_delete_collection · tenants: weaviate_list_tenants,
weaviate_create_tenants, weaviate_update_tenants, weaviate_delete_tenants ·
objects: weaviate_insert_objects, weaviate_upsert_objects,
weaviate_update_object, weaviate_delete_objects, weaviate_add_references ·
reading: weaviate_fetch_objects, weaviate_hybrid_search,
weaviate_semantic_search, weaviate_keyword_search, weaviate_aggregate,
weaviate_validate_filter
Qdrant — clients: qdrant_create_client, qdrant_list_clients,
qdrant_remove_client, qdrant_heartbeat · collections:
qdrant_list_collections, qdrant_get_collection,
qdrant_collection_capabilities, qdrant_create_collection,
qdrant_update_collection, qdrant_delete_collection, qdrant_manage_aliases,
qdrant_add_vector, qdrant_delete_vector, qdrant_create_payload_index,
qdrant_delete_payload_index · points: qdrant_upsert_points,
qdrant_update_vectors, qdrant_delete_vectors, qdrant_set_payload,
qdrant_delete_payload, qdrant_delete_points, qdrant_retrieve_points,
qdrant_scroll_points, qdrant_count_points, qdrant_facet · search:
qdrant_search, qdrant_hybrid_search, qdrant_text_search,
qdrant_recommend, qdrant_discover, qdrant_distance_matrix,
qdrant_validate_filter
Destructive tools (pinecone_delete_index, pinecone_delete_namespace,
delete_all, pinecone_purge_expired, chroma_delete_collection,
chroma_delete with delete_all, weaviate_delete_collection,
weaviate_delete_tenants, weaviate_delete_objects with delete_all,
qdrant_delete_collection, qdrant_delete_vector, qdrant_delete_points with
delete_all) require
confirm=true. Setting
VTB_READ_ONLY=true disables every write tool.
Chroma
The second backend. Chroma's model is smaller than Pinecone's — a collection is one embedding space, and each record is an id, an embedding, an optional document string, flat metadata and an optional URI. There is no field schema; what you choose up front is the embedding route and the index config.
Install the extra (it is optional so a Pinecone-only setup stays lean):
uv pip install --python .venv/bin/python -e '.[chroma]'Clients
Every chroma_* tool takes client (default "default"). Create more with
chroma_create_client and use them side by side:
| What it is | Settings |
| In-memory; gone on restart. All ephemeral clients in the process share one store | — |
| Local directory |
|
| Self-hosted server ( |
|
| Chroma Cloud | key from |
The default client is built from VTB_CHROMA_CLIENT (default persistent)
the first time a tool needs it. API keys are never accepted as tool arguments —
only the name of an environment variable — so they stay out of transcripts.
Embedding: two routes, chosen per collection
Chroma embedding function —
embedding_function={"name": "openai", "kwargs": {"model_name": "text-embedding-3-small", "api_key_env_var": "OPENAI_API_KEY"}}. Chroma embeds documents andquery_textsitself and persists the config with the collection.chroma_list_embedding_functionslists the ~30 built-ins.Toolbox embedder —
toolbox_embedder={"provider": "openai", "model": …, "dimension": …}: the same providers the Pinecone tools use. This server embeds and sends plain vectors; the choice is recorded in the collection's metadata (vtb_embed_*) so later writes and queries embed the same way.
With neither, Chroma's default function (all-MiniLM-L6-v2, 384 dims) is used
and downloads an ~80 MB ONNX model on first use. Records that already carry
an embedding are never re-embedded.
Index configuration
HNSW (single-node: ephemeral, persistent, most self-hosted) | SPANN (Chroma Cloud / distributed) | |
Fixed at creation |
|
|
Tunable later ( |
|
|
space is l2 (default), ip or cosine — pick cosine for most text
models. Single-node Chroma silently ignores a SPANN config, so the toolbox
refuses one on an ephemeral/persistent client rather than let it pass.
Writes — what Chroma does silently, surfaced
Chroma behaviour | What the toolbox reports |
|
|
|
|
|
|
Mixed "some records have embeddings, some don't" fails | caught up front, or gaps filled when |
Records can be passed as Chroma's parallel columns (ids, documents,
embeddings, metadatas, uris) or as records=[{"id", "document", …}].
Metadata is flat: scalars or non-empty, single-type arrays ({"genres": ["action", "drama"]}). update merges metadata; a key set to null is removed.
Conditional transactions
chroma_conditional_transaction is optimistic read-check-write: the checks are
read inside a transaction, the writes are buffered, and the commit only lands if
the records read are unchanged. Checks can require a record to exist / not
exist, hold specific metadata values (compare-and-swap), hold an exact
document, or a filter to match between min_count and max_count records.
Conflicts are retried up to max_retries.
Chroma's limits are validated before anything runs: one collection, at most one
write per id, deletes by explicit id only, reads via get only. This needs a
chromadb release with Collection.conditional() — 1.5.9 (current on PyPI
when this was written) does not have it, so the tool refuses unless you pass
allow_non_atomic=true (same checks then writes, no isolation, reported as
atomic: false).
Query, get and results shape
chroma_query— nearest neighbours; a batch ofquery_textsorquery_embeddings, each with its ownn_resultslist.chroma_get— by id and/or filter, paged withlimit/offset, no ranking.includepicks what comes back:documents,metadatas,embeddings,uris, plusdistancesfor queries. Ids always come back.output="rows"(default) returns one object per record, nearest first, withsimilarity = 1 − distanceadded on cosine/ip collections.output="columns"returns Chroma's native column-major shape (ids[q][i]for queries,ids[i]for get);"both"returns both.
Metadata filtering and full-text search
| |
Comparison |
|
Inclusion |
|
Arrays |
|
Logical |
|
| |
Substring |
|
Regex |
|
Logical |
|
chroma_validate_filter shows exactly what will be sent. Forgiving spellings
are rewritten ({} → no filter, several keys → $and, several operators on one
field → $and, one-item $and → the item); real mistakes — a bare list
instead of $in/$contains, $exists, $not, null — come back as
explanations. chroma_sample_metadata reports each key's type (str[] marks
array metadata) and the operators that fit.
chroma_full_text_search builds where_document from term lists
(contains, not_contains, regex, not_regex, match="all"|"any"). On its
own it is a filter — matches come back unranked. Add query_text to combine
with document search: the text filter restricts a vector query, so you get
semantic ranking over only the documents that contain your terms.
Weaviate
The third backend. A Weaviate collection is closer to a table than a bag of vectors: typed properties, one or more named vectors (each with its own vectorizer module and index), a BM25 inverted index, cross-references to other collections, and optional multi-tenancy (an isolated shard per tenant).
uv pip install --python .venv/bin/python -e '.[weaviate]'Compared with Weaviate's own MCP server
Weaviate's built-in MCP server exposes four tools. Each has an equivalent here, and the toolbox covers the rest of the lifecycle around them:
Built-in tool | Here | What's added |
|
| compact summary by default ( |
|
| counts per status; create / activate / deactivate / offload / delete tenants |
|
| same options ( |
|
| replace or merge; stable ids from a key property; batch errors reported per object |
— |
| near-text / near-vector / near-object, BM25 with boosts, sorted and cursor-paged fetch, counts and statistics |
— |
| full collection lifecycle, validated before it reaches the server |
— |
| writes with schema checks, filter deletes with dry-run |
— |
| several Weaviates at once, module discovery, filter checking |
Write tools follow the same VTB_READ_ONLY switch as every other backend
(the built-in server's equivalent is MCP_SERVER_WRITE_ACCESS_ENABLED).
Clients
| What it is | Settings |
| A server on this machine (Docker, binary) |
|
| Any self-hosted server | HTTP and gRPC host, port and TLS set separately |
| Weaviate Cloud |
|
| The client downloads and runs Weaviate itself (Linux, macOS) |
|
Weaviate's model modules (text2vec-openai, generative-cohere, …) need the
provider's key on each request. Any provider key in the environment
(OPENAI_API_KEY, COHERE_API_KEY, VOYAGEAI_API_KEY, JINAAI_API_KEY,
MISTRAL_API_KEY, ANTHROPIC_API_KEY, …) is forwarded as the matching
X-…-Api-Key header. Only header names are ever shown.
Quick local server:
docker run -d -p 8080:8080 -p 50051:50051 -e DEFAULT_VECTORIZER_MODULE=none \
cr.weaviate.io/semitechnologies/weaviate:1.37.0or docker compose --profile weaviate up -d with this repo's compose file.
Vectors: Weaviate's modules or the toolbox's embedders
Each named vector picks a vectorizer when the collection is created:
A Weaviate module (
text2vec-openai,text2vec-cohere, …): Weaviate embedssource_propertieson write and query text on search (near_text).weaviate_list_modulesshows what this server has; asking for a module it lacks fails before creation, with the list.none(self-provided): you supply vectors, or let the toolbox embed. On writes,embed_source="body"embeds that property withembed_provider/embed_model(defaultVTB_EMBED_*). On searches, text queries against a self-provided vector are embedded the same way and sent asnear_vector, so semantic and hybrid search work without a vectorizer module.
Objects written without a value for a self-provided vector are reported: vector search would never find them.
Writes — what Weaviate does silently, surfaced
Weaviate behaviour | What the toolbox does |
Auto-schema adds any unknown property (so | refuses unknown property names unless |
A batch insert succeeds even when some objects fail | returns |
Re-inserting an existing uuid fails that object |
|
Data calls on a multi-tenant collection without a tenant fail | refuses up front and lists the tenants |
Collection names are case-sensitive | a near-miss gets a "did you mean" |
id_from="sku" derives a deterministic UUID from a property, so loading the
same records twice updates rather than duplicates.
Filters
filters takes Weaviate's native where format — the one its REST API, docs
and built-in MCP server use — or the Mongo-style operators the Chroma and
Pinecone tools use. Both compile to the same query:
{"operator": "And", "operands": [
{"path": ["year"], "operator": "GreaterThanEqual", "valueInt": 2020},
{"path": ["tags"], "operator": "ContainsAny", "valueTextArray": ["ai"]}]}{"year": {"$gte": 2020}, "tags": {"$in": ["ai"]}}Native | Mongo-style |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Paths can be a property, id, _creationTimeUnix, _lastUpdateTimeUnix,
len(prop), count(refProp), or ["refProp", "TargetCollection", "prop"] to
filter through a cross-reference. Property names and value types are checked
against the collection's schema before sending; weaviate_validate_filter shows
the normalised form.
Collection settings
Set at creation | Change later ( | |
Properties | name, type, tokenization, filterable / searchable / range indexes | descriptions; add new ones ( |
Named vectors | vectorizer + source properties, index type ( | HNSW |
Inverted index | BM25 | BM25, stopwords |
Multi-tenancy | on / off, auto-creation, auto-activation | auto-creation, auto-activation |
Replication | factor | factor, async replication |
Qdrant
The fourth backend. Qdrant stores points: an id (unsigned integer or UUID), one or more named vectors — dense, sparse or multi-vector — and a free-form JSON payload. Every search is a variant of one Query API, which is why hybrid search, rescoring, recommendations and discovery compose so freely.
uv pip install --python .venv/bin/python -e '.[qdrant]'Clients
| What it is | Settings |
| Self-hosted Qdrant (Docker, binary, Kubernetes) |
|
| Qdrant Cloud | cluster |
| Embedded, on-device storage, no server — the Qdrant Edge idea |
|
| Embedded, in memory | — |
Embedded clients suit notebooks, tests and small data. Server-only features — BM25 inference, quantization, real HNSW, payload indexes, aliases, facets, the distance matrix — say so plainly when asked for there.
docker run -d -p 6333:6333 -p 6334:6334 qdrant/qdrantor docker compose --profile qdrant up -d with this repo's compose file.
Creating a collection
qdrant_create_collection covers the collection side of Qdrant's docs in one
call, validated against Qdrant's own models before anything is sent:
{
"name": "articles",
"vectors": [
{"name": "dense", "size": 1536, "distance": "cosine",
"embedder": {"provider": "openai", "model": "text-embedding-3-small"}},
{"name": "dense_small", "size": 256, "hnsw": {"m": 16},
"embedder": {"provider": "openai", "model": "text-embedding-3-small"}},
{"name": "colbert", "size": 128, "multivector": true, "hnsw": {"m": 0}}
],
"sparse_vectors": [{"name": "bm25", "bm25": {"language": "english"}}],
"quantization": {"type": "binary", "encoding": "two_bits", "query_encoding": "scalar8bits"},
"multitenancy": {"tenant_field": "org"},
"payload_indexes": [
{"field": "published", "type": "datetime"},
{"field": "body", "type": "text", "stemmer": "english", "phrase_matching": true}
],
"on_disk_payload": true,
"optimizers": {"indexing_threshold": 0}
}Docs topic | Here |
Vectors | named dense vectors with |
Storage |
|
Indexing |
|
Quantization |
|
Multitenancy |
|
Bulk upload |
|
BM25 / inference |
|
Matryoshka models | the same model on several vectors at different |
raw_config accepts Qdrant's REST create-collection body instead, for anything
the arguments don't cover. Later changes go through qdrant_update_collection,
qdrant_add_vector / qdrant_delete_vector and qdrant_manage_aliases
(atomic alias switches for zero-downtime rebuilds).
How text becomes vectors
The toolbox records, in the collection's metadata, which embedder fills each dense vector and which sparse vectors are BM25. After that, plain text works everywhere a vector does:
writes:
text_source="body"embeds that payload field into every such vector;searches: a text
querygoes to the right embedder for the vector searched;qdrant_hybrid_searchwith justqueryruns one branch per embeddable vector and fuses them (RRF by default).
A collection built elsewhere can be taught its embedders with
qdrant_update_collection(set_embedders=...).
Writes — what Qdrant does silently, surfaced
Qdrant behaviour | What the toolbox does |
Upsert overwrites an existing id without a word | reports |
Ids must be unsigned integers or UUIDs | rejects other strings up front; |
A point written without a vector is never found by vector search | counted in a |
Wrong vector size or name fails the whole batch | checked per point, with the vector's size and the names that exist |
Filters on unindexed payload work but scan | listed in |
Nothing stops a query from reading every tenant |
|
Search
Tool | Docs topic |
| nearest neighbours by text, vector or point id; |
| prefetch branches + |
| BM25-ranked when there is a BM25 vector; full-text payload match ( |
| explore: recommendations (average vector, best score, sum scores), discovery and context search, sampled similarity pairs |
| filter-only reads, |
Filters take Qdrant's native must / should / must_not form or the
Mongo-style operators shared with the other backends
({"year": {"$gte": 2020}, "tag": {"$in": ["ai"]}}); $text, $phrase,
$text_any, $geo, $values_count, $nested, $is_null, $has_vector and
{"id": {"$in": [...]}} cover the Qdrant-specific conditions.
qdrant_validate_filter shows the native form.
Tests
.venv/bin/pytest # Pinecone mocked; Chroma and Qdrant in-memory; Weaviate / Qdrant live tests run when reachable
.venv/bin/ruff check src tests
.venv/bin/python scripts/smoke_test.py # live; needs PINECONE_API_KEYThe live smoke test creates a scratch index prefixed vtb-smoke-, exercises each
of the five recipes, and deletes it again.
tests/test_weaviate_live.py runs against a real Weaviate when one answers on
localhost:8080 (or VTB_TEST_WEAVIATE=host:http_port:grpc_port) and is skipped
otherwise. It only touches collections prefixed VtbTest.
tests/test_qdrant_live.py does the same for Qdrant on http://localhost:6333
(or VTB_TEST_QDRANT=<url>), touching only collections prefixed vtb_test_.
Contributing
Adding a backend, a tool or a fix: see CONTRIBUTING.md. Security reports: SECURITY.md. Changes: CHANGELOG.md.
License
Available Tools
28 toolspinecone_configure_indexA
Change an index's deletion protection, tags or read capacity.
The field schema is immutable - a new signal (a sparse field, an FTS field) means creating a new index and reindexing.
Inputs: index (required), tags, read_capacity, deletion_protection. Returns: object
pinecone_create_indexA
Create a Pinecone index by declaring its searchable fields.
The schema decides which searches the index can ever answer, and it cannot be changed afterwards - so decide up front:
dense_fields-> semantic search. Dimension must match the embedding model you will use.sparse_fields-> learned lexical search (SPLADE-style).text_fields-> BM25 full-text search and Lucene query strings.
Recipes matching the five common setups:
Keyword search only, one field:
text_fields=[{"name": "body"}]Multi-field FTS:
text_fields=[{"name": "body"}, {"name": "summary"}]Dense + FTS in one index:
dense_fields=[{"name": "embedding", "dimension": 1024}]plustext_fields=[{"name": "body"}]Multi-signal (dense + sparse + FTS): all three lists populated.
Sparse + dense hybrid over the Vectors API: exactly one dense and one sparse field, no text fields.
Limits enforced before the call is sent: at most one dense_vector
field and at most one sparse_vector field per index, up to 100
full-text string fields. Field names must be unique, at most 64 bytes,
and must not start with _ (reserved for _id / _score) or
$ (reserved for filter operators).
Only searchable fields go in the schema. Ordinary metadata is indexed for filtering automatically the first time it appears on a record; declaring it here is rejected by the API.
Args:
name: 1-45 chars, lowercase alphanumerics and hyphens.
pod: Pod deployment instead of managed serverless, e.g.
{"environment": "us-east-1-aws", "pod_type": "p1.x1", "replicas": 1, "shards": 1}.
read_capacity: {"mode": "OnDemand"} or
{"mode": "Dedicated", "dedicated": {...}}.
deletion_protection: "enabled" blocks deletion until switched back.
tags: Up to 20 key/value pairs.
cmek_id: Customer-managed encryption key id.
timeout: Seconds to wait for readiness; -1 returns immediately.
Inputs: name (required), pod, tags, cloud, +8 more. Returns: object
pinecone_create_index_for_modelB
Create an index with a hosted embedding model attached.
Pinecone embeds text_field on write and embeds queries on read, so
no embedding provider is needed on this side. Read it back with
pinecone_search_records. The model cannot be changed later.
Args:
model: Hosted model, e.g. "llama-text-embed-v2",
"multilingual-e5-large", "pinecone-sparse-english-v0".
text_field: Record field holding the raw text to embed.
filterable_fields: e.g. {"genre": {"filterable": true}}.
Inputs: name (required), tags, cloud, model, +10 more. Returns: object
pinecone_create_namespaceB
Create an empty namespace. Upserting to a new namespace also creates it.
Inputs: index (required), namespace (required). Returns: object
pinecone_delete_indexA
Delete an index and everything in it. Requires confirm=true.
Inputs: index (required), confirm. Returns: object
pinecone_delete_namespaceB
Delete a namespace and every record in it. Requires confirm=true.
Inputs: index (required), namespace (required), confirm. Returns: object
pinecone_delete_recordsB
Delete records by id, by metadata filter, or clear a namespace.
delete_all=true requires confirm=true.
Inputs: index (required), namespace (required), ids, filter, +2 more. Returns: object
pinecone_describe_indexA
Full server-side description of one index: schema, deployment, status, host.
Inputs: index (required). Returns: object
pinecone_describe_index_statsC
Record counts, dimension and per-namespace breakdown for an index.
Inputs: index (required), namespace. Returns: object
pinecone_describe_namespaceC
Describe one namespace: record count and metadata.
Inputs: index (required), namespace (required). Returns: object
pinecone_embedC
Generate embeddings without storing them - useful for dimension checks.
Inputs: texts (required), kind, model, provider, +2 more. Returns: object
pinecone_fetch_recordsB
Fetch records by id or filter, without ranking them.
include_fields=["*"] returns every field; omitting it returns all
available fields for a document fetch.
Inputs: index (required), namespace (required), ids, limit, +2 more. Returns: object
pinecone_index_capabilitiesA
Report which searches an index can answer, and with which fields.
Call this before searching an index you did not create in this session.
It names the dense / sparse / full-text fields, the dimension each
dense field expects, and the list of valid mode values for
pinecone_search.
Inputs: index (required), refresh. Returns: object
pinecone_list_indexesB
List every index in the project, with the search modes each supports.
Inputs: no named parameters. Returns: object
pinecone_list_modelsC
List the hosted embedding and reranking models Pinecone offers.
Inputs: model_type. Returns: object
pinecone_list_namespacesB
List the namespaces in an index, with record counts where available.
Inputs: index (required). Returns: object
pinecone_list_record_idsC
List record ids in a namespace, optionally filtered by id prefix.
Inputs: index (required), namespace (required), limit, prefix. Returns: object
pinecone_purge_expiredA
Permanently delete records whose TTL has lapsed. Requires confirm=true.
Searches already hide expired records; this is what actually frees the storage. Run it on a schedule if you rely on TTL.
Inputs: index (required), namespace (required), confirm. Returns: object
pinecone_query_vectorsA
Vectors API query - the true single-request dense+sparse hybrid.
On a single-vector index holding both a dense and a sparse vector per
record, passing both here has Pinecone do the hybrid scoring server
side, rather than the client-side fusion pinecone_search uses for
schema indexes.
Pass query instead of vectors to have them embedded here first, or
id to search by an existing record.
Inputs: index (required), namespace (required), id, query, +12 more. Returns: object
pinecone_rerankA
Rerank a candidate list with a hosted cross-encoder.
Use it as a second stage: retrieve widely with pinecone_search
(top_k 50-100), then rerank down to the handful you actually want.
Args:
documents: [{"id": "d1", "text": "..."}].
rank_fields: Which field the reranker reads, default ["text"].
Inputs: query (required), documents (required), model, top_n, +2 more. Returns: object
pinecone_sample_metadataA
Sample records from a namespace and describe the metadata shape.
Returns each field observed, its types, how many of the sampled records carried it, and up to three example values - enough to write a correct filter without dumping the namespace into the conversation.
Inputs: index (required), namespace (required), sample_size. Returns: object
pinecone_searchA
Search an index, validating the request against its schema first.
Modes, and what each needs from the schema:
text- BM25. A text clause names exactly one field, so scoring across several fields sends one clause per field in a single request and Pinecone combines them with equal weight (there is no per-clause weight). Passfieldsto choose them, or omit it to use every FTS field.field_queriesgives each field its own query text, e.g.{"body": "disappointing", "summary": "Disappointing"}.query_string- Lucene syntax, which targets fields inside the query itself:title:(quantum) OR body:(machine AND learning). SupportsAND/OR/NOT,+/-, grouping, phrases"...", phrase slop"..."~2, boostingterm^2, phrase prefix"mach lear"*and regexbody:/mach.*/. Fuzzy matching (~1on a single term) is not supported.dense- semantic search.queryis embedded with the configured provider unless you passvectoryourself.sparse- learned lexical search over a sparse vector field.hybrid- every signal the index has, run separately and fused client-side. A dense or sparse clause must be the only clause in its request, so this is one request per signal merged with Reciprocal Rank Fusion (fusion="weighted"plusweights={"dense": 2, "text": 1}to bias one signal).auto- the richest mode the index supports.
filter narrows candidates before ranking and is deterministic, not
a scoring signal. Metadata operators: $eq $ne $gt $gte $lt $lte $in $nin $exists $and $or $not. On FTS-enabled string fields you also get
$match_phrase, $match_all and $match_any (at most 128
tokens each) - which is how you rank by vector while requiring an
exact term.
include_fields defaults to every stored field. Pass a narrower list
to keep responses small, or [] for ids and scores only.
top_k may be 1-10000.
Records whose TTL has lapsed are excluded by default; records written without a TTL are never hidden.
Inputs: index (required), namespace (required), mode, query, +18 more. Returns: object
pinecone_search_recordsA
Search an integrated-inference index - Pinecone embeds the query.
Only for indexes created with pinecone_create_index_for_model.
Optional server-side reranking: pass rerank_model (e.g.
"bge-reranker-v2-m3") and rerank_fields.
match_terms constrains sparse retrieval to records containing
specific terms, e.g. {"strategy": "all", "terms": ["refund"]}
(sparse indexes on pinecone-sparse-english-v0 only).
Inputs: index (required), query (required), namespace (required), top_k, +7 more. Returns: object
pinecone_update_documentsB
Partially update documents - by id, or by filter across many at once.
Args:
documents: Per-record updates, each with _id and the fields to
change.
filter: Update every document matching this filter instead.
set_fields: Fields to set on all matched documents.
remove_fields: Field names to strip.
Inputs: index (required), namespace (required), filter, documents, +2 more. Returns: object
pinecone_update_vectorC
Update one record's vector values or metadata via the Vectors API.
Inputs: id (required), index (required), namespace (required), values, +2 more. Returns: object
pinecone_upsert_documentsA
Upsert records, optionally embedding them on the way in.
Each document needs a unique _id. Fields declared in the index
schema are searched; every other field is stored and indexed for
filtering automatically.
Embedding is plug-and-play. Pass embed_source_field naming the text
field to embed and the toolbox fills every dense and sparse field the
schema declares, using embed_provider/embed_model (defaults come
from VTB_EMBED_PROVIDER / VTB_EMBED_MODEL). A document that already
carries a vector for a field is left alone, so you can mix pre-computed
and generated vectors in one call. The vector width is checked against
the schema before anything is sent.
Validated before sending, because Pinecone fails an entire upsert if
any one document is invalid: each document needs a unique _id and
at least one schema field (a metadata-only document is rejected), and
no field name may start with _ or $. Requests are split at
1000 documents.
TTL is implemented by this server, not by Pinecone: ttl_seconds
stamps a vtb_expires_at epoch on each record, searches exclude
lapsed records by default, and pinecone_purge_expired reclaims the
storage. Records written without a TTL carry no extra field and are
never hidden by that filter.
Args:
documents: e.g. [{"_id": "d1", "body": "...", "category": "tech", "year": 2026}].
embed_source_field: Field whose text becomes the vector(s).
dense_field / sparse_field: Target schema fields when the index
declares more than one.
ttl_seconds: Lifetime in seconds. Omit for no expiry.
batch_size: Documents per request when batching.
Inputs: index (required), documents (required), namespace (required), batch_size, +9 more. Returns: object
pinecone_upsert_vectorsA
Upsert through the legacy Vectors API - raw values plus metadata.
Use this for single-vector indexes where you want a dense and a sparse
vector on the same record, which is what makes the one-request hybrid
query in pinecone_query_vectors possible.
Args:
vectors: [{"id": "v1", "values": [...], "sparse_values": {"indices": [...], "values": [...]}, "metadata": {"category": "tech"}}].
ttl_seconds: Stamps _expires_at into each record's metadata.
Inputs: index (required), vectors (required), namespace (required), batch_size, +1 more. Returns: object
vectortoolbox_statusA
Report configuration: backends, default embedding provider, read-only mode.
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 28 tools
Several overlapping clusters exist: pinecone_search, pinecone_search_records, and pinecone_query_vectors all perform retrieval, and pinecone_describe_namespace, pinecone_describe_index_stats, pinecone_describe_index, and pinecone_index_capabilities have partially overlapping reporting purposes. The very detailed descriptions do help an agent choose correctly, but the boundaries between the search tools and the describe tools are not immediately obvious from the names alone.
Nearly all tools follow a consistent pinecone_verb_noun pattern (pinecone_create_index, pinecone_delete_records, pinecone_list_namespaces). The exceptions are pinecone_index_capabilities (noun phrase, no verb) and vectortoolbox_status (different prefix and concatenated without a separating underscore), which are minor deviations rather than a broken convention.
At 28 tools this is heavy for a single MCP server and sits above the comfortable 3-15 range. Most tools do earn their place given the breadth of the vector-DB admin surface (index, namespace, record, search, embedding, rerank), but the count is borderline and a few describe/capabilities tools could plausibly be merged.
Coverage is thorough: index lifecycle (create, create_for_model, list, describe, capabilities, configure, delete), namespace lifecycle, record CRUD (upsert documents/vectors, update, fetch, list ids, delete, purge expired), multiple search modes, embeddings, rerank, model listing, and server status. No obvious gaps for the stated vector-toolbox purpose.
Related MCP Connectors
Remote ChromaDB vector database MCP server with streamable HTTP transport
MCP server for building and testing AI agents with multi-model experimentation and insights.
Cross-vendor AI memory over MCP. One semantic store, readable and writeable from every MCP client.
MCP server for OnceAsk, the AI-native current-address layer for people and agents.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to perform semantic search, manage vectors, and interact with Pinecone vector databases through standardized MCP tools. Supports querying, upserting, deleting vectors and monitoring database statistics for knowledge base operations.18 npm-
- AlicenseAqualityDmaintenanceMCP server for OpenAI Vector Store API, managing vector stores, files, file batches, and semantic search.218 npmMIT
- AlicenseNot gradedqualityAmaintenanceMCP server for Milvus vector database enabling vector search, text search, and hybrid search operations.Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables integrating RAG into AI agents via MCP server, supporting multiple vector database technologies.11MIT