Labsco
MCP SERVER

PI API MCP Server

by mingzilla

Point at a PI API instance, authenticate and set an organization, then filter categories and export charts.

Data Platform: Pipelines, Warehousing, BI & GovernanceVerified
Summary
The filter vocabulary is discovered from a sample entity instead of looked up in documentation you have to find first.

get-filterable-attributes inspects an entity type and reports what can actually be filtered on, which makes the list calls usable without a schema in front of you. Session state is explicit rather than ambient: the base URL, the token and the organization each have their own call, so moving between environments is three calls instead of a restart. Credential login is marked as the last resort, with token refresh as the intended path.

What it is

A client for the PI API: session and organization setup, then category and chart operations.

What you get
  • A base URL set at runtime and a connection check that reports whether the URL and authentication are both valid.
  • Session handling: a token verified and refreshed, credential login as the fallback path, logout, and an organization ID applied to later requests.
  • Categories listed with filtering and paging, fetched, created, updated and deleted, and their objects listed.
  • Charts listed with filtering, fetched, deleted, and exported in a format you choose.
  • The attributes available for filtering, discovered by examining a sample entity.
Requirements

A PI API instance to point at and an account on it. Authentication is by token, with a username and password login available as the fallback.

Setup effort

One command plus a key — npm install -g @mingzilla/pi-api-mcp-server, then supply credentials