Important
Public Preview. This project is currently in Public Preview. APIs, configuration, on-disk layout, skill contents, and installer behavior may change in breaking ways before General Availability. There is no SLA. Provided "as-is"; see the Azure Preview Supplemental Terms. Not recommended for production workloads.
A bundle of agent skills + an MCP server for Azure DocumentDB (MongoDB-compatible) — the fully managed Azure service built on the open-source DocumentDB project (Postgres-backed, 99.03% MongoDB-compatible).
Skills follow the Agent Skills format and the kit ships with plugin manifests for Claude Code, Cursor, Codex, Gemini CLI, and GitHub Copilot.
👉 Capabilities and skill catalog: docs/SKILLS.md
skills/
<category>/ # rule-folder skill (data-modeling, vector-search, …)
<rule>.md # one markdown file per rule
references/ # deep-dive reference docs (optional)
<skill>/ # standalone skill (mcp-setup, query-optimizer, …)
SKILL.md # agent-facing activation + instructions
references/ # reference docs the skill loads at runtime
The kit ships with a one-command installer that wires both the skills and
the microsoft/documentdb-mcp
server into every detected MCP client. Pick your platform:
| OS | Guide |
|---|---|
| macOS | docs/installation/macos.md |
| Linux | docs/installation/linux.md |
| Windows | docs/installation/windows.md |
To install just the skill catalog into whichever agent you're using — no MCP server — via the skills.sh CLI:
npx skills add Azure/documentdb-agent-kitThis drops the rule docs into your agent's skill directory but does not install the MCP server. Use one of the per-OS guides above if you want the DB tools too.
To update later, re-run the same
npx skills add Azure/documentdb-agent-kitcommand — it re-fetches the latestmainand overlays updated rule files. For installer-based updates and per-agent plugin update commands, seedocs/installation/updating.md.
💡 Accept the optional
find-skillshelper when prompted. Duringnpx skills addthe installer will ask whether to installfind-skills— say yes. It's a tiny meta-skill that lets agents auto-discover the right DocumentDB skill for a task (e.g. "how do I create a BM25 index?" → auto-loadsdocumentdb-full-text-search) instead of relying on you to invoke skills by name. It's especially useful here because the kit ships 17 skills, more than agents reliably route on their own fromAGENTS.mdalone. If you skipped it, re-runnpx skills add find-skillsto add it later.
For uninstall, troubleshooting, manual install, updating, and per-agent plugin marketplaces, see docs/installation/.
The MCP server is administrator-controlled: tools never accept runtime connection strings. Set DOCUMENTDB_CONNECTION_PROFILES in your shell before launching the agent.
export DOCUMENTDB_CONNECTION_PROFILES='{"sandbox":{"authMode":"entra","endpoint":"<cluster>.mongocluster.cosmos.azure.com","tokenScope":"https://ossrdbms-aad.database.windows.net/.default","allowedHosts":["*.mongocluster.cosmos.azure.com"]}}'
az login --tenant <tenant-id>In Azure hosting, use managed identity or workload identity and grant that identity access to the backend database. The server uses DefaultAzureCredential, so the same profile shape works for local Azure CLI login and managed deployments.
export DOCUMENTDB_CONNECTION_PROFILES='{"local":{"uriEnv":"DOCUMENTDB_LOCAL_URI"}}'
export DOCUMENTDB_LOCAL_URI='mongodb://localhost:27017'Read tools are enabled by default. Higher-impact tools are opt-in:
export ENABLE_WRITE_TOOLS=true # insert / update / delete / find_and_modify
export ENABLE_MANAGEMENT_TOOLS=true # drop_database, drop_collection, create_index, ...Or edit mcp.json directly. See the DocumentDB MCP Server docs for the full configuration surface.
Works with Claude Code, Cursor, Codex, Gemini CLI, GitHub Copilot, and other Agent Skills–compatible tools.
MIT