weaviate icon indicating copy to clipboard operation
weaviate copied to clipboard

[WIP] Introduce native MCP API

Open tsmith023 opened this issue 10 months ago • 4 comments

What's being changed:

This PR adds basic MCP capabilities to Weaviate through a new endpoint for agentic use-cases

  • It introduces a dependency on mcp-go for scaffolding and bootstrapping an MCP API using the Streamable HTTP standard proposed in the spec
  • It exposes four tools for performing basic operations against Weaviate:
    • get-schema to return the full list of collection configurations
    • get-tenants to return the full list of tenants of a multi-tenancy collection
    • search-with-hybrid to perform a vector search using Weaviate's hybrid algorithm
    • insert-one to add a single object to a collection
  • A new RBAC domain gating MCP capabilities behind a dedicated permission in RBAC-enabled instances

Review checklist

  • [ ] Documentation has been updated, if necessary. Link to changed documentation:
  • [ ] Chaos pipeline run or not necessary. Link to pipeline:
  • [x] All new code is covered by tests where it is reasonable.
  • [ ] Performance tests have been run or not necessary.

tsmith023 avatar May 22 '25 14:05 tsmith023

Great to see you again! Thanks for the contribution.

beep boop - the Weaviate bot 👋🤖

PS:
Are you already a member of the Weaviate Slack channel?

weaviate-git-bot avatar May 23 '25 10:05 weaviate-git-bot