Azure Cosmos DB Shell

Azure Cosmos DB Shell is an open-source command-line interface for interacting with Azure Cosmos DB databases and containers. Use bash-like navigation, bounded queries, schema discovery, diagnostics, transactions, bulk writes, and import/export workflows. Its optional local Model Context Protocol (MCP) server lets compatible AI clients use shell tools with your configured permissions.

In this section

AI tools

Use these actions to read the documentation with an assistant or configure Shell MCP.

For documentation-only retrieval, use the Microsoft Learn MCP server. For a compact guide index, use the Shell documentation index (llms.txt). The index doesn't change crawler permissions or guarantee retrieval.

Shell MCP requires separate setup and can read or change data under the configured permissions, so review tool calls before approving them. Don't share credentials or sensitive data.

Connect your AI agent
Configure Shell MCP for authenticated database operations.

Read as Markdown
Open a text version to copy into your assistant.

Ask ChatGPT
Find the guide for your task.

Ask Claude
Find the guide for your task.

ChatGPT and Claude receive only the public article URL and a starter prompt. You might need to sign in. If retrieval fails, copy the Markdown text. These links don't configure database access.