MCP Server
Start Runs and read verdicts from Claude Desktop, Cursor, or Claude Code.
The @peerlm/mcp server exposes the same API to Claude Desktop, Cursor, Claude Code, and other MCP-compatible clients. It is available on Pro, Team, and Enterprise.
Setup
{
"mcpServers": {
"peerlm": {
"command": "npx",
"args": ["-y", "@peerlm/mcp"],
"env": { "PEERLM_API_KEY": "<YOUR_PEERLM_API_KEY>" }
}
}
}Use a read-write key when the client must create a Monitor, ingest traffic, or start a Run. Keep the key in the client's environment, not in a repository.
Monitor tools
list_workloads— list Monitorscreate_workload— create a Monitor under the organization capacity lockingest_logs— ingest normalized records by workload name and auto-create a Monitorlist_audits— list comparison Runsget_audit— retrieve a Run receipt and recommendationstart_audit— start a comparison Run
The MCP names retain the API's compatibility vocabulary: workloads are Monitors and audits are Runs.
Catalog and capacity tools
list_models— find exact catalog model IDsget_usage— read plan, Monitor capacity, and pooled Runs
Compatibility tools
The package still exposes list_suites, get_suite, create_suite, run_eval, get_results, create_system_prompt, and create_test_prompt for existing authored-evaluation integrations. They operate the internal Suite engine and have no customer dashboard counterpart.
Recommended workflow
- Use
list_modelsto resolve the exact production and candidate IDs. - Use
create_workloadwith the exact production model. - Connect OpenTelemetry in the dashboard, or call the REST ingest endpoint with the returned Monitor ID.
- Confirm enough replayable records exist, then use
start_audit. - Use
get_auditto read the switch, route, hold, or inconclusive result.
ingest_logs accepts workload_name, not a Monitor ID, and auto-creates a Monitor. It cannot attach traffic to the ID returned by create_workload. The auto-created Monitor must also be given an exact catalog production model in the dashboard before a Run.