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
- Go to requestbin.net/api-keys
- Create a new API key
- 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
| Tool | Description |
|---|---|
list_bins | List all your webhook bins with URLs and stats |
create_bin | Create a new webhook bin |
get_bin | Get bin details including recent interactions |
delete_bin | Delete a webhook bin |
list_interactions | List captured HTTP requests for a bin |
replay_request | Send an HTTP request to any URL (server-side replay) |
get_replay_status | Check the status of a replay job |
list_servers | List 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.