Skip to main content
Glama

MCP CosmosDB

MIT License

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OCONNSTRINGYesCosmosDB connection string from Azure Portal
COSMOS_DATABASE_IDYesDatabase ID to connect to
COSMOS_MAX_RETRY_ATTEMPTSNoMaximum retry attempts for requests9
COSMOS_MAX_RETRY_WAIT_TIMENoMaximum retry wait time (ms)30000
COSMOS_ENABLE_ENDPOINT_DISCOVERYNoEnable automatic endpoint discoverytrue
COSMOS_ENABLE_CROSS_PARTITION_QUERYNoEnable cross-partition queriestrue

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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

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