Weaviate MCP security: permissions, write tools and how to lock it down

What the built-in Weaviate MCP server can read and change, which RBAC permissions gate each tool, and how to make it read-only before an AI agent reaches your database.

On this page

Does the Weaviate MCP server meet our access control requirement?

Access control for the built-in Weaviate MCP server is enforced per tool call through RBAC, and write access is off by default on self-hosted instances. On a self-hosted cluster, the server starts only when MCP_SERVER_ENABLED is set to true, and the weaviate-objects-upsert tool stays unavailable until MCP_SERVER_WRITE_ACCESS_ENABLED is set to true. On Weaviate Cloud the server is always on and cannot be turned off, and the Enable MCP Read-Only switch is off by default, so the upsert tool works out of the box until an admin turns that switch on. Reviewers should treat those two deployment types as different risk profiles, and should not assume a Cloud cluster inherits the self-hosted defaults.

To meet a least-privilege requirement, the reviewer must configure the API key's role in the Weaviate role-based access control documentation. Read tools need read_mcp, and the upsert tool needs create_mcp and update_mcp together with matching collection, data or tenant permissions. The predefined viewer role includes read_mcp and is the documented way to keep one agent read-only without restricting the whole cluster. Confirm that the key given to the agent is the viewer key, and test denied calls, since a denied call returns HTTP 200 with isError true rather than a 403, so monitoring that only watches status codes will miss it.

Gaps remain even with RBAC in place. An upsert replaces the stored object instead of merging it, and with auto-schema enabled (the default) a mistyped collection name creates a new collection, so the docs advise setting AUTOSCHEMA_ENABLED to false if the server must not change the schema. The hybrid query tool returns full properties unless return_properties is set, with a default limit of 100 results, which matters for sensitive text fields. Keep the built-in server separate from the Weaviate Docs MCP server, which is hosted by Kapa.ai, is documented for documentation queries only, and does not read your own database. Confirm with Weaviate which RBAC and read-only settings apply to your deployment before approval.

Which MCP controls apply on self-hosted and Weaviate Cloud

This table compares self-hosted Weaviate with Weaviate Cloud on the controls that decide what an AI client can reach and change, marking each as built in, set by the admin, or not available. Read it row by row before choosing a deployment, because the default state differs between the two. The main takeaway is that on Weaviate Cloud the upsert tool is reachable until an admin turns on the read-only switch, while self-hosted write access stays off until someone enables it.

ControlSelf-hosted WeaviateWeaviate Cloud
Built-in MCP server enablementOff by default; set MCP_SERVER_ENABLED to true to start itAlways enabled; cannot be turned off
Write tool (weaviate-objects-upsert)Off by default; enable with MCP_SERVER_WRITE_ACCESS_ENABLED set to trueAvailable by default until an admin turns on the read-only switch
Enable MCP Read-Only switchNot the control used; write access is set by the environment variableConfigured by the admin; off by default, so the switch must be turned on
RBAC MCP permissions (read_mcp, create_mcp, update_mcp)Configured by the admin on the API key's role, with matching collection, data or tenant permissionsConfigured by the admin on the API key's role, with matching collection, data or tenant permissions
Predefined viewer role for read-only agentsBuilt in; includes read_mcp, so one agent can be read-only without restricting the clusterBuilt in; includes read_mcp, so one agent can be read-only without restricting the cluster
Stopping upserts from changing the schema (AUTOSCHEMA_ENABLED)Configured by the admin; the docs advise setting it to false if the server must not change the schemaConfirm with Weaviate whether the admin can set this on the managed instance
Hosted Weaviate Docs MCP serverSeparate hosted service that answers documentation questions only; not a route into your databaseSeparate hosted service that answers documentation questions only; not a route into your database
Denied tool callsBuilt in; returns HTTP 200 with isError true, not HTTP 403Built in; returns HTTP 200 with isError true, not HTTP 403

How the built-in server exposes four tools over /v1/mcp

The built-in Weaviate MCP server is a Streamable HTTP server that runs on the same port as the REST API, at the /v1/mcp path. It was added in Weaviate v1.38 and exposes four tools: weaviate-collections-get-config, weaviate-tenants-list, weaviate-query-hybrid and weaviate-objects-upsert. Three of these read data or schema, and one writes. Before you approve a client, treat the endpoint as part of the database itself, because anyone who can reach the REST port and holds a valid key can reach the MCP tools too. Confirm the server version on each cluster, since the endpoint does not exist before v1.38.

The read tools and the write tool are gated separately. Read access depends on the read_mcp permission on the API key's role, together with the matching collection, data or tenant permissions. The upsert tool needs create_mcp and update_mcp as well as its data permissions. Permissions are enforced when a tool is called, not when tools are listed, so a client may see weaviate-objects-upsert in its tool catalog even when its key cannot use it. Review the role behind each agent key, not the tool list the client shows.

A denied call does not return an HTTP 403. The docs describe it as an HTTP 200 response with isError set to true. Any monitoring that alerts on 4xx or 5xx codes will miss refused calls, so add a rule that inspects the isError field in MCP responses. Otherwise, a misconfigured or probing agent can fail repeatedly without anyone noticing. Ask your Weaviate administrator whether the gateway, proxy or log pipeline in front of the cluster can read the response body, since status codes alone will not show refused calls.

Which tools read data and which can change it

The built-in Weaviate MCP server exposes four tools, and only one of them changes stored data. Each tool is gated by its own RBAC permission, so the set of tools an agent can call depends on the role its API key carries. Review each card against the role you plan to issue before enabling the server.

Collection config lookup

The tool weaviate-collections-get-config returns the schema of collections in the instance, including how properties are defined. It reads metadata rather than object content, but it still reveals how your data is structured, which helps an attacker or an overreaching agent target later calls. Confirm that the key used by the agent is scoped to the collections it genuinely needs, and that the read permission for MCP is granted only where the team has decided it belongs.

MCP server docs

Tenant listing

The tool weaviate-tenants-list lists the tenants within a multi-tenant collection. In a shared cluster, tenant names can expose customer or business unit identifiers, so the list may be sensitive even though no object content is returned. Check whether the agent should see tenant names at all, and pair the MCP read permission with the tenant permissions in RBAC so that listing does not reveal tenants outside the agent's remit.

Hybrid query reads

The tool weaviate-query-hybrid runs a combined keyword and vector search and returns every property in full, long text included, unless return_properties is set. Its default limit is 100 results. Treat it as the main data exposure path: requiring callers to pass return_properties in the agent's instructions, and confirming the data classes in each collection, reduces how much content leaves the database in one call.

Object upsert as the write path

The tool weaviate-objects-upsert is the only tool in the built-in server that changes data. It needs the create and update MCP permissions along with matching collection or data permissions. An upsert replaces the stored object rather than merging it, so a partial payload can erase fields. Keep this permission off for any agent that only answers questions, and review who holds keys that include it.

Why an upsert can overwrite data and auto-schema can create collections

The weaviate-objects-upsert tool replaces the stored object instead of merging it into the existing one. An agent that sends only some properties, for example a summary field and a status field, can therefore erase every other property on that object. The tool is only available when MCP_SERVER_WRITE_ACCESS_ENABLED is set to true on a self-hosted instance, and on Weaviate Cloud it is available out of the box until an admin turns on the read-only switch. Before approving any write path, have the team confirm which fields the agent always sends in full, and whether the prompt or tool schema makes a partial payload likely. Test the behavior on a non-production collection first, and confirm with a database backup that a restore is possible.

Auto-schema is enabled by default. With it on, a mistyped collection name in an upsert does not fail. Weaviate creates a new collection, so the data lands in a place no application reads, and the original collection looks untouched. This is easy to miss in logs and dashboards. Ask the team to list which collections exist today, then compare that list after a short supervised test with a deliberately wrong name in a non-production cluster. Treat any new collection that appears as an incident signal.

The Weaviate MCP server documentation advises setting AUTOSCHEMA_ENABLED=false if the MCP server must not change the schema. Reviewers should understand that this is a database-level setting, not a setting for the MCP server alone. It applies to every client that writes to that Weaviate instance, including application services, ingestion jobs and other agents, so any team that relies on automatic schema creation must be consulted before the change. Confirm the current value on each environment, record who approved it, and check that normal ingestion still works after the change.

Gaps the built-in server leaves open and how to cover them

The built-in Weaviate MCP server gives an agent useful access, but several gaps sit around it: identity in logs, the separate public docs server, shared keys and result filtering. Each gap below names the usual compensating control and the point to confirm with Weaviate before approving the connection.

Agent identity in logs

The supplied documentation does not show that the built-in server records which agent made a call. If several assistants share one key, a query or upsert in the database log may point only to the key, not to the person or tool behind it. Compensate by issuing one key per agent or team, recording the key owner in your secrets inventory, and correlating MCP traffic with your gateway or reverse proxy logs. Confirm with Weaviate what fields its audit or server logs include for MCP calls.

MCP server docs

Public Docs MCP server is not for your data

The hosted Weaviate Docs MCP server answers questions about Weaviate documentation, tutorials, API references, GitHub issues and community content. It is not meant to read a customer's own database, so it should never be the endpoint an agent uses for production collections. The public server may also be rate limited. Compensate by writing a policy that separates the docs server from the instance server, and by blocking the instance URL from any client that should only read documentation. Confirm with Weaviate the current rate limits and any usage terms for the public endpoint.

Docs MCP server page

Shared API key scope

A single API key shared by several agents can carry more permissions than any one agent needs, including the create and update MCP permissions used by the upsert tool. Because RBAC permissions attach to the key's role, the broadest role in use sets the real risk. Compensate by giving each agent a role with only the collections, data and tenant permissions it needs, and by using a viewer-based key for read-only agents. Confirm with Weaviate how role assignment and key rotation work for each role you plan to use.

Weaviate RBAC docs

Field-level filtering of hybrid results

The hybrid query tool returns every property in full unless return_properties is set, and it defaults to 100 results. The supplied documentation does not confirm that RBAC can hide individual properties from the hybrid tool. Until that is confirmed, treat any sensitive property as exposed to every agent with read access to its collection. Compensate by keeping sensitive fields out of the collection the agent can reach, setting explicit return_properties in the agent's configuration, and reviewing the default limit. Confirm with Weaviate whether property-level permissions exist and whether the server enforces return_properties on its side.

MCP server docs

How the answer changes by deployment and data sensitivity

On a self-hosted Weaviate instance, the built-in MCP server is disabled by default and starts only when the operator sets MCP_SERVER_ENABLED to true. Write access is a separate decision: it stays off until MCP_SERVER_WRITE_ACCESS_ENABLED is set to true, which enables the weaviate-objects-upsert tool. Because the operator owns the configuration, the reviewer must confirm the effective values in the running deployment, not only in the intended configuration files.

  • Server flag: Confirm whether MCP_SERVER_ENABLED is set, and by whom, in every environment that runs Weaviate.
  • Write flag: Confirm that MCP_SERVER_WRITE_ACCESS_ENABLED is absent or false in production, and that any override is documented.
  • Schema changes: Check whether AUTOSCHEMA_ENABLED is still at its default, since auto-schema can create collections from a mistyped name.
  • API key roles: Verify that each key used by an agent carries only the MCP permissions its role needs, with the matching collection or tenant permissions.
  • Configuration drift: Compare environment variables across staging and production, because a flag enabled for testing can persist into live use.

Ask the platform team to show the rendered environment for the running process and the RBAC roles bound to each agent key.

Order of work before an agent reads or writes production data

This sequence establishes which Weaviate MCP server is running, what it is allowed to do, and which keys can reach it, so each read or write path is deliberate and verified before an agent touches production data.

  1. Confirm the edition and Weaviate version

    The platform team checks whether the database is self-hosted or Weaviate Cloud and which Weaviate version is running. The built-in MCP server was added in v1.38 and is served at /v1/mcp on the REST port, so an older version has no built-in server to govern. On self-hosted instances the server is disabled unless MCP_SERVER_ENABLED is set to true. On Weaviate Cloud it is always on and cannot be turned off. Done means the team has written down the edition, the version and the server status, and has confirmed that the hosted Docs MCP server is a separate tool that cannot read the company's own data. The current MCP server documentation is the reference for this check.

  2. Decide the server and write posture

    The security owner and the data owner decide which agents need the server at all, and whether any of them need write access. Write access is off by default on self-hosted instances and is enabled only by MCP_SERVER_WRITE_ACCESS_ENABLED=true, which unlocks the weaviate-objects-upsert tool. On Weaviate Cloud, the Enable MCP Read-Only switch is off by default, so the upsert tool is available until an administrator turns that switch on. Done means a short written decision names each agent, its use case, and whether it is read-only. If no agent needs writes, the write setting stays off or the read-only switch is set before any key is issued.

  3. Create scoped keys with the viewer role

    The identity administrator creates a separate API key for each agent under RBAC rather than sharing a cluster-wide admin key. Read agents receive the predefined viewer role, which includes read_mcp, and the documentation recommends this to keep one agent read-only without restricting the whole cluster. Write agents need create_mcp and update_mcp for the upsert tool, plus the matching collection, data or tenant permissions. Done means each key maps to one agent, the role is documented, and a test call with the read key succeeds on a read tool while an upsert attempt is refused. Confirm the exact permission names against the RBAC page before issuing keys.

  4. Set auto-schema before any write is allowed

    The platform engineer sets AUTOSCHEMA_ENABLED=false for any deployment where the MCP server must not change the schema. Auto-schema is enabled by default, and with it on a mistyped collection name in an upsert creates a new collection instead of failing. Upserts also replace the stored object rather than merging it, so a partial payload can strip existing properties. Done means the configuration file or environment shows the setting, and a test upsert to a misspelled collection name returns an error instead of creating a collection. Record the result alongside the key inventory.

  5. Restrict returned properties in query tools

    The team reviews how the hybrid query tool is called and makes sure the agent specifies return_properties. Without that setting, every property is returned in full, including long text fields, and the default limit is 100 results. The team decides which properties each collection may expose to the agent and checks that prompts or tool instructions do not ask for the full object. Done means a sample query against a collection with sensitive text fields returns only the approved properties and a row count within the agreed limit. Keep the list of allowed properties under change control with the collection schema.

  6. Confirm denied calls appear in logs

    The security engineer runs a deliberate set of permitted and denied calls and checks the log pipeline. Permissions are enforced when a tool is called, not when tools are listed, and a denied call returns HTTP 200 with isError set to true rather than HTTP 403. Standard status-code alerting therefore misses denials. Done means the team has a test in which the read key attempts an upsert, the denial is captured in the logs with the key identity and the tool name, and an alert rule matches on the isError field or the tool result. If the logs cannot show this, the rollout stays paused until the gap is closed. Confirm log content and retention with the Weaviate deployment owner.

  7. Retest after every upgrade and permission change

    The platform team repeats the full sequence after each Weaviate upgrade, each change to MCP server settings, and each change to a role or key. Tool names, defaults and RBAC behavior can change between versions, so a configuration that was safe on one release is not assumed safe on the next. Done means a dated retest record shows the edition and version, the write and schema settings, the key-to-role mapping, a successful read, a refused write, the auto-schema check and the log entry for the denial. Any failed check blocks the agent until it is fixed and retested.

What a security reviewer asks to see for this control

This table lists the settings and records a reviewer should request for the built-in Weaviate MCP server, where each one lives in Weaviate, and what a passing answer looks like. Use it as a checklist: every row should be answered with a value from the running instance, not from a plan or intent.

Reviewer requestWhere it comes from in WeaviateWhat a sound answer looks like
Enablement settingSelf-hosted environment variable MCP_SERVER_ENABLED, or the Weaviate Cloud MCP status (always enabled there)On self-hosted, the value is set deliberately and recorded; on Weaviate Cloud, the reviewer accepts that the server cannot be turned off
Write-access settingSelf-hosted environment variable MCP_SERVER_WRITE_ACCESS_ENABLEDUnset or false unless a named use case needs the weaviate-objects-upsert tool
Read-only switch stateEnable MCP Read-Only switch on Weaviate Cloud (off by default)Switch on, with the change date and the admin who made it recorded
RBAC role definitionsRole configuration in the RBAC docs, including the predefined viewer roleEach agent key maps to a role that holds read_mcp only, or to a narrower custom role for writes
API key inventoryKey list held by the cluster admin, matched to each roleEvery key has an owner, a purpose and a revocation path; no shared keys across agents
Auto-schema settingSelf-hosted environment variable AUTOSCHEMA_ENABLEDSet to false where the MCP server must not create collections or change the schema
Upsert test evidenceTest run against a non-production collection using the write tool and a viewer keyRecorded attempts show the write is denied for viewer keys and the upsert behavior is understood, including full replacement of objects
Denied-call loggingApplication and server logs for denied tool calls, which return HTTP 200 with isError trueLogs are reviewed, and the reviewer knows denials will not appear as HTTP 403 errors

Questions buyers ask before approving the Weaviate MCP server

Can we turn off the Weaviate MCP write tool?

Yes, on a self-hosted instance write access is off by default, so the weaviate-objects-upsert tool stays unavailable unless someone sets MCP_SERVER_WRITE_ACCESS_ENABLED=true. Leave that variable unset, and only enable it deliberately for a named agent. On Weaviate Cloud the picture differs: the MCP server cannot be turned off, and the Enable MCP Read-Only switch is off by default, so the upsert tool is available until an admin turns that switch on. Check which deployment you run before you assume the write tool is off, and confirm the setting in your own environment after each change. The server itself is disabled by default on self-hosted instances and starts only when MCP_SERVER_ENABLED is set to true.

Is a viewer API key enough to keep an agent read-only?

For most read-only use cases, yes. The predefined viewer role is the read-only role for database users and includes the read_mcp permission, and the Weaviate docs suggest using a viewer key to keep one agent read-only without restricting the whole cluster. Confirm three things before relying on it. First, the write tool needs create_mcp and update_mcp plus matching collection, data or tenant permissions, so a viewer key should not carry those. Second, read tools still need the collection and tenant permissions behind them, so scope the key to the collections the agent should see. Third, the instance-level write switch still applies, so keep it off as a second layer. Test the key with a denied write call in a non-production environment and confirm the result before you approve it.

Why does a denied MCP call return HTTP 200?

Weaviate enforces MCP permissions when a tool is called, not when tools are listed, and a denied call returns HTTP 200 with isError set to true instead of an HTTP 403. This matters for monitoring and for the agent's own logic. A gateway or SIEM that alerts only on 4xx or 5xx status codes will miss denied attempts, so write rules that match on the isError flag in the response body. Also expect the agent to see the tool listed even when it cannot use it, which can lead it to retry. Confirm the exact response shape in your own test before you write detection rules, because your client library may surface the error differently.

Can the Weaviate Docs MCP server see our database?

No. The hosted Weaviate Docs MCP server is for querying documentation, tutorials, API references, GitHub issues and community content, and Weaviate states it is not for reading a customer's own database. It is hosted at weaviate-docs.mcp.kapa.ai and uses Kapa.ai as its knowledge engine. It is a separate server from the built-in MCP server at /v1/mcp on your own instance, which is the one that can read collections and run an upsert. Be careful with the names, because a developer who connects the docs server to a tool expecting database access will not get your data, and a developer who connects the built-in server by mistake will. Also note that the public docs server may have rate limits, so do not treat it as a production dependency. Ask your vendor to confirm the current data handling terms for that service.

What drives the effort to lock down the Weaviate MCP server?

Effort rises with three things: the number of API keys, the number of collections and tenants each key must reach, and how often the server changes. Each agent or team that needs access needs its own key with a role that fits, so a small set of viewer keys is quicker to review than many custom roles. Collections and tenants multiply the work because each permission must match the data the agent should see. Upgrades add recurring work: when you move to a new Weaviate release, retest the tool list, the permission mapping and the write switch, since the MCP server is a newer feature than the REST API. Ask any partner for a quote that names the key count, the collections in scope, the environments to test and whether retesting after upgrades is included.

What can our team do without outside help?

Most of the basic lockdown is within reach of an internal platform or database team. The steps are to keep MCP_SERVER_ENABLED and MCP_SERVER_WRITE_ACCESS_ENABLED unset unless a use case needs them, create a viewer key for each read-only agent, confirm that the key cannot call weaviate-objects-upsert, and set AUTOSCHEMA_ENABLED=false where the MCP server must not change the schema. Also set return_properties on hybrid queries so long text is not returned in full, and review the default limit of 100 results. Outside help is useful when you need a formal test of prompt injection, tool permissions and data exposure against your own setup, plus a findings report and a retest. Confirm with your security team which of these checks they need evidence for before deciding who does the work.

What happens if an upsert creates a new collection by mistake?

With auto-schema enabled, which is the default, a mistyped collection name in an upsert can create a new collection, and an upsert replaces the stored object rather than merging it into the existing one. The combination can leave you with stray collections and objects whose fields were overwritten. The fix is to set AUTOSCHEMA_ENABLED=false if the MCP server must not change the schema, so an unknown collection name fails instead of creating a new one. Keep write access off by default, and restrict upserts to a specific collection through RBAC where possible. Before enabling writes, test a mistyped collection name and a partial object in a copy of your data, and confirm which object fields get replaced. Ask your Weaviate contact to confirm how this behaves in your version.

How DeployOpen works on this

DeployOpen reviews a Weaviate MCP setup the way a security engineer would review any agent tool: which server is running, which API key roles reach it, which write tools are open and which switches are set. The work covers testing of the tool permissions and the schema and data risks, followed by a written lockdown plan and a retest.

How we scope

  • Engagements are fixed-scope, with the Weaviate instances, deployment type and MCP clients agreed in writing before work starts.
  • We confirm whether the built-in server or the hosted Docs server is in use, and whether the instance is self-hosted or Weaviate Cloud.
  • The written scope lists the API key roles, collections and tenants that agents may reach, and which write tools are in or out of testing.

How we build

  • We test each read and write tool with the roles in use, checking that permissions are enforced on every tool call.
  • We check the upsert path for replacement of stored objects and for collection creation when auto-schema is enabled.
  • We review the hybrid query output for full property returns and the default result limit, and test the lockdown settings we propose.

How we hand over

  • Findings are delivered as a written report with severity, evidence from each test and the specific fix for each finding.
  • The lockdown configuration covers the server switches, RBAC roles and key assignments that each agent should hold.
  • A retest confirms that the fixes work, and we document what the client should re-check after future Weaviate upgrades.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers when the Weaviate setup changes.
  • Retesting after new agents, new collections or new Weaviate versions can be added to the retainer scope.
  • Clients should confirm with their own admins which switches and roles change in their environment before any production rollout.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.