Mockfly MCP Client
An MCP (Model Context Protocol) server for managing your Mockfly projects, mock endpoints and responses.
Features
- Create, import, update and delete projects
- List all mock endpoints
- Get endpoint details
- Create and edit endpoints
- Manage mock responses (create, edit, duplicate, delete)
- Manage conditional rules for responses
Installation
Globally via npm
npm install -g mockfly-mcp-clientConfiguration
The server needs a single environment variable, MOCKFLY_API_KEY, with your account API key (mf_…). It gives access to every project you are a member of. Create yours at app.mockfly.dev/api-keys. The full key is only shown once at creation time.
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_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_ACCOUNT_API_KEY"
}
}
}
}Available Tools
Project tools
list_projects: List the projects you have access to, with their ids.create_project: Create a new project.import_project: Import a whole project (endpoints and responses included) in a single call.update_project: Update the name and/or tags of a project.delete_project: Delete a project.
Endpoint and response tools
get_endpoints: List all mock endpoints of a project, given its id.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.modify_rules: Replace the conditional rules of a mock response.