Qvakk/crayon-cost-mcp-server
If you are the rightful owner of crayon-cost-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
The Crayon Cost MCP Server provides cost and billing analytics using Crayon CloudIQ APIs, offering a comprehensive suite of tools for financial analysis and management.
Crayon Cost MCP Server
MCP server providing cost and billing analytics from Crayon CloudIQ APIs.
Quick Start (5 Minutes)
1. Get Credentials
Contact your Crayon account team to obtain:
- Client ID
- Client Secret
- Username
- Password
2. Setup Environment
Linux/Mac:
# Clone repository
git clone <your-repo-url>
cd crayon-cost-mcp-server
# Copy environment template
cp .env.example .env
Windows (PowerShell):
# Clone repository
git clone <your-repo-url>
cd crayon-cost-mcp-server
# Copy environment template
Copy-Item .env.example .env
3. Configure Credentials
Edit .env file and fill in your Crayon credentials and authentication token:
# Required - Get from Crayon account team
CRAYON_CLIENT_ID=your_client_id_here
CRAYON_CLIENT_SECRET=your_client_secret_here
CRAYON_USERNAME=your_username_here
CRAYON_PASSWORD=your_password_here
# Required - Generate secure Bearer token (32+ characters)
# Run: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
AUTH_TOKEN=paste_generated_secure_token_here
Note: The .env.example file contains all available configuration options with detailed comments. The above are the minimum required settings to get started.
4. Run Locally with Docker
docker-compose up -d
5. Verify It's Running
# Test health endpoint
curl http://localhost:3003/health
# Expected: {"status":"ok","timestamp":"2025-11-11T..."}
Available MCP Tools
The server provides 26 tools for comprehensive cost analysis:
Core Tools
get_organizations- List all accessible organizationsget_billing_statements- Monthly billing data with filtersget_grouped_billing_statements- Aggregated billing by cyclesget_invoices- Invoice details and statusget_invoice_profiles- Billing group profilesget_cost_summary- Combined cost analysisget_customer_tenants- Customer tenant information for correlation
Azure-Specific Tools
get_azure_usage- Detailed Azure consumption (CSV download)get_azure_subscriptions- Azure subscriptions by tenantget_azure_plan_details- Azure plan information with subscriptionsget_azure_plan_subscriptions- All subscriptions in an Azure planget_azure_costs_by_date_range- Total Azure costs for date rangeget_azure_costs_by_subscription- Subscription-specific Azure costs
Subscription Management
get_subscriptions- All cloud subscriptions (Azure, AWS, etc.)get_subscription_details- Detailed subscription info with metadataget_subscription_tags- Tags for cost allocation and trackingupdate_subscription_tags- Update subscription tags for organizationlist_all_subscriptions_with_tags- Complete subscription and tag inventory
Advanced Analytics & Visualization
get_historical_costs- Multi-month cost history for forecastingget_cost_by_subscription- 📊 Cost breakdown by subscription with pie/doughnut charttrack_costs_by_tags- Cost allocation by tags (department, project, environment)get_cost_trends- 📈 Month-over-month trends with line chart visualizationdetect_cost_anomalies- Identify subscriptions with unexpected cost spikesanalyze_costs_by_tags- Breakdown costs by CostCenter, Department, Project, etc.find_similar_subscriptions_and_invoices- Find related subscriptions by name patternget_last_month_costs_by_tags- Last month cost breakdown by tagsget_last_month_costs_by_invoice_profile- Last month costs per invoice profileget_last_month_costs_by_organization- Last month total by organization
Key Features
- ✅ All historical cost tools use complete billing months (start from 1st of month)
- 📊 Chart visualization for trend analysis and cost distribution
- 🔤 Proper font rendering with DejaVu Sans, Liberation, and Noto fonts
- 🔍 Correlation tools to link billing data with Azure/AWS resources
- 🏷️ Tag-based analytics for departmental cost allocation
Support
For Crayon CloudIQ API documentation: https://apidocs.crayon.com/
For MCP protocol documentation: https://modelcontextprotocol.io/