How to Use the EIA Coal & Mining — Solid Fuels Intelligence MCP in Mastra AI
Build resilient coal market analysis workflows with Mastra AI and real-time physical metrics.
Works with every AI agent you already use
…and any MCP-compatible client
Connect EIA Coal & Mining — Solid Fuels Intelligence MCP to Mastra AI
Create your Vinkius account to connect EIA Coal & Mining — Solid Fuels Intelligence to Mastra AI and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Automated Coal Price Alerts
The `get_coal_prices` tool feeds direct market rates by rank into your Mastra AI workflows. You can configure a daily job to pull pricing for subbituminous and lignite coal. If the API times out, the framework's exponential backoff kicks in automatically to try again. Use `get_coal_trade` to add context to those price movements. Your agent can check export volumes, compare them to domestic prices, and trigger conditional branches. If exports drop and prices spike, the workflow alerts your trading desk immediately.
Mine Production Pipelines via MCP Server
Track extraction volumes across the country using `get_mine_production`. This tool pulls mandatory reporting data for individual sites. Mastra AI can ingest this data, map it against historical trends, and handle any connection failures gracefully. Aggregate that data with `get_coal_production` for state-level reporting. The MCP Server handles the data fetch, allowing you to build a multi-step pipeline that grabs the raw tonnage, formats it into a weekly brief, and pushes it to your database. The one-command deploy gets your pipeline running in minutes.
Quality and Reserve Risk Workflows
Environmental standards require strict monitoring of fuel specs. Call `get_coal_quality` to pull heat content, sulfur, and ash metrics. You can set up human-in-the-loop approvals if a specific coal shipment falls outside your required parameters. Long-term planning relies on `get_coal_reserves`. Your agent checks productive capacity and current stocks. If reserves dip below a safety threshold, the workflow branches to notify procurement teams to adjust their purchasing strategy.
Set up EIA Coal & Mining — Solid Fuels Intelligence MCP in Mastra AI
Prerequisites
- Node.js 18+ and a TypeScript project
-
@mastra/mcp+@mastra/corepackages - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
npm install @mastra/mcp @mastra/coreplus your preferred model provider (e.g.@ai-sdk/openai). - 2
Configure the MCPClient
Create an
MCPClientwith your Vinkius endpoint as aURLobject. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. - 3
Discover and inject tools
Call
mcpClient.listTools()and spread the result into your agent'stoolsobject. All EIA Coal & Mining — Solid Fuels Intelligence tools become native Mastra tools. - 4
Run with any model
Swap
openai("gpt-4o")for any AI SDK-compatible provider. Callagent.generate()and the agent routes tool calls through MCP automatically.
import { MCPClient } from "@mastra/mcp";
import { Agent } from "@mastra/core/agent";
import { openai } from "@ai-sdk/openai";
const mcpClient = new MCPClient({
id: "eia-coal-mining-solid-fuels-intelligence-mcp-client",
servers: {
"eia-coal-mining-solid-fuels-intelligence-mcp": {
url: new URL(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
),
},
},
});
const agent = new Agent({
name: "EIA Coal & Mining — Solid Fuels Intelligence Agent",
model: openai("gpt-4o"),
instructions: "You have access to EIA Coal & Mining — Solid Fuels Intelligence tools.",
tools: {
...(await mcpClient.listTools()),
},
});
const result = await agent.generate(
"List recent EIA Coal & Mining — Solid Fuels Intelligence transactions"
);
console.log(result.text); Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by EIA. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about EIA Coal & Mining — Solid Fuels Intelligence MCP in Mastra AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the EIA Coal & Mining — Solid Fuels Intelligence MCP today
We host it, we monitor it, we maintain it. You just paste one token.