Skip to main content
Glama
hendrickcastro

MCP CosmosDB

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
COSMOS_CONNECTIONSNoAn inline JSON string containing an array of connection configurations for multi-connection support.
COSMOS_DATABASE_IDNoThe Azure CosmosDB database ID used for legacy single-connection mode.
DB_ALLOW_MODIFICATIONSNoEnables or disables write operations (create, update, delete, upsert). Set to 'true' to allow modifications. Defaults to 'false'.false
COSMOS_CONNECTIONS_FILENoPath to an external JSON file containing an array of connection configurations. This is the highest priority configuration method.
COSMOS_CONNECTION_STRINGNoThe Azure CosmosDB connection string used for legacy single-connection mode.
COSMOS_MAX_RETRY_WAIT_TIMENoOptional configuration to increase the maximum retry wait time for CosmosDB requests.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription
mcp_list_databases

List all databases in the CosmosDB account

mcp_list_containers

List all containers in the CosmosDB database

mcp_container_info

Get detailed information about a specific container including throughput settings

mcp_container_stats

Get statistical information about a container including document count and partition key distribution

mcp_execute_query

Execute a SQL query against a CosmosDB container

mcp_get_documents

Get documents from a container with optional filters

mcp_get_document_by_id

Get a specific document by its ID and partition key

mcp_analyze_schema

Analyze the schema of documents in a container to understand data structure and types

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hendrickcastro/MCPCosmosDB'

If you have feedback or need assistance with the MCP directory API, please join our Discord server