Back to Docs

MCP Server

Use RequestBin directly in Claude Code, Cursor, Windsurf, and any MCP-compatible AI coding agent. Create bins, inspect captured requests, and replay them — all without leaving your editor. Free on every plan — just create an API key and connect.

What is MCP?

The Model Context Protocol (MCP) is a standard for connecting AI coding agents to external tools. The RequestBin MCP server exposes your bins, interactions, and replay capabilities as tools that AI agents can call directly during a conversation.

Installation

npm install -g @requestbin/mcp-server

Or run directly with npx (no install needed):

npx @requestbin/mcp-server

Get an API Key

  1. Go to requestbin.net/api-keys
  2. Create a new API key
  3. Copy it — you will need it for configuration below

Configure for Claude Code

Add to your project's .mcp.json or ~/.claude/settings.json:

{
  "mcpServers": {
    "requestbin": {
      "command": "requestbin-mcp",
      "env": {
        "REQUESTBIN_API_KEY": "rb_your_key_here"
      }
    }
  }
}

Configure for Cursor

Add to Cursor Settings > MCP Servers:

{
  "requestbin": {
    "command": "requestbin-mcp",
    "env": {
      "REQUESTBIN_API_KEY": "rb_your_key_here"
    }
  }
}

Configure for Windsurf

Add to ~/.windsurf/mcp_config.json:

{
  "mcpServers": {
    "requestbin": {
      "command": "requestbin-mcp",
      "env": {
        "REQUESTBIN_API_KEY": "rb_your_key_here"
      }
    }
  }
}

Available Tools

ToolDescription
list_binsList all your webhook bins with URLs and stats
create_binCreate a new webhook bin
get_binGet bin details including recent interactions
delete_binDelete a webhook bin
list_interactionsList captured HTTP requests for a bin
replay_requestSend an HTTP request to any URL (server-side replay)
get_replay_statusCheck the status of a replay job
list_serversList available servers for bin creation

Example Conversations

"Create a webhook bin for testing my Stripe integration"

The agent will call list_servers, then create_bin with name "Stripe Webhooks", and return the bin URL to configure in your Stripe Dashboard.

"Show me the last 5 requests to my Stripe webhook bin"

The agent will call list_bins to find your bins, then list_interactions with a limit of 5, and display the HTTP method, headers, and body of each request.

"Replay the last webhook event to my local server at localhost:3000/webhooks"

The agent will call list_interactions, then replay_request targeting your local URL, and confirm delivery with get_replay_status.

RequestBin
© Copyright 2026 RequestBin.