Back to Home
AzureCosmosDB icon

azure-cosmos-mcp-server-samples

Verified Safe

by AzureCosmosDB

Overview

Enables AI assistants (LLMs like Claude, Continue.dev) to interact with and query Azure Cosmos DB databases using natural language.

Installation

Run Command
python cosmos_server.py

Environment Variables

  • COSMOS_URI
  • COSMOS_KEY
  • COSMOS_DATABASE
  • COSMOS_CONTAINER

Security Notes

The server loads sensitive Cosmos DB credentials from environment variables or a .env file, supporting Azure Managed Identity for enhanced security, which is a good practice. Default network binding is to localhost (127.0.0.1:8080), limiting external exposure. No explicit 'eval' usage or code obfuscation was found. Error handling for tool calls wraps exceptions, preventing direct exposure of internal stack traces, though some generic error messages might reveal operation failure types.

Similar Servers

Stats

Interest Score47
Security Score9
Cost ClassMedium
Avg Tokens750
Stars63
Forks25
Last Update2025-11-25

Tags

Azure Cosmos DBMCPLLM IntegrationDatabase InteractionPython