Here is a quick demo of how to interact with Azure Cosmos DB from GitHub Copilot CLI using MCP. This MCP server lets you interact with Azure Cosmos DB using plain English instead of writing queries or clicking through the portal. List databases, create containers, run SQL queries, add items — all through natural language. It works with both the Cosmos DB service and the vNext emulator (for local development).
The part I really enjoy is watching Copilot CLI figure out which tools to call to get the job done. For example, when I asked for "pending tasks," it generated the query and ran it without me having to think about the syntax.
If you want to try it yourself, the code is on GitHub. It's fairly straightforward to build, and set up with /mcp add. For something production-ready with remote (HTTP) deployment and Entra ID authentication, check out the Azure Cosmos DB MCP Toolkit.
If you haven't tried GitHub Copilot CLI with MCP servers yet, this is an easy way to get started.
Cheers!
Top comments (0)