An AI-native API testing platform built on Model Context Protocol (MCP) that generates mock servers from OpenAPI v2/v3 specs. Supports Mock/Proxy/Hybrid modes with 50 MCP capabilities, integrates with LangGraph/CrewAI/LangChain, and provides enterprise-grade audit logging and performance analytics.
MockLoop MCP#
Overview#
MockLoop MCP is an AI-native API testing platform built on Model Context Protocol (MCP). It automatically generates fully functional mock servers from OpenAPI v2/v3 specs and deeply integrates with AI tools via MCP for intelligent API testing workflows.
Core Capabilities#
MCP Protocol Features (50 Items)#
- 16 MCP Tools: Mock server generation & management, test scenario validation & deployment, test execution & monitoring, result analysis & reporting
- 5 MCP Prompts: AI-driven scenario generation (test strategy analysis, load optimization, error simulation, security testing)
- 15 MCP Resources: Pre-built scenario packs (load testing, error simulation, security testing, performance benchmarks)
- 10 Context Management: Stateful test workflow management
- 4 Audit Logging: Audit logs and compliance tracking
Three Operation Modes#
- Mock Mode: All requests handled by mock responses
- Proxy Mode: All requests forwarded to real API endpoints
- Hybrid Mode: Rule-based intelligent routing
Dual-Port Architecture#
- Mocked API Port (default 8000): Business API endpoints
- Admin UI Port (default 8001): Management interface and logs
Quick Start#
Installation#
pip install mockloop-mcp
MCP Client Configuration (Claude Desktop)#
{
"mcpServers": {
"mockloop": {
"command": "mockloop-mcp",
"args": []
}
}
}
Generate Mock Server#
# Using generate_mock_api tool
{
"spec_url_or_path": "https://api.example.com/openapi.json",
"output_dir_name": "my_api_mock"
}
Enterprise Features#
- Complete audit logging (GDPR, SOX, HIPAA compliant)
- Performance metrics (P50/P95/P99 response times)
- Security monitoring and threat detection
- SQLite/PostgreSQL support
AI Framework Integration#
- LangGraph: State graph workflow integration
- CrewAI: Multi-agent test orchestration
- LangChain: Tool and agent executor integration