Skip to main content
Pi uses the pi-mcp-extension package to connect to MCP servers. Use this guide to connect Pi to the hosted Lightsage MCP endpoint.
1

Get your Lightsage API key

Open the Lightsage dashboard and copy your API key.Do not put your API key in shared project config, screenshots, issue reports, or public repositories.
2

Install the Pi MCP extension

Install the MCP extension package:
3

Add Lightsage MCP and verify

Add Lightsage MCP to ~/.pi/agent/mcp.json or .pi/mcp.json. pi-mcp-extension does not expand ${VAR} references in config, so put the API key directly in the headers value:
Because the key is stored literally, keep this config on a private machine and out of shared repositories.Start Pi and use /mcp to check server status.Then run a read-only prompt:
See the pi-mcp-extension package page for supported transports and config locations.