Pjm logo

Pjm

Queries PJM electricity-market feeds for real-time LMPs, load forecasts, fuel mix, and broader Data Miner 2 datasets.

Install Pjm

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "pjm": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-pjm"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio pjm -- npx -y @pipeworx/mcp-pjm

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y @pipeworx/mcp-pjm

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Pjm MCP server connects AI agents to PJM Interconnection's Data Miner 2 API for electricity-market data. Its tools cover feed discovery, five-minute real-time locational marginal prices, seven-day load forecasts, and generation by fuel type. Use it for PJM price analysis, demand planning, congestion research, or generation-mix questions. Access requires a PJM API key subscribed to the Data Miner 2 product.

Use cases

  • Check current PJM node prices and congestion components
  • Compare PJM fuel sources and generation shares
  • Forecast electricity demand by zone for the next seven days
  • Discover and query additional PJM Data Miner 2 feeds

Key features

  • Five-minute real-time LMP queries
  • Seven-day hourly load forecasts
  • Generation mix by fuel type
  • PJM Data Miner 2 feed catalog access
  • MCP, HTTP, and local stdio connection options

Tools4

What Pjm lets your agent do. Expand a tool for its parameters.

Verified live~896 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 60d

What it can do

From the 4 tools this server returned when we ran it; 4 declare their own safety hints.

Handles credentials · 4Makes network requests · 4Read-only tools · 4
Network at startup4 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age39 days
Maintainers1

Observed 2026-11-04 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · @pipeworx/mcp-pjm (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads309Package downloads in the last 30 days.
Last commit26d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed4Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Pjm works

What Pjm does

Pjm exposes selected PJM Interconnection Data Miner 2 datasets through MCP. The integration focuses on four areas: discovering the available feed catalog, retrieving real-time five-minute locational marginal prices, reading hourly seven-day load forecasts, and examining generation by fuel type. PJM covers 13 states and Washington, DC.

The feed catalog tool also provides a broader route into PJM data. By supplying an exact feed name, it can fetch datasets beyond the dedicated tools, including feeds such as day-ahead hourly LMPs and instantaneous load. Returned records preserve the field structure published by PJM.

How it works

The hosted MCP endpoint is available at https://gateway.pipeworx.io/pjm/mcp. A client can connect directly using a standard MCP configuration, or use the full Pipeworx gateway at https://gateway.pipeworx.io/mcp. The pack endpoint lists its PJM tools along with shared Pipeworx gateway tools, including routing and discovery functions.

A local npm bridge is also available as @pipeworx/mcp-pjm. An MCP client starts it with npx, and the bridge forwards requests to the hosted endpoint, so it requires network access and has no offline mode. The same tools can be called over HTTP through the Pipeworx tools API.

Setup and configuration

PJM access uses an Ocp-Apim-Subscription-Key header. Obtain a free key by registering at the PJM API portal and subscribing the account to the Data Miner 2 product. Registration alone is insufficient; the subscription must also be enabled for the feed.

For the hosted endpoint, add the MCP URL to a compatible client. For the local bridge, configure the command as npx with -y @pipeworx/mcp-pjm. Anonymous bridge use is limited to 50 calls per day. Setting PIPEWORX_API_KEY with a Pipeworx account key raises the limit to 200 calls per day. PIPEWORX_META_TOOLS=1 adds the gateway-wide meta-tools to the local bridge's tool list.

Tools and capabilities

  • pjm_feeds lists the Data Miner 2 catalog or retrieves any feed by exact name. It accepts pagination parameters.
  • pjm_lmp_realtime returns node-level five-minute LMPs, including total price, congestion, and marginal-loss components. Nodes can be selected by ID or name, with an optional time filter.
  • pjm_load_forecast returns hourly demand forecasts for transmission zones and the RTO total over seven days.
  • pjm_generation_fuel_mix returns megawatts and percentage of total generation by fuel type and published interval.

Limitations and notes

PJM time values use Eastern Prevailing Time, including daylight-saving changes. Date-range filters follow Data Miner 2's M/D/YYYY HH:MM to M/D/YYYY HH:MM syntax rather than ISO 8601.

The integration requests JSON explicitly because Data Miner 2 uses another representation by default. It normalizes the documented response envelope containing totalRows, items, and links, while leaving individual item fields unchanged.

A PJM HTTP 401 response cannot distinguish an absent key from an invalid or unsubscribed key. A successful response with zero rows is treated as an error because it commonly indicates that the requested date range falls outside the feed's published data range. The integration is independent and unofficial, and is not affiliated with PJM Interconnection.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Pjm

Pjm is an MCP server that connects AI agents to PJM Interconnection's Data Miner 2 electricity-market API. Its main tools discover PJM feeds, query five-minute real-time locational marginal prices, retrieve seven-day load forecasts, and report generation by fuel type, including megawatt output and percentage shares.

Install it as a local bridge by configuring your MCP client to run `npx -y @pipeworx/mcp-pjm`. The bridge forwards calls to the hosted Pipeworx endpoint and requires network access. You can also connect directly to `https://gateway.pipeworx.io/pjm/mcp` without installing the npm package.

Pjm requires a PJM API key sent in the `Ocp-Apim-Subscription-Key` header. Register at the PJM API portal and subscribe the account to the Data Miner 2 product; a registered but unsubscribed key is rejected. The local bridge also accepts an optional `PIPEWORX_API_KEY` for Pipeworx account access.

Yes, Pjm works with Cursor through the hosted MCP endpoint or the local stdio bridge. Add `https://gateway.pipeworx.io/pjm/mcp` as the server URL, or configure Cursor to start `npx -y @pipeworx/mcp-pjm`. PJM data queries still require a subscribed PJM API key.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPjm AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/pjm?style=directory)](https://allmcps.com/mcp/pjm)
HTML Embed
<a href="https://allmcps.com/mcp/pjm"><img src="https://allmcps.com/api/badge/pjm?style=directory" alt="Pjm on AllMCPs" /></a>