MCP CosmosDB
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| COSMOS_CONNECTIONS | No | An inline JSON string containing an array of connection configurations for multi-connection support. | |
| COSMOS_DATABASE_ID | No | The Azure CosmosDB database ID used for legacy single-connection mode. | |
| DB_ALLOW_MODIFICATIONS | No | Enables or disables write operations (create, update, delete, upsert). Set to 'true' to allow modifications. Defaults to 'false'. | false |
| COSMOS_CONNECTIONS_FILE | No | Path to an external JSON file containing an array of connection configurations. This is the highest priority configuration method. | |
| COSMOS_CONNECTION_STRING | No | The Azure CosmosDB connection string used for legacy single-connection mode. | |
| COSMOS_MAX_RETRY_WAIT_TIME | No | Optional 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
| Name | Description |
|---|---|
| mcp_list_databasesB | List all databases in the CosmosDB account |
| mcp_list_containersB | List all containers in the CosmosDB database |
| mcp_container_infoB | Get detailed information about a specific container including throughput settings |
| mcp_container_statsB | Get statistical information about a container including document count and partition key distribution |
| mcp_execute_queryC | Execute a SQL query against a CosmosDB container |
| mcp_get_documentsC | Get documents from a container with optional filters |
| mcp_get_document_by_idC | Get a specific document by its ID and partition key |
| mcp_analyze_schemaC | Analyze the schema of documents in a container to understand data structure and types |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
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