Azure Cosmos Db Py

🌐Community
by sickn33 · vlatest · Repository

Interact with Azure Cosmos DB using Python; query, insert, update, and delete data programmatically.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add azure-cosmos-db-py npx -- -y @trustedskills/azure-cosmos-db-py
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "azure-cosmos-db-py": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/azure-cosmos-db-py"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill allows AI agents to interact with Azure Cosmos DB using Python. It enables querying, creating, updating, and deleting documents within a Cosmos DB container. The agent can manage data stored in this NoSQL database for various applications.

When to use it

  • Data Retrieval: An agent needs to fetch product information from a Cosmos DB store based on user search criteria.
  • Order Management: An AI assistant manages customer orders by creating new order documents and updating existing ones within Cosmos DB.
  • Log Analysis: An agent analyzes application logs stored in Cosmos DB, identifying error patterns or performance bottlenecks.
  • Content Storage: The agent needs to store user-generated content (e.g., reviews, comments) in a scalable database like Cosmos DB.

Key capabilities

  • Querying documents
  • Creating new documents
  • Updating existing documents
  • Deleting documents
  • Python integration

Example prompts

  • "Retrieve all products with a price greater than $50 from the 'products' container."
  • "Create a new order document for customer ID 12345, including items [item1, item2]."
  • "Update the status of order ID 67890 to 'shipped'."

Tips & gotchas

  • Requires an active Azure subscription and Cosmos DB account with appropriate access permissions.
  • Familiarity with Python and basic database concepts is helpful for constructing effective prompts.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
sickn33
Installs
27

🌐 Community

Passed automated security scans.