redirect.pizza MCP for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with redirect.pizza MCP or direct API to manage redirects, configure domains, check team usage, and generate QR codes through natural language.

redirect.pizza logoredirect.pizza
Api Key

redirect.pizza is a URL redirection platform for managing domains and redirects. Use it to ship fast, trackable redirects without running redirect servers.

14 Tools

Try redirect.pizza now

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

TOOL ROUTER PLAYGROUND
redirect.pizza
Try asking
TOOLS

Supported Tools

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

Check Domain DNS

Ask redirect.

Create Redirect

Create a new redirect from one or more source hostnames or URLs to a fixed destination URL using Free-safe redirect types.

Delete Redirect

Permanently delete a redirect and its generated domain association by redirect ID.

Generate QR Code

Generate a QR code for an HTTP or HTTPS URL as JSON-embedded PNG data or a downloadable PNG, SVG, or EPS file.

Get Domain

Retrieve one domain's required DNS records, verification status, security settings, and SSL state.

Get Redirect

Retrieve one redirect and its sources, destination, domains, options, and current pause state by redirect ID.

Get Team

Return the connected token's team identity and hostname, hit, and user quota usage.

List Domains

List domains created by redirects, including DNS requirements, verification, automatic-DNS availability, and SSL state.

List Redirects

List redirects visible to the connected API token, including source, destination, state, and domain details.

Set Redirect Paused

Pause or resume all source URLs belonging to one redirect.

Set Redirect Source Paused

Pause or resume one source URL within a redirect without changing its other sources.

Test Redirect URL

Test one HTTP redirect hop for a public URL and return status, redirect details, timing, errors, and the next URL to test if present.

Update Redirect

Replace a redirect's configurable sources, fixed destination, redirect type, and options.

Upsert Redirect

Create a redirect or update the uniquely matching redirect while retaining that redirect's existing sources.

SETUP GUIDE

Connect redirect.pizza MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/openai @ai-sdk/mcp
Install the Composio SDK for Python or TypeScript
2

Initialize Client and Create Tool Router Session

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

const composio = new Composio({ apiKey: 'your-api-key' });
const session = await composio.create('your-user-id');
console.log(`Tool Router session created: ${session.mcp.url}`);
Import and initialize the Composio client, then create a Tool Router session for redirect.pizza
3

Connect to AI Agent

typescript
import { openai } from '@ai-sdk/openai';
import { experimental_createMCPClient as createMCPClient } from '@ai-sdk/mcp';
import { generateText } from 'ai';

const client = await createMCPClient({
  transport: {
    type: 'http',
    url: session.mcp.url,
    headers: {
      'x-api-key': 'your-composio-api-key',
    },
  },
});

const tools = await client.tools();
const { text } = await generateText({
  model: openai('gpt-4o'),
  tools,
  messages: [{
    role: 'user',
    content: 'Test redirect chain for broken URLs'
  }],
  maxSteps: 5,
});

console.log(`Agent: ${text}`);
Use the MCP server with your AI agent (Anthropic Claude or Mastra)
SETUP GUIDE

Connect redirect.pizza API Tool with your Agent

1

Install Composio

typescript
npm install @composio/openai
Install the Composio SDK
2

Initialize Composio and Create Tool Router Session

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

const composio = new Composio({
  provider: new OpenAIResponsesProvider(),
});
const openai = new OpenAI({});
const session = await composio.create('your-user-id');
Import and initialize Composio client, then create a Tool Router session
3

Execute redirect.pizza Tools via Tool Router with Your Agent

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

const composio = new Composio({
  provider: new OpenAIResponsesProvider(),
});
const openai = new OpenAI({});
const session = await composio.create('your-user-id');

const tools = session.tools;
const response = await openai.responses.create({
  model: 'gpt-4.1',
  tools: tools,
  input: [{
    role: 'user',
    content: 'List active redirects for my redirect.pizza domains'
  }],
});
const result = await composio.provider.handleToolCalls(
  'your-user-id',
  response.output
);
console.log(result);
Get tools from Tool Router session and execute redirect.pizza actions with your Agent

Why Use Composio?

AI Native redirect.pizza Integration

  • Supports both redirect.pizza MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable redirect and domain operations
  • Rich coverage for managing redirects, domains, usage, QR codes, and redirect tests

Managed Auth

  • Secure API key handling without hard-coding redirect.pizza credentials in your agent code
  • Central place to manage, scope, and revoke redirect.pizza access
  • Per user and per environment credentials, so staging and production stay cleanly separated

Agent Optimized Design

  • Tools are tuned for AI agents, so actions like creating redirects or testing URLs are easier to execute correctly
  • Comprehensive execution logs show what ran, when it ran, and which redirect.pizza account was used

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access redirect.pizza
  • Scoped, least privilege access to redirect.pizza redirect and domain resources
  • Full audit trail of agent actions to support review, debugging, and compliance
FAQ

Frequently asked questions

Yes, redirect.pizza requires you to configure your own API key credentials. Once set up, Composio handles secure credential storage and API request handling for you.

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Start with redirect.pizza.It takes 30 seconds.

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

Start building