vector-mcp
The server provides governed vector collection management and retrieval through MCP tools.
Create or retrieve vector collections, optionally ingesting documents from supplied contents, relative paths, or the configured document root, with overwrite control.
Add documents to existing collections using supplied contents, relative document paths, or the configured document directory.
Delete collections, requiring explicit confirmation.
List collections belonging to the caller’s identity.
Perform semantic search over a collection.
Perform lexical or term-based search over a collection.
Perform fused search using bounded RRF over semantic and lexical results, with configurable result count, RRF k, and semantic/lexical weights.
Optionally target a specific database backend per request via
db_type.
Allows interacting with Couchbase as a vector database, enabling collection management (create, delete, list) and document operations (add, search via semantic, lexical, or hybrid methods).
Allows interacting with MongoDB as a vector database, enabling collection management (create, delete, list) and document operations (add, search via semantic, lexical, or hybrid methods).
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-mcp search for 'climate change' in my vector database"
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-mcp
Action-routed MCP and agent interfaces for governed vector collection management and retrieval. The native default is medulla. Secure opt-in providers cover PostgreSQL/pgvector, Qdrant, and MongoDB Atlas.
Governed capability
MCP tools:
vector_create_collection,vector_add_documents,vector_delete_collection,vector_list_collections,vector_semantic_search,vector_lexical_searchandvector_searchSkill provider: the consolidated
vector-mcp-operationsworkflowOntology provider: the packaged vector retrieval ontology
Source connector provider: a read-only vector collection inventory preset
Runtime configuration: AgentConfig, environment variables, and secret references
Privacy posture: no checked-in endpoints, credentials, personal identity, or host paths
Related MCP server: production-grade-mcp-agentic-system
Install
Use the smallest extra set required by the deployment:
uvx --from 'vector-mcp[mcp]' vector-mcpThe runtime requires scion-sdk>=0.2.0 and its self-contained full
medulla engine contract. A bare numeric-only or partial engine profile is not a
supported deployment.
For a selected storage provider:
uv add 'vector-mcp[postgres]'
uv add 'vector-mcp[qdrant]'
uv add 'vector-mcp[mongodb]'The all extra enables every supported optional provider plus the agent, Langfuse, and
Logfire runtimes. Production images should install only the providers they operate.
MCP configuration
The package includes a neutral agent-start configuration containing only the command, condensed tool mode, and tool toggles. Runtime values are inherited from AgentConfig or injected by the operator. Detailed instructions on how to use the underlying API wrappers, extended schema bindings, and developer SDK references are maintained in docs/index.md.
MCP
This server use dynamic Action-Routed tools to optimize token overhead and maximize IDE compatibility.
Available MCP Tools
Auto-generated from the live MCP server — do not edit by hand.
Condensed action-routed tools (MCP_TOOL_MODE=condensed)
MCP Tool | Toggle Env Var | Description |
|
| Collection lifecycle. |
|
| Semantic, lexical and fused retrieval. |
2 action-routed tool(s) · 0 verbose 1:1 tool(s). Each is enabled unless its <DOMAIN>TOOL toggle is set false; MCP_TOOL_MODE selects the surface (intent default — the six verb-tools, granular set loaded on demand · condensed action-routed · verbose 1:1 · both). Auto-generated — do not edit.
Detailed tool schemas, parameter shapes, and validation constraints are preserved in the usage guide.
Dynamic Tool Selection & Visibility
This MCP server supports dynamic toolset selection and visibility filtering at runtime. This allows the operator to restrict the set of exposed tools to prevent blowing up the LLM's context window.
The operator can configure tool filtering via multiple input channels:
CLI Arguments: Pass
--toolsor--toolsets(or their disabled counterparts--disabled-toolsand--disabled-toolsets) during startup.Environment Variables: Define standard environment variables:
MCP_ENABLED_TOOLS/MCP_DISABLED_TOOLSMCP_ENABLED_TAGS/MCP_DISABLED_TAGS
HTTP SSE Request Headers: Pass custom headers during transport initialization:
x-mcp-enabled-tools/x-mcp-disabled-toolsx-mcp-enabled-tags/x-mcp-disabled-tags
HTTP SSE Request Query Parameters: Append query parameters directly to the operator's transport connection URL:
?tools=tool1,tool2?tags=tag1
When query strings or parameters are provided, an LLM-free Knowledge Graph resolution layer (using DynamicToolOrchestrator) matches query intents against known tool tags, names, or descriptions, with safe fallback and automated 24-hour background cache refreshing.
MCP Configuration Examples
Install the connector-focused
[mcp]extra. Examples usevector-mcp[mcp]to add FastMCP / FastAPI throughscion-sdk[mcp].
stdio Transport (local IDEs — Cursor, Claude Desktop, VS Code)
{
"mcpServers": {
"vector-mcp": {
"command": "uvx",
"args": [
"--from",
"vector-mcp[mcp]",
"vector-mcp"
],
"env": {
"MCP_TOOL_MODE": "intent",
"COLLECTION_MANAGEMENTTOOL": "True",
"DATABASE_TYPE": "medulla",
"DB_PASSWORD_REF": "secret://runtime/db-password",
"DB_PORT": "5432",
"DB_USERNAME_REF": "secret://runtime/db-username",
"MONGODB_MAX_POOL_SIZE": "20",
"MONGODB_REQUEST_TIMEOUT_MS": "30000",
"MONGODB_URI_REF": "secret://runtime/mongodb-uri",
"POSTGRES_MAX_POOL_SIZE": "20",
"POSTGRES_REQUEST_TIMEOUT": "30",
"QDRANT_API_KEY_REF": "secret://runtime/qdrant-api-key",
"QDRANT_REQUEST_TIMEOUT": "30",
"SEARCHTOOL": "True",
"VECTOR_DB_TYPE": "medulla"
}
}
}
}Runtime references require an alias-aware launcher such as Arbora. Other launchers must omit those entries and inject the resolved values through their own runtime secret boundary.
Streamable-HTTP Transport (networked / production)
{
"mcpServers": {
"vector-mcp": {
"command": "uvx",
"args": [
"--from",
"vector-mcp[mcp]",
"vector-mcp",
"--transport",
"streamable-http",
"--port",
"8000"
],
"env": {
"TRANSPORT": "streamable-http",
"HOST": "127.0.0.1",
"PORT": "8000",
"MCP_TOOL_MODE": "intent",
"COLLECTION_MANAGEMENTTOOL": "True",
"DATABASE_TYPE": "medulla",
"DB_PASSWORD_REF": "secret://runtime/db-password",
"DB_PORT": "5432",
"DB_USERNAME_REF": "secret://runtime/db-username",
"MONGODB_MAX_POOL_SIZE": "20",
"MONGODB_REQUEST_TIMEOUT_MS": "30000",
"MONGODB_URI_REF": "secret://runtime/mongodb-uri",
"POSTGRES_MAX_POOL_SIZE": "20",
"POSTGRES_REQUEST_TIMEOUT": "30",
"QDRANT_API_KEY_REF": "secret://runtime/qdrant-api-key",
"QDRANT_REQUEST_TIMEOUT": "30",
"SEARCHTOOL": "True",
"VECTOR_DB_TYPE": "medulla"
}
}
}
}Alternatively, connect to a pre-deployed Streamable-HTTP instance by url:
{
"mcpServers": {
"vector-mcp": {
"url": "http://localhost:8000/vector-mcp/mcp"
}
}
}Run a reviewed container image as a least-privilege stdio child (no listener or published port):
docker run -i --rm \
--read-only \
--cap-drop=ALL \
--security-opt=no-new-privileges \
--pids-limit=256 \
--tmpfs /tmp:rw,noexec,nosuid,nodev,size=64m \
-e TRANSPORT=stdio \
-e MCP_TOOL_MODE=intent \
-e COLLECTION_MANAGEMENTTOOL=True \
-e DATABASE_TYPE=medulla \
-e DB_PASSWORD_REF \
-e DB_PORT=5432 \
-e DB_USERNAME_REF \
-e MONGODB_MAX_POOL_SIZE=20 \
-e MONGODB_REQUEST_TIMEOUT_MS=30000 \
-e MONGODB_URI_REF \
-e POSTGRES_MAX_POOL_SIZE=20 \
-e POSTGRES_REQUEST_TIMEOUT=30 \
-e QDRANT_API_KEY_REF \
-e QDRANT_REQUEST_TIMEOUT=30 \
-e SEARCHTOOL=True \
-e VECTOR_DB_TYPE=medulla \
registry.example.invalid/vector-mcp@sha256:<digest> vector-mcpFor containerized network HTTP, supply an authenticated TLS ingress (or
direct server TLS), exact MCP_ALLOWED_HOSTS, and an exact trusted-proxy
CIDR policy through the operator-owned deployment profile. The generator
does not emit an unauthenticated non-loopback listener.
Auto-generated from the code-read env surface (MCP_TOOL_MODE + package vars) — do not edit.
Additional Deployment Options
vector-mcp can also run as a local container (Docker / Podman / uv) or be
consumed from a remote deployment. The
Deployment guide has full, copy-paste
mcp_config.json for all four transports — stdio, streamable-http,
local container / uv, and remote URL:
Local container / uv — launch the server from
mcp_config.jsonviauvx,docker run, orpodman run, or point at a local streamable-http container byurl.Remote URL — connect to a server deployed behind Caddy at
https://vector-mcp.example.invalid/mcpusing the"url"key.
Environment Variables
Package environment variables
Variable | Example | Description |
|
| |
|
| |
|
| options: stdio, streamable-http, sse |
| — | |
|
| Configure AgentConfig EMBEDDING_MODELS and its referenced runtime credentials. |
| — | Required only for filesystem ingestion. Supply the operator-owned root at runtime. |
|
| Backend used when db_type is unspecified. Default is the native medulla engine (local, zero-infra, durable). Options: medulla, postgres, mongodb, qdrant. DATABASE_TYPE is the canonical variable; VECTOR_DB_TYPE is accepted as an alias for backward compatibility. |
|
| |
| — | postgres/qdrant host |
| — | postgres/mongodb database name |
|
| |
|
| |
|
| |
|
| |
|
| |
| — | comma-separated SSRF allowlist for a private Qdrant host |
|
| seconds, 1-300 |
|
| connections, 1-100 |
|
| milliseconds, 1-300000 |
|
| connections, 1-100 |
|
| seconds, 1-300 |
|
| |
|
| |
| — | e.g. registry.example.invalid/vector-mcp@sha256: |
| — | e.g. registry.example.invalid/vector-mcp@sha256: |
Inherited meristem variables (apply to every connector)
Variable | Example | Description |
|
| Tool surface: |
| — | Comma-separated tool allow-list |
| — | Comma-separated tool deny-list |
| — | Comma-separated tag allow-list |
| — | Comma-separated tag deny-list |
|
| Authorization mode: |
|
| Embedded Eunomia policy file |
| — | Remote Eunomia authorization server URL |
| — | OTLP collector endpoint |
| — | Outbound MCP child auth: |
| — | OIDC client id (service-account auth) |
|
| Runtime secret reference for the OIDC service account |
| — | HTTP Basic username ( |
|
| Runtime secret reference for HTTP Basic auth ( |
|
| Verbose logging |
|
| Unbuffered stdout (recommended in containers) |
|
| URL of the MCP server the agent connects to |
| — | Operator-configured LLM provider for the agent |
| — | Operator-configured model id for the agent |
|
| Serve the AG-UI web interface |
25 package + 20 inherited variable(s). Auto-generated from .env.example + the shared meristem set — do not edit.
Every variable the server reads, grouped by purpose. See .env.example for the
canonical, copy-paste list — including the DATABASE_TYPE / GRAPH_SERVICE_SOCKET /
GRAPH_SERVICE_AUTH_SECRET connection settings for the native medulla backend. Backend
endpoints, database locations, and credentials for opt-in providers (Postgres/Qdrant/Mongo/
Chroma/Couchbase) are never README-documented literal values or MCP tool arguments — they resolve
through AgentConfig and secret:///env:///vault:// references at runtime.
MCP server / transport
Variable | Description | Default |
|
|
|
| Bind host (HTTP transports) |
|
| Bind port (HTTP transports) |
|
| Tool surface: |
|
| Comma-separated tool allow/deny list | — |
| Comma-separated tag allow/deny list | — |
| Unbuffered stdout (recommended in containers) |
|
Tool toggles
Each action-routed tool can be disabled individually via its toggle env var (set to false).
The full list is in the Available MCP Tools table above.
Variable | Description | Default |
| Enable the collection-management tool |
|
| Enable the search tool |
|
Telemetry & governance
Variable | Description | Default |
| Enable OpenTelemetry export |
|
| OTLP collector endpoint | — |
| OTLP auth keys | — |
| OTLP protocol (e.g. | — |
| Authorization mode: |
|
| Embedded policy file |
|
| Remote Eunomia server URL | — |
See .env.example for a copy-paste starting point.
Provider and ontology integration
The package contributes its skills, prompts, ontology, and source connector through Python entry points. The collection-inventory connector is intentionally read-only and registers collection metadata, not document or embedding payloads.
Generated connector signatures must be recreated only after the installed MCP schema is observed and a release signing key is provided at runtime. A signature from an older tool schema or ontology must never be copied forward.
Development checks
Low-cost checks that do not start providers:
python -m compileall -q vector_mcpProvider tests use mocked SDK boundaries and make no network calls. Live qualification is a separate deployment gate and must use operator-provided AgentConfig and secrets.
Documentation
The slim :mcp streamable-http container (docker/mcp.compose.yml) publishes
0.0.0.0:8000 with a /health check; see Deployment for the full
compose service definition.
License
See LICENSE.
Deploy with meristem-deployment
Provision this package with the consolidated meristem-deployment
workflow. It selects an installed-package, editable-source, or immutable-container
path; records only runtime secret and TLS-profile references in AgentConfig; and
runs doctor, registration, policy, observability, and rollback gates. Ask your agent
to "deploy vector-mcp with meristem-deployment".
Install mode | Command |
Installed package |
|
Editable source |
|
Immutable container | deploy |
The repository embeds no deployment profile, credential value, certificate path, or
environment-specific endpoint. Supply those at runtime through AgentConfig and the
configured secret provider.
Installation
Pick the extra that matches what the operator want to run:
Extra | Installs | Use when |
| Slim MCP server only ( | The operator only run the MCP server (smallest install / image) |
| Everything ( | Development / both surfaces |
# MCP server only (recommended for tool hosting — slim deps)
uv pip install "vector-mcp[mcp]"
# Full agent runtime (Pydantic AI + medulla engine)
uv pip install "vector-mcp[mcp]"
# Everything (development)
uv pip install "vector-mcp[all]" # or: python -m pip install "vector-mcp[all]"Container image
The shared connector pipeline renders a slim :mcp image (vector-mcp[mcp], entrypoint
vector-mcp) from pyproject.toml at release time:
pipelines-connector render --root .
docker build -t knucklessg1/vector-mcp:mcp docker/The render command creates the release-owned docker/mcp.compose.yml; it runs the image with
the configured host publication.
Knowledge-graph database (medulla)
Graph storage, vector search and queries are served by medulla, run as its own database container. Deployment recipes (single-node + Raft HA), connection config, and the database architecture are in the medulla deployment guide.
Repository Owners
Contribute
Contributions are welcome! Please ensure code quality by running local checks before submitting pull requests:
Format code using
ruff format .Lint code using
ruff check .Validate type-safety with
mypy .Run test suites using
pytest
Available Tools
7 toolsvector_add_documentsVector Add DocumentsB
Adds documents to an existing collection in the vector database.
Inputs: db_type, document_paths, collection_name, document_contents, +1 more. Returns: object
vector_create_collectionVector Create CollectionC
Creates a new collection or retrieves an existing one in the vector database.
Inputs: db_type, overwrite, document_paths, collection_name, +2 more. Returns: object
vector_delete_collectionDelete CollectionCDestructiveIdempotent
Deletes a collection from the vector database.
Inputs: confirm, db_type, collection_name. Returns: object
vector_lexical_searchLexical SearchCRead-onlyIdempotent
Performs indexed lexical or term-based retrieval.
Inputs: db_type, question, number_results, collection_name. Returns: object
vector_list_collectionsList CollectionsBRead-onlyIdempotent
Lists the collections of the caller's identity in the vector database.
Inputs: db_type. Returns: object
vector_searchFused SearchCRead-onlyIdempotent
Performs bounded RRF fusion over semantic and lexical retrieval.
Inputs: rrf_k, db_type, question, lexical_weight, +3 more. Returns: object
vector_semantic_searchSemantic SearchCRead-onlyIdempotent
Retrieves and gathers related knowledge from the vector database instance using the question variable.
Inputs: db_type, question, number_results, collection_name. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Collection lifecycle and search tools are mostly distinct, but three search tools (semantic, lexical, and RRF fusion) overlap enough that an agent may default to vector_search without understanding when the single-mode variants matter. vector_create_collection's dual 'create or retrieve' behavior also blurs against vector_list_collections, and vector_semantic_search's description is vague ('using the question variable').
All tools follow a consistent vector_<verb>_<noun> snake_case pattern (create/delete/list collection, add documents, semantic/lexical/search). No mixed conventions or casing deviations.
Seven tools is a reasonable, well-scoped surface for a vector database server with no obvious padding. It is slightly lean given the absence of any document-level modification tools.
Collection lifecycle is covered (create, list, delete) but there is no get/inspect collection metadata, and documents can be added but never updated or individually deleted (only by dropping the whole collection). These gaps will force agents into destructive workarounds for common document maintenance tasks.
Maintenance
Related MCP Connectors
MCP server for building and testing AI agents with multi-model experimentation and insights.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
One MCP server for the services your AI needs: memory, files, Microsoft 365, kanban and more.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceA sophisticated MCP server providing advanced memory capabilities with RAG, hallucination detection, and enterprise-grade AI infrastructure for intelligent agent ecosystems.-
- AlicenseNot gradedqualityDmaintenanceA production-grade MCP server designed for multi-tenant, authenticated, and observable AI agent systems, enabling secure tool execution across heterogeneous data sources.68MIT
- FlicenseNot gradedqualityDmaintenanceAn enterprise-ready MCP server that exposes a RAG tool for retrieving relevant context and metadata from a Qdrant vector database using natural language queries.2-
- AlicenseNot gradedqualityDmaintenanceIntegrates RAG into AI agents via MCP Server, supporting multiple vector database technologies for collection management and search operations.11MIT