mockfly logo

Mockfly MCP Client

An MCP (Model Context Protocol) server for managing your Mockfly mock endpoints and responses.

Features

  • List all mock endpoints
  • Get endpoint details
  • Create and edit endpoints
  • Manage mock responses (create, edit, duplicate, delete)

Installation

Globally via npm

npm install -g mockfly-mcp-client

Configuration

To use this MCP server, you need a Mockfly API Key. You can find it in your project settings at https://app.mockfly.dev.

Antigravity Configuration (Google DeepMind)

To use this MCP server with Antigravity, add the following to your MCP configuration in the settings:

{
  "mcpServers": {
    "mockfly": {
      "command": "npx",
      "args": ["-y", "mockfly-mcp-client"],
      "env": {
        "MOCKFLY_API_KEY": "YOUR_MOCKFLY_API_KEY"
      }
    }
  }
}

Claude Desktop Configuration

Add the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "mockfly": {
      "command": "npx",
      "args": ["-y", "mockfly-mcp-client"],
      "env": {
        "MOCKFLY_API_KEY": "YOUR_MOCKFLY_API_KEY"
      }
    }
  }
}

Available Tools

  • get_endpoints: List all mock endpoints in the project.
  • get_endpoint_detail: Get detailed information about a specific mock endpoint.
  • create_endpoint: Create a new mock endpoint.
  • edit_endpoint: Patch an existing mock endpoint.
  • delete_endpoint: Delete an existing mock endpoint.
  • create_response: Add a mock response to an endpoint.
  • edit_response: Edit an existing mock response.
  • duplicate_response: Duplicate an existing mock response.
  • delete_response: Remove a mock response from an endpoint.