Digital Ocean Billing MCP Server
A Model Context Protocol (MCP) server for Digital Ocean Billing integration. This server provides read-only tools for interacting with Digital Ocean's Billing API, allowing you to view account balances, billing history, and invoices.
Features
- Account Balance: View your current Digital Ocean account balance
- Billing History: Access detailed billing history and transactions
- Invoices: Retrieve and analyze your Digital Ocean invoices
- Resources: Access raw billing data for integration with other tools
- Prompts: Templates for common billing analysis workflows
Installation
pip install mcp-digital_ocean_billing
Configuration
This MCP server requires a Digital Ocean Personal Access Token with read access to your billing information.
Obtaining Digital Ocean API Credentials
- Login to your Digital Ocean account at https://cloud.digitalocean.com/
- Navigate to API → Tokens/Keys
- Click "Generate New Token"
- Name your token (e.g., "MCP Billing Access")
- Ensure "Read" scope is selected
- Click "Generate Token"
- Copy and securely store the generated token - it will only be shown once!
Environment Variables
Set the following environment variables:
export DIGITAL_OCEAN_BILLING_API_KEY="your_personal_access_token"
Optionally, you can customize the API base URL (default is https://api.digitalocean.com/v2):
export DIGITAL_OCEAN_BILLING_BASE_URL="https://api.digitalocean.com/v2"
Usage
Starting the server directly
mcp-digital_ocean_billing
Using with Claude Desktop
Add the following to your claude_desktop_config.json file:
{
"mcpServers": {
"digital-ocean-billing": {
"command": "uvx",
"args": [
"mcp-digital_ocean_billing"
],
"env": {
"DIGITAL_OCEAN_BILLING_API_KEY": "your_personal_access_token"
}
}
}
}
Replace the environment variables with your actual Digital Ocean credentials.
Using uvx directly
You can also run the server using uvx directly:
uvx mcp-digital_ocean_billing
With environment variables:
DIGITAL_OCEAN_BILLING_API_KEY="your_token" uvx mcp-digital_ocean_billing
Available Tools
- get_account_balance: Get your current Digital Ocean account balance
- get_billing_history: View detailed billing history with pagination support
- get_invoice_list: List all invoices for your account
- get_invoice_detail: Get detailed information about a specific invoice
Available Resources
- digital_ocean_billing://balance: Current account balance data
- digital_ocean_billing://billing_history: Complete billing history in raw JSON format
- digital_ocean_billing://invoices: Raw invoice data for your account
Available Prompts
- check_billing_summary: Template for checking overall billing status
- analyze_invoice: Template for analyzing a specific invoice
- cost_optimization: Template for getting cost optimization recommendations
Security Considerations
This MCP server is designed to be read-only and does not implement any methods that modify your Digital Ocean account. However, your API token does grant access to billing information, so:
- Use a token with read-only permissions
- Store your API token securely
- Do not share your
claude_desktop_config.jsonfile with others - Regularly rotate your API tokens
Version
0.0.1
Metadata
Release files for mcp-digital_ocean_billing 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mcp_digital_ocean_billing-0.0.3.tar.gz | 5.0 kB | Without provenance | Details for mcp_digital_ocean_billing-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mcp_digital_ocean_billing-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for mcp_digital_ocean_billing-0.0.3-py3-none-any.whl |
Total release size: 10.9 kB
Release files / mcp_digital_ocean_billing-0.0.3.tar.gz
| Download URL | mcp_digital_ocean_billing-0.0.3.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f477ac06db64c6ccc49ce3f3a8e2a1bb347272e7b97fd8c1f5e6b890dde71d84
|
|
BLAKE2b-256 checksum How to use checksums |
06e1bdfb2c78d6c2f9f9be054f08969d51839b17d26d893b2fed0fbf994d4f72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.13
|
Release files / mcp_digital_ocean_billing-0.0.3-py3-none-any.whl
| Download URL | mcp_digital_ocean_billing-0.0.3-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6dc45a60e8c5c770cd9187fb15a98285dc8bfb154d4b05b5dd3d318c6d259e54
|
|
BLAKE2b-256 checksum How to use checksums |
f758b58bb2985fb9e6b5e14002cbac27e29ede9c5087aa121f490891e91feca5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.13
|
Security for mcp-digital_ocean_billing 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.