Ember Climate MCP Server for Mastra AI 11 tools — connect in under 2 minutes
Mastra AI is a TypeScript-native agent framework built for modern web stacks. Connect Ember Climate through the Vinkius and Mastra agents discover all tools automatically — type-safe, streaming-ready, and deployable anywhere Node.js runs.
ASK AI ABOUT THIS MCP SERVER
Vinkius supports streamable HTTP and SSE.
import { Agent } from "@mastra/core/agent";
import { createMCPClient } from "@mastra/mcp";
import { openai } from "@ai-sdk/openai";
async function main() {
// Your Vinkius token — get it at cloud.vinkius.com
const mcpClient = await createMCPClient({
servers: {
"ember-climate": {
url: "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
},
},
});
const tools = await mcpClient.getTools();
const agent = new Agent({
name: "Ember Climate Agent",
instructions:
"You help users interact with Ember Climate " +
"using 11 tools.",
model: openai("gpt-4o"),
tools,
});
const result = await agent.generate(
"What can I do with Ember Climate?"
);
console.log(result.text);
}
main();
* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
About Ember Climate MCP Server
Connect your AI agents to Ember Climate's open electricity dataset and gain instant access to global energy intelligence covering over 200 countries and regions.
Mastra's agent abstraction provides a clean separation between LLM logic and Ember Climate tool infrastructure. Connect 11 tools through the Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution — deployable to any Node.js host in one command.
What you can do
- Carbon Intensity Analysis — Track yearly and monthly carbon footprint (gCO2/kWh) of electricity grids worldwide
- Generation by Source — Break down electricity production by energy type: coal, gas, nuclear, wind, solar, hydro, and more
- Demand Trends — Analyze electricity consumption patterns in TWh with per-capita metrics across nations
- Power Sector Emissions — Monitor CO2 emissions from the power sector in megatonnes and percentage shares
- Renewable Capacity Tracking — Follow monthly wind and solar capacity installations in GW to measure clean energy deployment
- Multi-Country Comparison — Query multiple nations simultaneously using comma-separated country codes for comparative analysis
- Filter Discovery — Explore available entities, energy sources, and date ranges dynamically before making targeted queries
The Ember Climate MCP Server exposes 11 tools through the Vinkius. Connect it to Mastra AI in under two minutes — no API keys to rotate, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.
How to Connect Ember Climate to Mastra AI via MCP
Follow these steps to integrate the Ember Climate MCP Server with Mastra AI.
Install dependencies
Run npm install @mastra/core @mastra/mcp @ai-sdk/openai
Replace the token
Replace [YOUR_TOKEN_HERE] with your Vinkius token
Run the agent
Save to agent.ts and run with npx tsx agent.ts
Explore tools
Mastra discovers 11 tools from Ember Climate via MCP
Why Use Mastra AI with the Ember Climate MCP Server
Mastra AI provides unique advantages when paired with Ember Climate through the Model Context Protocol.
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure — add Ember Climate without touching business code
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
TypeScript-native: full type inference for every Ember Climate tool response with IDE autocomplete and compile-time checks
One-command deployment to any Node.js host — Vercel, Railway, Fly.io, or your own infrastructure
Ember Climate + Mastra AI Use Cases
Practical scenarios where Mastra AI combined with the Ember Climate MCP Server delivers measurable value.
Automated workflows: build multi-step agents that query Ember Climate, process results, and trigger downstream actions in a typed pipeline
SaaS integrations: embed Ember Climate as a first-class tool in your product's AI features with Mastra's clean agent API
Background jobs: schedule Mastra agents to query Ember Climate on a cron and store results in your database automatically
Multi-agent systems: create specialist agents that collaborate using Ember Climate tools alongside other MCP servers
Ember Climate MCP Tools for Mastra AI (11)
These 11 tools become available when you connect Ember Climate to Mastra AI via MCP:
get_api_options
Use dataset (e.g., "electricity-generation"), temporal_resolution (e.g., "monthly", "yearly"), and filter_name (e.g., "entity", "series", "entity_code", "date", "year"). This tool is useful for discovering valid country codes, energy source types, and available date ranges before making specific data queries. Get available filter options for Ember electricity datasets
get_carbon_intensity_monthly
Use entity or entity_code to filter by country (e.g., "Brazil", "DE", "US"). Use start_date and end_date with format YYYY-MM (e.g., "2023-01", "2024-12"). This helps analyze seasonal patterns in grid carbon footprint and track monthly decarbonization progress. Get monthly carbon intensity of electricity generation for countries/regions
get_carbon_intensity_yearly
Use entity or entity_code to filter by country (e.g., "Brazil", "DE", "US"). Use start_date and end_date with format YYYY (e.g., "2020", "2023"). Returns emissions intensity data showing how clean or polluting the electricity grid is over time. Get yearly carbon intensity of electricity generation for countries/regions
get_electricity_demand_monthly
Use entity or entity_code to filter by country (e.g., "Brazil", "DE", "US"). Use start_date and end_date with format YYYY-MM (e.g., "2023-01", "2024-12"). Useful for analyzing seasonal demand patterns, peak consumption periods, and demand forecasting. Get monthly electricity demand data for countries/regions
get_electricity_demand_yearly
Use entity or entity_code to specify countries (e.g., "Brazil", "DE", "US"). Use start_date and end_date with format YYYY (e.g., "2020", "2023"). Essential for understanding energy consumption trends and comparing per-capita usage across nations. Get yearly electricity demand data for countries/regions
get_electricity_generation_monthly
). Returns generation in TWh and percentage share of total generation for each source. Use entity or entity_code to filter by country (e.g., "Brazil", "DE", "US"). Use start_date and end_date with format YYYY-MM (e.g., "2023-01", "2024-12"). Use series to filter by specific energy sources (e.g., "coal", "wind", "solar", "hydro", "nuclear", "gas"). Perfect for analyzing seasonal generation patterns, renewable intermittency, and monthly energy mix changes. Get monthly electricity generation by source for countries/regions
get_electricity_generation_yearly
). Returns generation in TWh and percentage share of total generation for each source. Use entity or entity_code to filter by country (e.g., "Brazil", "DE", "US"). Use start_date and end_date with format YYYY (e.g., "2020", "2023"). Use series to filter by specific energy sources (e.g., "coal", "wind", "solar", "hydro", "nuclear", "gas"). Essential for analyzing energy transition, renewable adoption, and fossil fuel phase-out progress. Get yearly electricity generation by source for countries/regions
get_generation_multi_entity
g., "BRA,DE,US" for Brazil, Germany, and United States). Use start_date and end_date with format YYYY for yearly or YYYY-MM for monthly data. Use series to filter by energy source (e.g., "coal", "wind", "solar", "hydro", "nuclear", "gas"). This is highly efficient for comparative analysis across multiple nations without making separate API calls. Example: entity_code="BRA,DE,US,CHN,IND" to compare BRICS+ nations energy generation. Get electricity generation data for multiple countries simultaneously
get_installed_capacity_monthly
Use entity or entity_code to filter by country (e.g., "Brazil", "DE", "US"). Use start_date and end_date with format YYYY-MM (e.g., "2023-01", "2024-12"). Use series to filter by capacity type (e.g., "wind", "solar"). Tracks renewable infrastructure deployment and capacity growth over time across different nations. Get monthly installed power capacity (wind and solar) for countries
get_power_sector_emissions_monthly
Use entity or entity_code to filter by country (e.g., "Brazil", "DE", "US"). Use start_date and end_date with format YYYY-MM (e.g., "2023-01", "2024-12"). Use series parameter to filter by emission types (e.g., "co2"). Enables granular tracking of monthly emission trends and seasonal variations in power sector pollution. Get monthly power sector CO2 emissions for countries/regions
get_power_sector_emissions_yearly
Use entity or entity_code to filter by country (e.g., "Brazil", "DE", "US"). Use start_date and end_date with format YYYY (e.g., "2020", "2023"). Use series parameter to filter by emission types (e.g., "co2"). Critical for tracking national decarbonization progress and climate policy effectiveness. Get yearly power sector CO2 emissions for countries/regions
Example Prompts for Ember Climate in Mastra AI
Ready-to-use prompts you can give your Mastra AI agent to start working with Ember Climate immediately.
"What is the carbon intensity of Brazil's electricity grid in recent years?"
"Compare wind and solar generation between Germany, China, and the US for the last 3 years."
"Show me the monthly electricity demand in France during 2024."
Troubleshooting Ember Climate MCP Server with Mastra AI
Common issues when connecting Ember Climate to Mastra AI through the Vinkius, and how to resolve them.
createMCPClient not exported
npm install @mastra/mcpEmber Climate + Mastra AI FAQ
Common questions about integrating Ember Climate MCP Server with Mastra AI.
How does Mastra AI connect to MCP servers?
MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.Can Mastra agents use tools from multiple servers?
Does Mastra support workflow orchestration?
Connect Ember Climate with your favorite client
Step-by-step setup guides for every MCP-compatible client and framework:
Anthropic's native desktop app for Claude with built-in MCP support.
AI-first code editor with integrated LLM-powered coding assistance.
GitHub Copilot in VS Code with Agent mode and MCP support.
Purpose-built IDE for agentic AI coding workflows.
Autonomous AI coding agent that runs inside VS Code.
Anthropic's agentic CLI for terminal-first development.
Python SDK for building production-grade OpenAI agent workflows.
Google's framework for building production AI agents.
Type-safe agent development for Python with first-class MCP support.
TypeScript toolkit for building AI-powered web applications.
TypeScript-native agent framework for modern web stacks.
Python framework for orchestrating collaborative AI agent crews.
Leading Python framework for composable LLM applications.
Data-aware AI agent framework for structured and unstructured sources.
Microsoft's framework for multi-agent collaborative conversations.
Connect Ember Climate to Mastra AI
Get your token, paste the configuration, and start using 11 tools in under 2 minutes. No API key management needed.
