mongodb-schema-design
MongoDB's skill on data modelling, written as rules and patterns for the agent to apply when designing or reviewing a MongoDB schema.
What the skill teaches
MongoDB's skill on data modelling, written as rules and patterns for the agent to apply when designing or reviewing a MongoDB schema. It covers anti-patterns such as unbounded arrays and too many indexes, choosing between embedding and referencing, modelling one-to-many and tree relationships, staying under the 16 MB document limit, JSON Schema validation, time series data, polymorphic documents, versioning and archiving old data, and moving a relational design to MongoDB. It is reference guidance and does not need a database connection.
Capabilities
- Review a MongoDB schema for common anti-patterns
- Decide between embedding and referencing related data
- Add JSON Schema validation to collections
- Plan a migration from a relational schema to MongoDB
About
- Publisher
- MongoDB
- Tool
- MongoDB
Install
- Run this to add it to Any client:
npx skills add mongodb/agent-skills
What's inside
- references/antipattern-excessive-lookups.md
- references/antipattern-unnecessary-collections.md
- references/antipattern-unnecessary-indexes.md
- references/fundamental-document-model.md
- references/fundamental-document-size.md
- references/fundamental-embed-vs-reference.md
- references/fundamental-schema-validation.md
- references/pattern-approximation.md
- references/pattern-archive.md
- references/pattern-attribute.md
- references/pattern-bucket.md
- references/pattern-computed.md
- references/pattern-document-versioning.md
- references/pattern-extended-reference.md
- references/pattern-outlier.md
- references/pattern-polymorphic.md
- references/pattern-schema-versioning.md
- references/pattern-time-series-collections.md
- references/source-query-stats.md
- references/source-slow-query-logs.md
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | MongoDB | |
| Publisher | MongoDB | source |
| Official status | OfficialMongoDB docs list this skill and link the mongodb/agent-skills repository | source |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | No | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | Apache-2.0 | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 10, 2026197 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository |
Sources
- Skill file (SKILL.md)github.com/mongodb/agent-skills · Backs: LicenceNov 10, 2026
- Web pagemongodb.com · Backs: Official statusNov 12, 2026
- GitHub repositorygithub.com/mongodb/agent-skills · Backs: Publisher, Activity, LicenceNov 11, 2026
- Folder in the repository (mongodb-schema-design)github.com/mongodb/agent-skills · Backs: Includes scriptsNov 10, 2026