Screwtape MCP server for AI agents and assistants

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Screwtape MCP or direct API to check agent outputs, enforce budgets, verify payments, detect duplicate invoices, and issue signed receipts through natural language.

Screwtape logoScrewtape
Api Key

Screwtape is an agent governance service that checks outputs, budgets, payments, and invoices. It issues signed receipts that make automated actions easier to audit and verify.

49 Tools

Try Screwtape now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
Screwtape
Try asking
TOOLS

Supported Tools

Every Screwtape action and event your agent gets out of the box.

Authorize Payment With Payment Guard

Apply the connected key's effective spend rules to a payment intent.

Check Duplicate Invoice

Judge an invoice and compare its configured identity fields with stored fingerprints before payment, optionally storing a new fingerprint and retaining submitted content when requested, and returning duplicate and verdict details.

Check Payment

Assess available x402 seller or payment-request context and return an allow, review, or block verdict with a signed receipt reference when issued.

Create Action Receipt

Create an Ed25519-signed, hash-chained receipt for an agent-reported action and status.

Create Free API Key

Create a free-tier Screwtape API key with 10 calls per UTC day.

Create Free API Key via Keys Endpoint

Create a free-tier Screwtape API key, optionally using proof of work for higher signup limits.

Delete All Retained Calls

Permanently delete every retained call for the connected key's subscription account, or only this key when it has no plan, and return the deleted count.

Delete BYOM Settings

Delete the Bring-Your-Own-Model settings stored for the connected Screwtape API key, including its encrypted provider credential.

Delete Current API Key and Data

Permanently and irreversibly delete the connected API key hash, counters, payments, retained judgments, shared samples, and feedback.

Delete Duplicate Fingerprints

Permanently delete every keyed fingerprint that duplicate checks stored for the connected key and return the deleted count.

Delete Receipt Evidence

Delete retained evidence for one receipt while preserving the signed receipt.

Delete Retained Call

Permanently delete one retained judge or consensus call by its retention id.

Describe API Key Signup

Return instructions and the proof-of-work challenge for creating a free Screwtape API key.

Describe Free API Key Signup

Return instructions and the proof-of-work challenge for creating a free Screwtape API key.

Export Spend Books

Export charges for the connected key as agent spend-book rows grouped by agent, seller, vendor, UTC day, and product category in QuickBooks CSV, Xero CSV, or JSON format.

Export Verdict Receipts

Export one cursor-controlled page of signed verdict receipts as a downloadable JSONL, CSV, or JSON audit file.

Get Account Settings

Read retention, anonymous-statistics contribution, and drift-alert webhook settings.

Get BYOM Settings

Get Bring-Your-Own-Model provider, model, key suffix, and error policy for the connected Screwtape API key.

Get Current Key Usage

Return safe metadata, metered-call usage, daily quota, and credit balance for the connected Screwtape API key without revealing its secret.

Get Data-Sharing Setting

Read the connected key's opt-in data-sharing state, consent metadata, stored sample count, and redaction and retention policy.

Get Drift Report

Return daily verdict counts and rates for up to 90 days, the previous 30-day baseline, and the latest 24 hours for the connected key.

Get Drift Alerts

List recent drift alerts for the connected key.

Get Payment Guard Account Rules

Read the account-default spend rules used by Screwtape Payment Guard.

Get Payment Guard Rules

Read the spend rules set for the connected Screwtape API key and the effective rules used by Payment Guard.

Get Action Receipt Key

Get the public Ed25519 key used to verify Screwtape action receipts.

Get Receipt Keys

Get the public Ed25519 keys used to verify verdict receipts, including retired keys retained for older exports.

Get Retained Call

Replay one retained call, including its stored request, result, and signed receipt when still available; optionally re-check the receipt signature.

Get Status

Get measured one-hour and 24-hour endpoint latency, uptime, rate limits, and cached x402 facilitator health for Screwtape.

Get Status JSON

Get the JSON status document containing one-hour and 24-hour endpoint latency, uptime, rate limits, and cached x402 facilitator health.

Judge Output

Judge one agent output against its task, evidence, criteria, and optional deterministic checks, returning a pass, fail, or retry verdict and a signed receipt when issued.

List Retained Calls

Return the 20 newest judge and consensus calls that the connected key chose to retain.

List Verdict Receipts

List one page of signed verdict receipts stored for the connected API key, with optional date filters and an agent-controlled continuation cursor.

Update Account Settings

Update retention, anonymous-statistics contribution, or the drift-alert webhook.

Publish Receipt

Publish one signed receipt owned by the connected key and return its public page, badge, and embed snippets.

Set BYOM Settings

Set or rotate Bring-Your-Own-Model provider settings for the connected Screwtape API key.

Set Payment Guard Account Rules

Set the account-default spend rules used by Screwtape Payment Guard.

Set Payment Guard Rules

Set spend rules for the connected Screwtape API key.

Replay Decision

Re-run invoice rules against retained evidence using the original or current policy version.

Reserve Budget

Reserve one spend event against a shared agent-run cap and return whether it is allowed, duplicated, retried, or anomalous.

Score Consensus

Compare 2-16 agent answers for agreement and false-consensus risk, returning a consensus answer, clusters, reasons, and a signed receipt when issued.

Score Seller Trust

Assess whether a paying agent looks abusive or risky before accepting payment, using network history and optionally contributed observations or seller-computed counts.

Send Verdict Feedback

Record whether the verdict on one call made by the connected key was correct.

Set Data-Sharing Setting

Turn opt-in data sharing on or off for the connected key.

Start PayPal Checkout

Start a PayPal card checkout for the $100 Sandbox Evaluation Pack, which provides 2,000 standard checks for 30 days and may be purchased once per customer.

Submit Enterprise Inquiry

Submit contact details and a message to ask Screwtape about enterprise pricing.

Try Check

Run Screwtape's deterministic, no-key invoice sample for a duplicate, clean, or bad-total scenario.

Unpublish Receipt

Remove the public page and badge for one receipt published by the connected key.

Verify Action Receipt

Verify an action receipt by its Screwtape receipt ID or by a portable receipt object, including its hash-chain link.

Verify Verdict Receipt

Verify the Ed25519 signature of a verdict receipt returned by Screwtape judge or consensus without storing it.

SETUP GUIDE

Connect Screwtape MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
Install the Composio SDK and your agent framework
2

Create a session with MCP enabled

typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["screwtape"],
  mcp: true,
});
Create a session scoped to Screwtape and read its MCP URL and headers
3

Connect your agent to the MCP server

typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Check this agent output for policy violations, verify its payment amount against the approved budget, and issue a signed receipt if it passes.",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
Pass the session's MCP URL and headers to your agent and run a Screwtape request
SETUP GUIDE

Connect Screwtape API Tool with your Agent

1

Install Composio

typescript
npm install @composio/core @composio/openai openai
Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
2

Create a Composio session

typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["screwtape"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to Screwtape
3

Run Screwtape tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Check this agent output for policy violations, verify its payment amount against the approved budget, and issue a signed receipt if it passes." }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
Send a request, execute the Screwtape tool calls through the session, and print the final answer

Why Use Composio?

AI Native Screwtape Integration

  • Supports both Screwtape MCP and direct API based integrations
  • Structured, LLM-friendly schemas for checking outputs, budgets, payments, and invoices
  • Rich coverage for issuing signed receipts and verifying automated actions

Managed Auth

  • Secure handling for Screwtape API keys without hard-coding credentials in agent code
  • Central place to manage, scope, and revoke Screwtape access
  • Per user and per environment credentials for safer agent deployments

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Screwtape
  • Scoped, least privilege access to Screwtape resources
  • Full audit trail of agent actions to support review and compliance
FRAMEWORKS

Use Screwtape with any AI Agent Framework

Choose a Framework you want to connect Screwtape with

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
FAQ

Frequently asked questions

Start with Screwtape.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Screwtape tool your agent needs.Free to start.

Start building