You: "What's the status of Packaging Line 3?"

Claude: [calls list_kpis, list_actions, get_board]

"Packaging Line 3 has 2 KPI alerts:
 - OEE at 72.5% (target: 85%, RED)
 - Batch cycle time at 4.2h (target: 3.5h, AMBER)

 3 overdue actions, highest priority:
 - 'Investigate yield deviation on BX-2026-0412' (3 days overdue, T1)

 Recommendation: Escalate the yield investigation to T2. The OEE
 drop correlates with the batch hold on April 10."

ProBeya ships an MCP server that gives AI assistants structured, authenticated access to your operational data. Same security, same tenant isolation, same audit trail as the web app.

Choose your transport

TransportBest forConnection
stdioClaude Desktop, Claude Code, VS CodeProcess spawning (local)
Streamable HTTPRemote AI agents, custom LLM appsPOST https://app.probeya.com/api/mcp

Quick setup

1

Get an API key

Go to Settings > API Keys > Create API Key in ProBeya. Copy the key.

2

Edit your config

Open Claude Desktop settings and edit claude_desktop_config.json:

{
  "mcpServers": {
    "probeya": {
      "command": "npx",
      "args": ["@probeya/mcp"],
      "env": {
        "PRPROBEYA_API_KEY": "probeya_sk_live_a1b2c3d4...",
        "DATABASE_URL": "postgresql://probeya:probeya_secret@localhost:5433/probeya"
      }
    }
  }
}
3

Verify

Restart Claude Desktop. You should see a hammer icon indicating the ProBeya tools are connected. Try:

“List my workspaces in ProBeya”

Tools (19)

Every tool has Zod-validated inputs, structured output schemas, and tool annotations (readOnly, destructive, idempotent).

ToolDescriptionScope
list_workspacesAll workspaces in the orgread:items
list_projectsProjects in a workspaceread:items
get_boardFull board: groups, columns, items, valuesread:items
list_membersOrganization members with rolesread:items
searchSearch items, projects, workspaces by keywordread:search

Item CRUD

ToolDescriptionScope
create_itemCreate an item on a boardwrite:items
update_itemUpdate name or assigneewrite:items
delete_itemDelete item (asks for confirmation via elicitation)write:items
move_itemMove item to a different group (change status)write:items
set_item_valuesSet cell values (status, priority, dates, etc.)write:items
add_commentAdd a comment to an itemwrite:items

KPIs

ToolDescriptionScope
list_kpisKPI definitions with latest values and targetsread:kpis
set_kpi_valueRecord a KPI measurementwrite:kpis
get_kpi_alertsKPIs breaching red/amber thresholdsread:kpis

Actions

ToolDescriptionScope
list_actionsActions with status, tier, category, overdue filtersread:actions
create_actionCreate action with tier-based escalationwrite:actions
update_actionUpdate status, assignee, prioritywrite:actions
escalate_actionEscalate: T1 (team) to T2 (dept) to T3 (site)write:actions

AI-Powered

ToolDescriptionScope
analyze_boardUses LLM sampling to analyze board healthread:items
get_dashboard_statsOrganization-level completion rates and countsread:dashboard

Resources (4)

Resources are read-only data the AI can browse without calling a tool:

URIDescription
probeya://dashboardOrg stats, status distribution, priority breakdown
probeya://membersAll members with roles
probeya://board/{boardId}Full board data (with list callback for discovery)
probeya://project/{projectId}Project overview with board summary

Prompts (5)

Pre-built prompt templates for common pharma workflows:

PromptWhat it doesInput
daily_standupSummarize overdue actions, KPI alerts, blockersboardId
board_analysisAnalyze bottlenecks, workload balance, flowprojectId
escalation_reportTier escalation report for management reviewboardId
kpi_reviewWeekly SQCDP KPI review with trend analysisboardId
capa_analysisCAPA analysis for GxP regulatory complianceboardId

Authentication and security

MCP connections are authenticated with the same API keys as the REST API, plus an optional MCP-specific key type with extra controls:

Key typePrefixExtra features
REST API keyprobeya_sk_live_Scopes only
MCP API keyprobeya_mcp_live_+ Allowed tools list, allowed resources, monthly token budget

Security layers

AI Client (Claude, GPT, custom)
     |
     | API key in env (stdio) or Authorization header (HTTP)
     v
MCP Server — Key verification (bcrypt)
     |  Scope enforcement (read:items, write:kpis, etc.)
     |  MCP key: tool permission check
     |  MCP key: resource permission check
     |  MCP key: token budget enforcement
     v
tRPC Routers — organizationId from API key (tenant isolation)
     |  Zod input validation
     |  Activity logging (audit trail)
     v
PostgreSQL — RLS policies (defense-in-depth)

Destructive tools like delete_item use MCP elicitation to ask the human for confirmation before executing. If the AI client does not support elicitation, the operation proceeds without confirmation.

Example conversation

Here is a real interaction showing how Claude uses ProBeya tools:

User: "I need to prepare for the morning SQCDP standup for Packaging Line 3.
       What should I know?"

Claude: Let me gather the data.
        [calls get_kpi_alerts with boardId: "clx_board_packaging_line_3"]
        [calls list_actions with boardId: "clx_board_packaging_line_3", overdue: true]
        [calls get_board with projectId: "clx_proj_packaging"]

"Here's your standup brief for Packaging Line 3:

**Safety (S)**
- No incidents in the last 24 hours
- 1 near-miss report filed yesterday (forklift zone B) — action assigned to J. Dupont

**Quality (Q)** — 1 RED ALERT
- Right First Time at 98.1% (target 95%) — GREEN
- Batch BX-2026-0412 on hold pending yield investigation — ACTION OVERDUE (3 days)

**Cost (C)**
- Scrap rate at 2.1% (target 3%) — GREEN

**Delivery (D)** — 1 RED ALERT
- OEE at 72.5% (target 85%) — RED, down from 81% last week
- Batch cycle time at 4.2h (target 3.5h) — AMBER

**People (P)**
- 2 training certifications expiring this week
- Team mood: 3.8/5 (stable)

**Recommended escalations:**
1. Escalate 'Yield deviation BX-2026-0412' from T1 to T2 — 3 days overdue, OEE impact confirmed
2. Schedule maintenance review for conveyor segment 4B — linked to cycle time increase"

User: "Escalate the yield investigation to T2."

Claude: [calls escalate_action with id: "clx_act_yield_investigation", reason: "3 days overdue, OEE impact -12.5%"]

"Done. The yield investigation for batch BX-2026-0412 has been escalated to
T2 (Department level). The Quality Manager has been notified."

Advanced features

Architecture

Claude Desktop / Claude Code / Remote AI Agent
        |
        | stdio (local) or Streamable HTTP (remote)
        v
   MCP Server (McpServer v2.0.0)
        |  Scope enforcement — withScope() wrapper
        |  MCP key enforcement — tool/resource/budget checks
        |  Zod validation — input + output schemas
        |  Structured logging — sendLoggingMessage
        v
   tRPC Routers (appRouter.createCaller)
        |  organizationId filtering — tenant isolation
        |  Activity logging — full audit trail
        v
   PostgreSQL (RLS-scoped transaction)

The MCP server is a thin adapter. All business logic, validation, authorization, and audit trail are handled by the same tRPC routers that power the web app. This means MCP operations are exactly as secure and auditable as UI operations.

Next steps