cosmosdb-mcp
1
The Azure Cosmos DB MCP Client & Server project is designed to illustrate how to set up an MCP Server and client using Azure Cosmos DB for managing a product catalog and user orders. It features a NextJS frontend with an AI Assistant and a backend connecting to a Cosmos DB NoSQL database.
Azure Cosmos DB MCP Client & Server
This project demonstrates how to create a Model Context Protocol (MCP) Server and client for Azure Cosmos DB. It includes a frontend application built with NextJS that displays a product catalog and features an AI Assistant to help users find products and retrieve past orders. The backend consists of an MCP Server component connected to an Azure Cosmos DB NoSQL database to manage product and order data.
Azure Architecture
- Azure Cosmos DB NoSQL database for product catalog storage
- A Node.js server acts as the MCP Server component
Step-by-step walkthrough
- Setting up Azure Cosmos DB and enabling necessary features
- Creating storage accounts for product images
- Installing software prerequisites such as Node.js, Visual Studio Code, and .NET SDK
- Configuring applications with Azure credentials and endpoints
- Building and deploying the web API and frontend projects
Populate the product catalog
- Process involves reading from a JSON file and populating the Azure Cosmos DB database.