Skip to content

Home

MockLoop Logo

A Model Context Protocol server for generating and managing mock API servers with AI-powered testing capabilities.

Get Started →

What is MockLoop MCP?

The world's first AI-native API testing platform powered by the Model Context Protocol. Revolutionary AI-driven scenario generation, automated test execution, and intelligent analysis capabilities. MockLoop MCP is a Model Context Protocol server that generates mock API servers from OpenAPI specifications and provides AI-powered testing tools. It includes 50 MCP capabilities for automated testing, scenario management, and audit logging.

Core Components

MCP Tools (16)

  • Mock server generation and management
  • Test scenario validation and deployment
  • Test execution and monitoring
  • Result analysis and reporting

MCP Prompts (5)

  • OpenAPI analysis for testing strategies
  • Test scenario configuration generation
  • Load testing optimization
  • Error scenario generation
  • Security test generation

MCP Resources (15)

  • Pre-built scenario packs for common testing patterns
  • Error simulation scenarios
  • Load testing configurations
  • Security testing suites

MCP Context Management (10)

  • Test session state management
  • Workflow orchestration
  • Cross-session data sharing
  • State snapshots and rollback

Audit Logging (4)

  • Request/response logging
  • Compliance tracking
  • Performance metrics
  • Security event monitoring

Key Features

  • Mock Server Generation: Creates mock servers from OpenAPI v2/v3 specifications
  • Dual-Port Architecture: Separate ports for business API (8000) and admin UI (8001)
  • Request Logging: SQLite-based logging with query capabilities
  • Docker Support: Containerized deployment with Docker Compose
  • AI Integration: Compatible with LangGraph, CrewAI, and LangChain

Quick Start

  1. Install

    pip install mockloop-mcp
    

  2. Run MCP Server

    mockloop-mcp
    

  3. Generate Mock Server Use the generate_mock_api tool with your OpenAPI specification

  4. Access Mock Server Business API: http://localhost:8000 Admin UI: http://localhost:8001

Add to Claude Code

Simply run claude mcp add mockloop-mcp mockloop-mcp --stdio

Or if using virtual environment:

claude mcp add mockloop-mcp /path/to/venv/bin/mockloop_mcp --stdio

Documentation

Architecture

Dual-Port Design

  • Business Port (8000): Serves mock API endpoints
  • Admin Port (8001): Management interface and logging
  • No Path Conflicts: Eliminates /admin endpoint conflicts

Database Schema

  • Request Logs: Complete request/response audit trail
  • Test Sessions: Stateful test execution tracking
  • Compliance Events: Regulatory compliance monitoring
  • Performance Metrics: Response time and throughput data

Community and Support


Continue to the Installation Guide to set up MockLoop MCP.