Skip to navigation

RubricHQ MCP Server

Test, monitor and question your voice agents from Claude, Cursor, Codex and other AI assistants.

The RubricHQ MCP server connects your AI assistant to your RubricHQ workspace through the Model Context Protocol. Once it’s connected, you can ask your assistant to do anything you’d do in the dashboard, in plain words:

  • “Create five scenarios that try to get my support agent to skip identity checks.”
  • “Run the smoke suite against Acme Support and tell me why it failed.”
  • “Which production calls failed yesterday, and what went wrong?”
  • “Ask Co-Pilot which agent has the worst latency this week.”

The assistant picks the right RubricHQ tools, runs them, and explains the results: transcripts, metric verdicts, pass rates and Co-Pilot answers.

The server is published on npm as @rubrichq/mcp-server. It runs on your computer and talks to api.rubrichq.io with your API key. You need Node.js 20 or later.

Set up

1

Create an API key

In RubricHQ, open the workspace you want to use, then go to Settings → API Keys → Create key. Copy the key; it’s shown only once.

An API key belongs to one workspace, so the key you choose decides which workspace your assistant works in. See Workspaces.

2

Add the server to your assistant

claude mcp add rubrichq --scope user \
-e RUBRICHQ_API_KEY=your_api_key \
-- npx -y @rubrichq/mcp-server

Check it with claude mcp list, or type /mcp inside Claude Code.

3

Check that it works

Ask your assistant:

List my RubricHQ agents and their scenarios. Don't create or run anything.

You should get your workspace’s agents back. If not, see Troubleshooting.

What you can do

Example prompts

Read the prompt of my "Acme Support" agent and create 5 scenarios that test its
edge cases: an angry caller, a caller who won't give their date of birth, and a
request the agent isn't allowed to handle. Attach them to the agent and tag them
"edge-cases". Don't run them yet.
Run every scenario tagged "smoke" against Acme Support twice. Tell me how many
calls that is before starting. When it finishes, explain each failure using the
transcript and the metric explanations, and suggest a prompt fix.

Many clients also offer this as a ready-made prompt: Test an agent (test_agent).

Look at Acme Support's production calls from the last 3 days. Group the failing
ones by root cause, quote the lines that show each problem, and rank them by how
often they happen.

Also available as the ready-made prompt Review production calls (review_production_calls).

Create a pass/fail metric "Verifies identity before sharing account details".
Turn it on for Acme Support and re-score its last 5 runs with it.
Ask Co-Pilot why calls failed this week, then show me the calls behind the
biggest reason.

Workspaces

Every tool works in the workspace your API key was created in. Nothing else can be reached by default.

  • To use another workspace, ask for it by ID (“list agents in workspace 44”). This works only if the person who created the key is a member of that workspace; otherwise RubricHQ answers “not found”.
  • Co-Pilot always answers for the key’s own workspace.
  • Working in several workspaces regularly? Add the server once per workspace under different names, each with a key from that workspace, for example rubrichq-acme and rubrichq-globex.

Credits and safety

  • Tools that place calls or run AI evaluation spend credits: running scenarios and suites, re-scoring, sending production calls and asking Co-Pilot. Your assistant sees this in each tool’s description and should tell you before it starts something large.
  • If your workspace runs out of credits, nothing is started and nothing is charged. Your assistant tells you to add credits under Settings → Billing. See Troubleshooting.
  • Deleting or archiving is marked as destructive, so clients that support it ask you to confirm first.
  • Want the assistant to look but never change anything? Turn on read-only mode.