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

@quetra/mcp

v0.4.3

Published

QuetraAI MCP server — AI agent governance as MCP tools

Readme

@quetra/mcp

npm version license

MCP server for QuetraAI — expose AI agent spending governance as Model Context Protocol tools. Works with Claude Desktop, Claude Code, and any MCP-compatible client.

Two Ways to Connect

| Method | Transport | Use Case | | ------------------------ | --------------- | ------------------------------------------------------------------------ | | Local (this package) | stdio | Claude Desktop config, npx, programmatic embedding | | Remote | Streamable HTTP | One URL, multi-agent, no install: https://mcp.quetra.dev/<api-key>/mcp |

The remote server supports multiple agents per connection — see Remote MCP Setup below.

Install

npm install @quetra/mcp

Claude Desktop Setup (Local)

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "quetra": {
      "command": "npx",
      "args": ["@quetra/mcp"],
      "env": {
        "QUETRA_API_KEY": "sk_...",
        "QUETRA_AGENT_ID": "your-agent-uuid",
        "QUETRA_GATEWAY_URL": "https://gateway.quetra.dev"
      }
    }
  }
}

Remote MCP Server

No install required. Add the remote server URL directly in Claude Code or Claude Desktop:

https://mcp.quetra.dev/<your-api-key>/mcp

The remote server is multi-agent — use quetra_list_agents to discover available agents, then pass agentId to each tool call. One connection governs all your agents.

Standalone Usage

Run directly from the command line (stdio transport):

QUETRA_API_KEY=sk_... QUETRA_AGENT_ID=agent-uuid npx @quetra/mcp

Programmatic Usage

Embed the MCP server in your own application:

import { createQuetraMCPServer } from "@quetra/mcp";

const server = createQuetraMCPServer({
  apiKey: "sk_...",
  agentId: "agent-uuid",
  gatewayUrl: "https://gateway.quetra.dev",
});

Available Tools

| Tool | Description | | ---------------------- | ----------------------------------------------------------------------------------------------------------------- | | quetra_evaluate | Pre-flight spend check — evaluate a payment against mandate rules and budget. Returns per-rule pass/fail details. | | quetra_check_budget | Budget status: total, spent, remaining, per-transaction limit, reset schedule. | | quetra_can_spend | Spend check with rejection reasons — shows exactly which rules failed. | | quetra_fetch | x402-aware fetch — make HTTP requests that auto-handle payment-required responses. | | quetra_transactions | List recent transaction history with optional filters. | | quetra_acp_checkout | Initiate a Stripe ACP merchant checkout flow. |

The remote server adds quetra_list_agents — discover available agents in your organization.

Environment Variables

| Variable | Required | Description | | -------------------- | -------- | ------------------------------------------------------------------- | | QUETRA_API_KEY | Yes | Your organization's API key (sk_...) | | QUETRA_AGENT_ID | Yes | The agent's UUID (local only — remote uses agentId per tool call) | | QUETRA_GATEWAY_URL | No | Gateway URL (defaults to https://gateway.quetra.dev) |

Getting Started

  1. Sign up at app.quetra.dev
  2. Create an organization and register an agent
  3. Create a mandate with spending rules and budget
  4. Generate an API key
  5. Add the MCP server config to Claude Desktop (local) or paste the remote URL

Related Packages

License

MIT