moldy93 avatar

SMARD Energy Prices (x402)

moldy93/smard-x402-mcp

Pulls German and Luxembourg day-ahead electricity prices from SMARD at 15-minute resolution, but gates each API call behind a $0.001 USDC micropayment on Base mainnet using the x402 protocol. You get one tool that fetches the latest price data. Instead of an API key, you send an X-PAYMENT header generated by signing a transaction with your wallet. The MCP endpoint runs over streamable-http, so your client needs to support that transport. Useful if you're building energy trading models or smart home automations that need real-time price signals and you're comfortable with crypto wallet auth instead of traditional keys.

tool
1
transport
HTTP
last updated
Feb 3, 2026

Install

From registry metadata
$ npx add-mcp https://smard-energy-prices-x402.favo.workers.dev/mcp --name smard-x402

Run in your terminal. add-mcp asks which agents to add it to (Claude Code, Codex, Cursor and more). Add -g to install it for every project.

Review the command, arguments and environment values before installing. MCP servers run with your local permissions.

Other ways

Claude Code

$ claude mcp add --transport http smard-x402 https://smard-energy-prices-x402.favo.workers.dev/mcp

Run in your terminal. Add --scope user to make it available in every project.

Tools

Verified live · 1 tools

Verified live against the running server on Nov 6, 2026.

smard_pricesGet latest SMARD day-ahead prices (DE-LU)2 params

Get latest SMARD day-ahead prices (DE-LU)

Parameters* required
regionstring
seriesIdstring

Sponsors

Readme

SMARD Energy Prices (x402)

Paywalled SMARD day‑ahead electricity prices (DE‑LU, 15‑minute resolution) via x402 on Base mainnet. Hosted MCP (streamable‑http) + HTTP endpoint.

Homepage

https://smard-energy-prices-x402.favo.workers.dev

Endpoints

  • HTTP: GET https://smard-energy-prices-x402.favo.workers.dev/prices
  • MCP: POST https://smard-energy-prices-x402.favo.workers.dev/mcp

Pricing

$0.001 per call (USDC on Base). Requires X-PAYMENT header (exact scheme).

MCP Connect (example)

{
  "mcpServers": {
    "smard-x402": {
      "url": "https://smard-energy-prices-x402.favo.workers.dev/mcp",
      "headers": {
        "Accept": "application/json, text/event-stream"
      }
    }
  }
}

Node.js Example (x402)

import { createWalletClient, http } from "viem";
import { base } from "viem/chains";
import { privateKeyToAccount } from "viem/accounts";
import { createPaymentHeader, selectPaymentRequirements } from "x402/client";

const url = "https://smard-energy-prices-x402.favo.workers.dev/prices";

View the full README on GitHub

Details

Repository
github.com/moldy93/smard-x402-mcp
Website
smard-energy-prices-x402.favo.workers.dev
Transport
HTTP
Registry
MCP registry, active
Tools verified
Nov 6, 2026