Pi MCP Server

Typed, sandboxed Code Mode access to configured MCP servers for Pi

Remote serverstreamable-httpPython

What is the Pi MCP server?

Pi MCP server is a hosted integration for AI assistants that speak the Model Context Protocol. Typed, sandboxed Code Mode access to configured MCP servers for Pi.

Setting it up

Being a remote server, there is no local install. You register the endpoint with your client, authorise it once, and the tools appear.

What the assistant can call

Once Pi is connected, these are the calls the assistant has available:

  • Agent — written code is type-checked before execution
  • preflight — code did not run and no upstream call was made
  • runtime — the sandbox or an upstream call failed after execution started
  • result — the call graph completed, but the returned value exceeded resultLimitKiB

Configuration and credentials

You will need one environment variable: GRAFANA_MCP_TOKEN. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Before you rely on it

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the pi mcp server does with a few real requests.

Choosing this one

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Pi's toolset — Agent, preflight, runtime and 1 more — is a fair guide to whether it matches your workflow. It is maintained by GitHub Actions; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Pi's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Available tools

ToolWhat it does
Agentwritten code is type-checked before execution.
preflightcode did not run and no upstream call was made.
runtimethe sandbox or an upstream call failed after execution started.
resultthe call graph completed, but the returned value exceeded resultLimitKiB.

Configuration

VariableDescriptionRequired
GRAFANA_MCP_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use Pi to Agent.
  • Use Pi to preflight.
  • Use Pi to runtime.

Frequently asked questions

It connects Pi to MCP-compatible AI assistants such as Claude and Cursor, exposing 4 tools (Agent, preflight, runtime, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Pi directly.