PI API MCP Server logo

PI API MCP Server

by mingzilla

A Model Context Protocol (MCP) server that provides standardized tools and resources for interacting with the PI Dashboard API. This implementation enables Claude and other MCP-compatible AI assistants to securely access and manage PI Dashboard resources, including categories and charts.

View on GitHub

Last updated: N/A

What is PI API MCP Server?

The PI API MCP Server is a tool that allows AI assistants like Claude to securely interact with the PI Dashboard API using the Model Context Protocol. It provides a standardized way to access and manage resources like categories and charts within the PI Dashboard.

How to use PI API MCP Server?

The server can be installed via Smithery, Docker, or NPM. After installation, configure the MCP client with the server's address and authentication details. Use the available tools and prompts to interact with the PI Dashboard API, such as listing charts, retrieving category details, or exporting chart data. Example usage scenarios include initial authentication, chart analysis, and using filters.

Key features of PI API MCP Server

  • Standardized API access via MCP

  • Secure authentication and authorization

  • Tools for managing categories and charts

  • Filtering support for listing resources

  • Exporting chart data in various formats

  • Integration with Claude and other MCP-compatible AI assistants

Use cases of PI API MCP Server

  • Automating data analysis tasks in PI Dashboard

  • Integrating PI Dashboard data with AI-powered workflows

  • Enabling AI assistants to manage and monitor PI Dashboard resources

  • Generating reports and insights from PI Dashboard data using AI

  • Providing a secure and controlled access point to PI Dashboard for AI applications

FAQ from PI API MCP Server

How do I authenticate with the PI API?

Use the 'authenticate' tool for guidance on authentication options, or use 'authenticate-with-credentials' with your username and password as a last resort. Token-based authentication is also supported using the 'keep-session-alive' tool.

How do I set the API URL?

Use the 'set-api-url' tool to configure the base API URL for all requests. If not provided at initialization, the server will prompt you to configure it.

How can I list all charts?

Use the 'list-charts' tool. You can also use filters to narrow down the results.

How do I export a chart?

Use the 'export-chart' tool, specifying the chart ID and the desired format.

What is the purpose of the 'keep-session-alive' tool?

The 'keep-session-alive' tool verifies and refreshes the current authentication token, ensuring the session remains active. It is also used for token-based authentication.