What is MCP server for Azure Cosmos DB using the Go SDK?
This is an experimental MCP server built with Go that exposes tools to interact with Azure Cosmos DB using the Azure SDK for Go and the official MCP Go SDK. It works with the Azure Cosmos DB service and the vNext emulator, and is intended as a learning tool rather than a production replacement for other Azure MCP offerings.
How to use MCP server for Azure Cosmos DB using the Go SDK?
Clone the repository, build the binary with go build, then run in HTTP or stdio mode. Authentication uses Azure’s DefaultAzureCredential (except for the local emulator, which uses key-based auth). Configure the server in your MCP client via a mcp.json file, setting either an HTTP URL or a stdio command.
Key features of MCP server for Azure Cosmos DB using the Go SDK
- List, create, and manage databases and containers.
- Add and read items in containers.
- Execute SQL queries with optional partition key scoping.
- Batch-create items using transactional batch operations.
- Supports Streamable HTTP and stdio transports.
- Can run locally or be deployed to a remote endpoint.
Use cases of MCP server for Azure Cosmos DB using the Go SDK
- Allow an AI assistant to list databases and containers in a Cosmos DB account.
- Create a new container with a defined partition key via a chat tool.
- Read specific items or execute SQL queries across containers.
- Learn how to combine the Azure Go SDK and MCP Go SDK for building AI tooling.
评论