Skip to main content
Glama

Vector Toolbox MCP

PyPI License: MIT

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 --from in args? Python extras (like [chroma] or [all]) need --from to tell uvx which optional dependencies to install before running the vector-toolbox-mcp binary. If you only need the default Pinecone backend, you can omit --from and 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, cursor

Chroma 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

uvx --from vector-toolbox-mcp[chroma] vector-toolbox-mcp

Docker, stdio

No Python on the machine

docker run -i --rm -e VTB_TRANSPORT=stdio ghcr.io/salindahulangamuwa/vector-toolbox-mcp

Docker, HTTP

One shared server, several clients or machines

client connects to http://host:8000/mcp

Source checkout

Developing the server

/path/to/VectorToolBoxMCP/.venv/bin/vector-toolbox-mcp

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_API_KEY

—

Pinecone backend

VTB_CHROMA_CLIENT

persistent

Chroma default client: ephemeral, persistent, http, cloud

VTB_CHROMA_PATH

~/.vector-toolbox/chroma

Where the persistent Chroma store lives

CHROMA_API_KEY / CHROMA_TENANT / CHROMA_DATABASE

—

Chroma Cloud

VTB_WEAVIATE_CLIENT

local

Weaviate default client: local, custom, cloud, embedded

VTB_WEAVIATE_HOST / VTB_WEAVIATE_PORT / VTB_WEAVIATE_GRPC_PORT

localhost / 8080 / 50051

Self-hosted Weaviate

WEAVIATE_URL / WEAVIATE_API_KEY

—

Weaviate Cloud

VTB_EMBED_PROVIDER / VTB_EMBED_MODEL

pinecone / llama-text-embed-v2

Default embedder (pinecone, openai, cohere, huggingface)

OPENAI_API_KEY, COHERE_API_KEY

—

Those embedders

VTB_READ_ONLY

false

true disables every write and delete tool

VTB_TRANSPORT

stdio

http to serve over streamable HTTP

VTB_HOST / VTB_PORT / VTB_HTTP_PATH

127.0.0.1 / 8000 / /mcp

HTTP listener

VTB_AUTH_TOKEN

—

Require Authorization: Bearer <token> on HTTP

VTB_ALLOWED_HOSTS

—

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 checkout

or 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 from which uvx as command (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_TOKEN

Examples: 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-mcp

HTTP — 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 -d

Build 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 set VTB_ALLOWED_HOSTS to 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 source

If it does not show up

Symptom

Cause

Server missing from the client

The client was reloaded, not fully restarted

spawn … ENOENT

command isn't on the GUI app's PATH — use an absolute path

Every call errors

Keys not reaching the server — call vectortoolbox_status, or run the command by hand

Only read tools work

VTB_READ_ONLY=true

chromadb is not installed

Add the chroma extra: vector-toolbox-mcp[chroma]

weaviate-client is not installed

Add the weaviate extra: vector-toolbox-mcp[weaviate]

qdrant-client is not installed

Add the qdrant extra: vector-toolbox-mcp[qdrant]

Weaviate "not reachable"

Both ports must be open: HTTP (8080) and gRPC (50051)

HTTP returns 401

Missing or wrong Authorization: Bearer header

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

dense_vector

semantic search

sparse_vector

learned lexical search (SPLADE-style)

string + full_text_search

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)

text_fields=[{"name":"body"}]

mode="text"

2

Multi-field FTS

text_fields=[{"name":"body"},{"name":"summary"}]

mode="text", fields=["body","summary"] — or field_queries={...} for a different query per field

3

Dense + FTS

dense_fields=[…] + text_fields=[…]

mode="hybrid" (fused) or either alone

4

Multi-signal — dense + sparse + FTS

all three lists

mode="hybrid"

5

Sparse + dense hybrid, single-vector index

one dense + one sparse field, no text

pinecone_query_vectors

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_seconds carries vtb_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 $exists half is what stops records with no TTL (including any written outside this server) from being hidden;

  • pinecone_purge_expired actually 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

pinecone (hosted inference)

✅

✅

included

openai

✅

—

pip install '.[openai]'

cohere

✅

—

pip install '.[cohere]'

huggingface (sentence-transformers, local)

✅

—

pip install '.[local]'

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 dense_vector and 1 sparse_vector field per index; up to 100 FTS fields

pinecone_create_index

Field names unique, ≤64 bytes, never _- or $-prefixed

create + every upsert

Every document needs an _id and at least one schema field (metadata-only documents are rejected)

pinecone_upsert_documents

One bad document fails the whole batch — so all offenders are reported at once

pinecone_upsert_documents

≤1000 documents per request

batching

top_k between 1 and 10,000; ≤100 score_by clauses

every search

A dense_vector/sparse_vector clause must be alone in its request

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:

kind

What it is

Settings

ephemeral

In-memory; gone on restart. All ephemeral clients in the process share one store

—

persistent

Local directory

path (default VTB_CHROMA_PATH = ~/.vector-toolbox/chroma)

http

Self-hosted server (chroma run, Docker)

host, port, ssl, headers

cloud

Chroma Cloud

key from CHROMA_API_KEY or api_key_env_var; tenant/database

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 and query_texts itself and persists the config with the collection. chroma_list_embedding_functions lists 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

space, ef_construction, max_neighbors

space, write_nprobe, ef_construction, max_neighbors, reassign_neighbor_count, split_threshold, merge_threshold

Tunable later (chroma_configure_collection)

ef_search, num_threads, batch_size, sync_threshold, resize_factor

search_nprobe (≤128), ef_search

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

add skips ids that already exist, without error

skipped_existing (or fail with on_conflict="error")

update skips ids that do not exist, without error

skipped_missing

upsert doesn't say what it did

created / updated counts

Mixed "some records have embeddings, some don't" fails

caught up front, or gaps filled when embed_provider is set

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 of query_texts or query_embeddings, each with its own n_results list.

  • chroma_get — by id and/or filter, paged with limit/offset, no ranking.

  • include picks what comes back: documents, metadatas, embeddings, uris, plus distances for queries. Ids always come back.

  • output="rows" (default) returns one object per record, nearest first, with similarity = 1 − distance added 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.

where (metadata)

Comparison

{"year": 2024}, $eq $ne, numeric $gt $gte $lt $lte

Inclusion

{"genre": {"$in": ["a", "b"]}}, $nin

Arrays

{"genres": {"$contains": "action"}}, $not_contains

Logical

$and, $or, nestable

where_document (document text)

Substring

{"$contains": "refund"}, $not_contains (case-sensitive)

Regex

{"$regex": "(?i)^invoice \\d+"}, $not_regex — no look-around or backreferences

Logical

$and, $or

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

weaviate-collections-get-config

weaviate_get_collection_config

compact summary by default (raw=true for the full JSON); weaviate_collection_capabilities says which searches work

weaviate-tenants-list

weaviate_list_tenants

counts per status; create / activate / deactivate / offload / delete tenants

weaviate-query-hybrid

weaviate_hybrid_search

same options (alpha, target vectors, query_properties for BM25 fields, return properties / metadata, filters, tenant) plus fusion type, BM25 operator, multi-vector combination, group-by, rerank, autocut; self-provided vectors embedded for you

weaviate-objects-upsert

weaviate_upsert_objects

replace or merge; stable ids from a key property; batch errors reported per object

—

weaviate_semantic_search, weaviate_keyword_search, weaviate_fetch_objects, weaviate_aggregate

near-text / near-vector / near-object, BM25 with boosts, sorted and cursor-paged fetch, counts and statistics

—

weaviate_create_collection, weaviate_update_collection, weaviate_add_to_collection, weaviate_delete_collection

full collection lifecycle, validated before it reaches the server

—

weaviate_insert_objects, weaviate_update_object, weaviate_delete_objects, weaviate_add_references

writes with schema checks, filter deletes with dry-run

—

weaviate_create_client, weaviate_list_modules, weaviate_validate_filter, …

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

kind

What it is

Settings

local

A server on this machine (Docker, binary)

VTB_WEAVIATE_HOST / VTB_WEAVIATE_PORT (8080) / VTB_WEAVIATE_GRPC_PORT (50051)

custom

Any self-hosted server

HTTP and gRPC host, port and TLS set separately

cloud

Weaviate Cloud

WEAVIATE_URL + WEAVIATE_API_KEY (or api_key_env_var)

embedded

The client downloads and runs Weaviate itself (Linux, macOS)

VTB_WEAVIATE_EMBEDDED_PATH, VTB_WEAVIATE_EMBEDDED_VERSION

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.0

or 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 embeds source_properties on write and query text on search (near_text). weaviate_list_modules shows 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 with embed_provider / embed_model (default VTB_EMBED_*). On searches, text queries against a self-provided vector are embedded the same way and sent as near_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 titel becomes a new column)

refuses unknown property names unless allow_new_properties=true

A batch insert succeeds even when some objects fail

returns errors with the index, uuid and message of each failure

Re-inserting an existing uuid fails that object

weaviate_insert_objects reports skipped_existing; weaviate_upsert_objects replaces or merges

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

Equal, NotEqual

$eq, $ne (or a bare value)

GreaterThan(Equal), LessThan(Equal)

$gt, $gte, $lt, $lte

Like (*, ? wildcards)

$like

ContainsAny, ContainsAll, ContainsNone

$in / $contains, $all, $nin / $not_contains

IsNull

$is_null (or a bare null)

WithinGeoRange

$geo

And, Or, Not

$and, $or, $not

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 (weaviate_update_collection)

Properties

name, type, tokenization, filterable / searchable / range indexes

descriptions; add new ones (weaviate_add_to_collection)

Named vectors

vectorizer + source properties, index type (hnsw, flat, dynamic), distance

HNSW ef, dynamic ef, flat_search_cutoff, filter_strategy (acorn / sweeping), cache size; switch on a quantizer (pq, bq, sq, rq); add self-provided vectors

Inverted index

BM25 b / k1, stopwords, timestamp / null-state / length indexes

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

kind

What it is

Settings

server

Self-hosted Qdrant (Docker, binary, Kubernetes)

QDRANT_URL (http://localhost:6333), optional QDRANT_API_KEY, VTB_QDRANT_PREFER_GRPC (port 6334)

cloud

Qdrant Cloud

cluster QDRANT_URL + QDRANT_API_KEY (or api_key_env_var); VTB_QDRANT_CLOUD_INFERENCE=true for hosted models

local

Embedded, on-device storage, no server — the Qdrant Edge idea

VTB_QDRANT_PATH (~/.vector-toolbox/qdrant)

memory

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/qdrant

or 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 size, distance (cosine, dot, euclid, manhattan), datatype (float32, float16, uint8, turbo4), on_disk, per-vector hnsw / quantization; multivector for late interaction; sparse vectors with IDF modifier

Storage

on_disk vectors, on_disk_payload, wal, optimizers

Indexing

hnsw (m, ef_construct, payload_m, on_disk, …); payload_indexes of every type, text indexes with tokenizer, stemming, stopwords, phrase matching

Quantization

scalar, product, binary (1, 1.5 or 2 bits, asymmetric query encoding), turbo

Multitenancy

multitenancy creates an is_tenant index and per-tenant HNSW graphs; every data tool then requires tenant

Bulk upload

optimizers: {"indexing_threshold": 0} while loading, then qdrant_update_collection to re-enable; qdrant_upsert_points batches

BM25 / inference

"bm25": true makes the server embed text (qdrant/bm25); on Qdrant Cloud with inference on, {"text", "model"} objects use hosted or external-provider models

Matryoshka models

the same model on several vectors at different sizes; search the small one and rescore with the big one

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 query goes to the right embedder for the vector searched;

  • qdrant_hybrid_search with just query runs 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 created vs overwritten; mode="insert_only" / "update_only"

Ids must be unsigned integers or UUIDs

rejects other strings up front; id_from="sku" derives a stable UUID

A point written without a vector is never found by vector search

counted in a warning

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 warnings; range / full-text filters on the wrong index type are rejected

Nothing stops a query from reading every tenant

tenant required on multi-tenant collections (all_tenants=true to opt out)

Tool

Docs topic

qdrant_search

nearest neighbours by text, vector or point id; search_params (hnsw_ef, exact, quantization rescore / oversampling, acorn, indexed_only); mmr diversity; group_by + with_lookup; lookup_from

qdrant_hybrid_search

prefetch branches + rrf (with k and weights) or dbsf fusion; rerank_using for multi-stage (Matryoshka, ColBERT, full-precision); formula score boosting and decay functions

qdrant_text_search

BM25-ranked when there is a BM25 vector; full-text payload match (text, phrase, text_any) otherwise or in addition

qdrant_recommend, qdrant_discover, qdrant_distance_matrix

explore: recommendations (average vector, best score, sum scores), discovery and context search, sampled similarity pairs

qdrant_scroll_points, qdrant_count_points, qdrant_facet

filter-only reads, order_by, random sampling, value counts

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_KEY

The 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

MIT

Available Tools

28 tools
pinecone_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:

  1. Keyword search only, one field: text_fields=[{"name": "body"}]

  2. Multi-field FTS: text_fields=[{"name": "body"}, {"name": "summary"}]

  3. Dense + FTS in one index: dense_fields=[{"name": "embedding", "dimension": 1024}] plus text_fields=[{"name": "body"}]

  4. Multi-signal (dense + sparse + FTS): all three lists populated.

  5. 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_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

    B3.3/5.0

    Scored across 28 tools

    Disambiguation3/5

    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.

    Naming Consistency4/5

    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.

    Tool Count3/5

    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.

    Completeness5/5

    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

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables 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
      -
    • A
      license
      Not graded
      quality
      A
      maintenance
      MCP server for Milvus vector database enabling vector search, text search, and hybrid search operations.
      Apache 2.0