Lighthouse can be used directly from scripts, terminals, coding agents, and MCP-enabled AI clients. The lighthouse-clients packages give you a supported way to automate Lighthouse data access and expose Lighthouse capabilities to LLMs without having to build custom glue code first.
This area is evolving quickly. If you find a client setup that works well, or a gap in the examples below, please let us know in our Slack community.
- Choose the Right Option
- Packages and Downloads
- Authentication and API Keys
- CLI for Scripting and Automation
- MCP for AI Clients
- Run MCP HTTP in Docker
- Microsoft Copilot Studio
- Lighthouse Agent Skill
- Example Prompts and Workflows
- Related Documentation
Choose the Right Option
Lighthouse currently offers three main automation entry points:
| Option | Best for | Package |
|---|---|---|
| CLI | Shell scripts, CI jobs, coding agents with terminal access, quick ad-hoc inspection | @letpeoplework/lighthouse-cli |
| MCP stdio | Local AI clients such as VS Code / GitHub Copilot, Claude Code, or other tools that can start a local process | @letpeoplework/lighthouse-mcp-stdio |
| MCP HTTP | Shared or hosted AI setups such as Microsoft Copilot Studio, container deployments, remote development environments, and web-based clients that need a network endpoint | @letpeoplework/lighthouse-mcp-http |
If your AI client can run terminal commands, the CLI is often the fastest way to automate Lighthouse. If your AI client supports MCP, use either the local stdio server or the shared HTTP server depending on your deployment model.
Packages and Downloads
The current Lighthouse automation packages are published on npm:
- @letpeoplework/lighthouse-cli
- @letpeoplework/lighthouse-mcp-stdio
- @letpeoplework/lighthouse-mcp-http
Lighthouse also ships two ready-to-download assets from the latest lighthouse-clients release:
- lighthouse-mcp-stdio.mcpb for one-click MCP bundle installation in clients that support the MCPB format
- lighthouse-skill.zip for installing the Lighthouse agent skill directly as a reusable Lighthouse-specific guidance pack
Think of these as two different deliverables:
lighthouse-mcp-stdio.mcpbis a packaged MCP server setup for clients that support MCPBlighthouse-skill.zipis a packaged Lighthouse skill for clients that support importing custom skills, prompt bundles, or agent capabilities
Authentication and API Keys
If your Lighthouse instance runs without authentication, the examples on this page usually work with just the target URL.
If authentication is enabled, non-browser clients should use an API key. Create and manage those keys from System Settings > API Keys. The full authentication setup is described in Authentication.
API keys are intended for CLI usage, MCP servers, scripts, and other non-browser automation paths. Browser sign-in still uses the normal Lighthouse authentication flow.
Most client packages expect the key in the LIGHTHOUSE_API_KEY environment variable, or let you provide it during the CLI connection flow.
CLI for Scripting and Automation
Use the CLI when you want a terminal-first workflow, a scriptable JSON interface, or a straightforward way for coding agents to access Lighthouse data.
Install
npm install -g @letpeoplework/lighthouse-cli
You can also install it globally with pnpm:
pnpm add -g @letpeoplework/lighthouse-cli
If you prefer release installers instead of npm tooling, use the latest published installer assets.
Linux and macOS:
curl -fsSL https://github.com/LetPeopleWork/lighthouse-clients/releases/latest/download/install.sh | bash
Windows:
irm https://github.com/LetPeopleWork/lighthouse-clients/releases/latest/download/install.ps1 | iex
The installer route is useful when you want the CLI available directly as lh without relying on npx or a local package install inside a project.
Connect to a Server
lh connection connect --mode server --url https://lighthouse.example.com
If the target Lighthouse instance requires authentication, either pass the key during connect or inject it through the environment.
lh connection connect --mode server --url https://lighthouse.example.com --api-key <key>
LIGHTHOUSE_API_KEY=<key> lh connection connect --mode server --url https://lighthouse.example.com
For the local standalone desktop app, you can skip the URL and let the CLI discover Lighthouse automatically.
lh connection connect --mode standalone
Script Example
The CLI supports machine-readable output through --json, which makes it a good fit for shell pipelines and CI.
LIGHTHOUSE_API_KEY=<key> \
lh metrics team --id 1 --metrics throughput,cycleTime --json
Another common automation pattern is to list teams, pick an ID, and run a forecast.
LIGHTHOUSE_API_KEY=<key> lh team list --json
LIGHTHOUSE_API_KEY=<key> lh forecast manual --team-id 1 --remaining 12 --json
MCP for AI Clients
MCP lets AI tools call Lighthouse functionality as tools instead of relying on pasted screenshots or manually copied metrics. Lighthouse supports both a local stdio MCP server and a shared HTTP MCP server.
MCP stdio for Local Clients
Use @letpeoplework/lighthouse-mcp-stdio when your AI client can launch a local process on the same machine.
You can start it directly with npx:
npx -y @letpeoplework/lighthouse-mcp-stdio
VS Code / GitHub Copilot Example
Add the server to .vscode/mcp.json or your user MCP configuration:
{
"servers": {
"lighthouse": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@letpeoplework/lighthouse-mcp-stdio"],
"env": {
"LIGHTHOUSE_URL": "https://lighthouse.example.com",
"LIGHTHOUSE_API_KEY": "replace-me"
}
}
}
}
If you are using the local Lighthouse standalone app, you can usually omit LIGHTHOUSE_URL and let the package discover the running instance.
MCPB Bundle
If your client supports .mcpb bundles, the quickest setup is the latest lighthouse-mcp-stdio.mcpb. Download the file, open it in your MCP-capable client, and provide the Lighthouse URL and optional API key when prompted.
MCP HTTP for Shared Setups
Use @letpeoplework/lighthouse-mcp-http when you want one hosted MCP endpoint that multiple users or clients can share.
Run it locally with npx:
LIGHTHOUSE_URL=https://lighthouse.example.com \
LIGHTHOUSE_API_KEY=replace-me \
HOST=127.0.0.1 \
PORT=3333 \
npx -y @letpeoplework/lighthouse-mcp-http
This exposes:
GET /healthfor health checksPOST /mcpfor MCP requests
Client configuration then points to the MCP endpoint:
{
"servers": {
"lighthouse": {
"type": "http",
"url": "http://127.0.0.1:3333/mcp"
}
}
}
Run MCP HTTP in Docker
For containerized or remote setups, use the published Docker image:
docker run --rm \
-p 3000:3000 \
-e HOST=0.0.0.0 \
-e PORT=3000 \
-e LIGHTHOUSE_URL=https://lighthouse.example.com \
-e LIGHTHOUSE_API_KEY=replace-me \
ghcr.io/letpeoplework/lighthouse-clients/mcp-http:latest
Point your client to http://<host>:3000/mcp once the container is running.
Use MCP stdio for personal local setups and MCP HTTP for shared or hosted setups. If your workflow is mostly shell-based, prefer the CLI.
Microsoft Copilot Studio
Copilot Studio calls MCP servers over the network, so it needs the MCP HTTP server. The local stdio server is not an option here, because Copilot Studio cannot start a process on your machine.
Before you start, make sure you have:
- A reachable
@letpeoplework/lighthouse-mcp-httpdeployment served over HTTPS with a certificate Copilot Studio trusts. - A Lighthouse API key created under System Settings > API Keys.
Add Lighthouse as an MCP Tool
- Open your agent in Copilot Studio and go to Tools.
- Select Add a tool, then New tool, then Model Context Protocol.
- Fill in Server name and Server description. The agent orchestrator uses the description to decide when to call Lighthouse, so describe the capability rather than the product, for example “Flow metrics, forecasts, teams and portfolios from Lighthouse”.
-
Set Server URL to your MCP endpoint, including the
/mcppath:https://lighthouse.example.com/mcp - Select API key as the authentication type.
- Set Type to Header.
- Enter
X-Api-Keyas the header name. - Select Create, then Create a new connection, paste your Lighthouse API key, and select Add to agent.
The header name must be exactly X-Api-Key. The MCP HTTP server reads the caller’s key from that header and forwards it to Lighthouse, so each agent user drives Lighthouse under their own key and their own permissions. Authorization is reserved for OAuth bearer tokens and does not work with an API key.
If you build a custom connector in Power Apps instead of using the wizard, the same rule applies on the Security tab: Parameter label is only the text shown when someone creates a connection, while Parameter name is the actual HTTP header and must be X-Api-Key, with Parameter location set to Header.
URL and Transport Notes
- The
/mcpsuffix is required. The MCP HTTP server only serves MCP requests on that path, and a URL without it returns404. - Do not add
/mcptwice. In a custom connector, the host, base URL and operation path are combined, so a base URL of/mcptogether with an operation path of/mcpproduces/mcp/mcpand fails. - Copilot Studio supports the Streamable HTTP transport only. The Lighthouse MCP HTTP server speaks Streamable HTTP, so no extra configuration is needed.
- Tool responses are TOON-encoded rather than JSON. Copilot Studio handles this fine, but raw tool output looks different from plain JSON.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
404 when the connector is tested | The server URL is missing /mcp, or /mcp was set in both the base URL and the operation path | Use exactly one /mcp in the final URL |
401 with a WWW-Authenticate header | No credential reached the server | Check that the header name is X-Api-Key and that the connection actually holds a key |
406 Not Acceptable | The request did not accept both application/json and text/event-stream | Expected when probing by hand with curl; Copilot Studio sends the correct Accept header itself |
Tools appear, but every call reports unauthorized | The API key is wrong, revoked, or lacks permission for the requested data | Re-create the key under System Settings > API Keys and update the connection |
Lighthouse Agent Skill
The Lighthouse skill is its own deliverable, separate from the CLI and separate from the MCP server packages. It gives an LLM a ready-made kickstart for using Lighthouse effectively: when to use MCP tools, when to fall back to the CLI, how to connect to Lighthouse, and how to interpret Lighthouse flow metrics and forecasts.
You can install or inspect it here:
What the Skill Does
The skill does not replace the CLI or MCP. Instead, it teaches the LLM how to use those deliverables well.
Typical benefits include:
- Choosing the right access path: MCP tools first, CLI as fallback
- Guiding the model toward Lighthouse-specific commands and prompts
- Explaining how to authenticate with API keys when needed
- Improving the quality of flow-metrics and forecasting interpretation
How to Use It
- Import the lighthouse-skill.zip into a client that supports custom skills or prompt bundles.
- Give the client access to Lighthouse through either the CLI or an MCP server.
- Ask the model to use Lighthouse for a concrete task such as team metrics, forecasting, or portfolio analysis.
Recommended Combinations
The skill works best together with one of the actual access mechanisms:
- Skill + MCP stdio: best for local VS Code / GitHub Copilot or Claude-style setups where the model can call Lighthouse tools directly
- Skill + MCP HTTP: best for shared or hosted AI environments where multiple clients connect to one MCP endpoint
- Skill + CLI: best for terminal-capable coding agents, shell workflows, and environments where MCP is not available
In short, the skill improves the model’s Lighthouse behavior, while the CLI and MCP packages provide the real connectivity.
Example Usage Pattern
One practical setup is:
- Install the Lighthouse skill in the AI client.
- Connect Lighthouse through MCP or the CLI.
- Start with a task like: “Use Lighthouse to analyze the last 30 days of throughput and cycle time for team 1, then explain the delivery risks.”
This is especially useful if your client supports importing custom skills or prompt bundles and you want the model to begin with Lighthouse-specific guidance instead of a blank prompt.
Example Prompts and Workflows
Once connected through CLI or MCP, common workflows look like this:
- “List all Lighthouse teams and show me their IDs.”
- “Run a forecast for team 1 with 12 remaining items.”
- “Get throughput and cycle time for the last 30 days and summarize the risks.”
- “Show portfolio metrics as raw JSON so I can use them in a script.”
For a shell-first workflow, the CLI is often enough. For natural-language, tool-driven conversations inside an AI client, prefer MCP.