-
Type:
New Feature
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: MCP
-
None
-
None
Currently MCP server tools do not support view creation. There's no createView tool, and createCollection does not support a view option in MCP
https://www.mongodb.com/docs/manual/core/views/create-view/
Using create-collection with View parameter results in an error
MCP error -32602: Input validation error: Invalid arguments for tool create-collection: Unrecognized keys: "pipeline", "viewOn"
Using views with search and vector search indexes covers a variety of use cases for MongoDB Search and Vector Search. Primary use cases:
- partially index collections
- support incompatible data types and data models
- concatenate fields for auto-embedding
https://www.mongodb.com/docs/search/about/view-support/?interface=atlas-ui
Adding view creation support to MCP server would unlock customers to use agents with MongoDB more seamlessly.