[DEPRECATED] Cosmos DB MCP Server
A Model Context Protocol (MCP) server that provides secure access to Azure Cosmos DB datasets. Enables Large Language Models (LLMs) to safely query and analyze data through a standardized interface.
Overview
Azure Cosmos DB MCP Server is a Model Context Protocol (MCP) server that provides secure, read-only access to Azure Cosmos DB datasets, enabling Large Language Models (LLMs) to query and analyze data through a standardized interface.
To use the server, set up your project by obtaining your Azure Cosmos DB account URI and key, install the necessary dependencies, build the project, and start the server. Then, configure Claude Desktop to interact with your Azure Cosmos DB data.
- Secure, read-only access to Azure Cosmos DB datasets. - Allows LLMs to query data using natural language. - Utilizes the Model Context Protocol for seamless integration.
- Querying customer data using natural language.
- Analyzing sales trends from Azure Cosmos DB datasets.
- Integrating with AI models for data-driven insights.
Add to your AI client
Use these steps to connect [DEPRECATED] Cosmos DB MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"azure-cosmos-mcp-server-azurecosmosdb": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-azure-cosmos-mcp-server-azurecosmosdb"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"azure-cosmos-mcp-server-azurecosmosdb": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-azure-cosmos-mcp-server-azurecosmosdb"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"azure-cosmos-mcp-server-azurecosmosdb": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-azure-cosmos-mcp-server-azurecosmosdb"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"azure-cosmos-mcp-server-azurecosmosdb": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-azure-cosmos-mcp-server-azurecosmosdb"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"azure-cosmos-mcp-server-azurecosmosdb": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-azure-cosmos-mcp-server-azurecosmosdb"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"azure-cosmos-mcp-server-azurecosmosdb": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-azure-cosmos-mcp-server-azurecosmosdb"
]
}
}
}FAQ
What is the Model Context Protocol (MCP)?
MCP is a framework that acts as a universal translator between AI models and databases.
Is the server secure?
Yes, it provides secure, read-only access to your data.
What are the prerequisites for using the server?
You need Node.js 14 or higher, an Azure Cosmos DB account, and Claude Desktop.