mockfly logo

Mockfly MCP Client

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

Features

Installation

Globally via npm

npm install -g mockfly-mcp-client

Configuration

There are two types of API keys, and the available tools depend on which ones you configure. You can set one or both, but at least one is required:

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_PROJECT_API_KEY",
        "MOCKFLY_ACCOUNT_API_KEY": "YOUR_ACCOUNT_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_PROJECT_API_KEY",
        "MOCKFLY_ACCOUNT_API_KEY": "YOUR_ACCOUNT_API_KEY"
      }
    }
  }
}

Available Tools

Project tools (require MOCKFLY_ACCOUNT_API_KEY)

Endpoint and response tools (require MOCKFLY_API_KEY)