mcpbin
MCP testing server built with FastMCP. Provides tools, resources, and prompts for testing MCP client implementations.
Installation
uv sync
Usage
Claude Code
Add the hosted mcpbin server to Claude Code:
claude mcp add --scope local --transport http mcpbin https://mcpbin.fastmcp.app/mcp
Local Development
make dev
Tools
Echo & Context
echo- Echo back input dataecho_context- Return request context info
Errors
status_error- Raise error with message/coderandom_error- Random success/failure
Timing
delay- Wait for specified duration
Data
generate_uuid- Generate UUID v4timestamp- Get current timestampbase64_encode/base64_decode- Base64 encoding
Sampling
sample_echo- Basic LLM samplingsample_with_system- Sampling with system promptsample_with_params- Sampling with temperature/max_tokenssample_multi_turn- Multi-turn conversation
Elicitations
elicit_string- Request string inputelicit_number- Request integer inputelicit_boolean- Request boolean inputelicit_choice- Request choice from optionselicit_structured- Request structured data
Resources
resource://echo/{message}- Echo messageresource://bytes/{size}- Random bytesresource://json/sample- Sample JSON data
Development
make test # Run tests
make lint # Check code style
make format # Format code