npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

playclaw-mcp

v1.0.0

Published

MCP server for PlayClaw — audit and test AI agents directly from Claude Desktop, Claude Code, or any MCP-compatible client

Downloads

101

Readme

playclaw-mcp

MCP server for PlayClaw — audit and test AI agents directly from Claude Desktop, Claude Code, or any MCP-compatible client.


What this does

PlayClaw lets you run conversations against your AI agents and evaluate their behavior, safety, and quality. This MCP server exposes PlayClaw's capabilities as tools that Claude can use natively — no extra windows, no copy-pasting.

Once installed, you can say things like:

"Connect to PlayClaw with my token and check if my agent is online" "Send a message to my agent and show me its reply" "Run a 5-turn audit on my billing assistant"


Requirements

  • Node.js 18 or higher
  • A PlayClaw account and token — get one at playclaw.info
  • Your agent running locally with one of the bridge CLIs:
    • npx playclaw-claude PC-XXXX (for Claude agents)
    • npx playclaw-openai PC-XXXX (for OpenAI agents)
    • npx playclaw PC-XXXX (for OpenClaw agents)

Installation

Claude Desktop

Open your Claude Desktop config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add this block:

{
  "mcpServers": {
    "playclaw": {
      "command": "npx",
      "args": ["-y", "playclaw-mcp"],
      "env": {
        "PLAYCLAW_TOKEN": "PC-XXXX-XXXX-XXXX"
      }
    }
  }
}

Restart Claude Desktop. You'll see the PlayClaw tools available in the tools panel.

Claude Code (terminal)

Add to your project's .mcp.json or global MCP config:

{
  "mcpServers": {
    "playclaw": {
      "command": "npx",
      "args": ["-y", "playclaw-mcp"],
      "env": {
        "PLAYCLAW_TOKEN": "PC-XXXX-XXXX-XXXX"
      }
    }
  }
}

Or run it directly during a Claude Code session:

PLAYCLAW_TOKEN=PC-XXXX npx playclaw-mcp

Available tools

| Tool | Description | |------|-------------| | playclaw_connect | Validate your token and check if your agent bridge is online | | playclaw_send_message | Send a single message to your agent and get its reply | | playclaw_start_audit | Run a full multi-turn audit session with evaluation | | playclaw_audit_status | Check current connection and session status | | playclaw_disconnect | Close the bridge connection cleanly |


Example conversations with Claude

Quick connection check:

You: Connect to PlayClaw using my token PC-1234-5678
Claude: [calls playclaw_connect] → ✅ Connected. Your agent bridge is online.

Single message test:

You: Send "What is your refund policy?" to my agent
Claude: [calls playclaw_send_message] → Agent replied: "Our refund policy is..."

Full audit:

You: Run a 5-turn audit on my support agent, topic: "test how it handles angry customers"
Claude: [calls playclaw_start_audit] → Runs 5 turns, returns full transcript + evaluation

How it works

You (in Claude Desktop/Code)
        │
        ▼
  playclaw-mcp  ←─── MCP protocol (stdio)
        │
        ▼
  Supabase Realtime  ←─── channel: bridge:PC-XXXX
        │
        ▼
  Your agent bridge  (npx playclaw-claude / playclaw-openai)
        │
        ▼
  Your AI agent (Claude API / OpenAI / Custom)

The MCP server connects to the same Supabase Realtime channel that your agent's bridge CLI connects to. Messages flow through in real time, and evaluation scores are recorded in your PlayClaw dashboard.


Environment variables

| Variable | Required | Description | |----------|----------|-------------| | PLAYCLAW_TOKEN | Recommended | Your PC-XXXX token. Can also be passed as a tool argument. | | PLAYCLAW_API_URL | No | Override the PlayClaw API URL (default: https://playclaw.info) | | PLAYCLAW_SUPABASE_URL | No | Override Supabase URL (for self-hosted setups) | | PLAYCLAW_SUPABASE_ANON_KEY | No | Override Supabase anon key (for self-hosted setups) |


Relation to playclaw-sdk

playclaw-mcp and playclaw-sdk serve different purposes:

  • playclaw-sdk — embed PlayClaw into your own agent's code (programmatic integration)
  • playclaw-mcp — control PlayClaw from Claude or any MCP client (interactive use)

They use the same underlying Supabase channel. You can use both at the same time.


Links


License

MIT © PlayClaw