• DATA
  • PROFILES
  • SCHEMA
  • HUMAN

How to generate mock API responses with your AI

Connect Faker to your AI client to turn natural language descriptions into structured JSON. You'll get valid data for testing without manual entry.

Ask AI about this page

Short answer

How can I use my AI to make mock API data?

Your AI uses the Faker MCP to pull specific data types like names, addresses, or custom objects based on your requirements. You'll get ready-to-use JSON structures for your test suites. Here is what you get.

The outcomes

What you get from the AI

The AI handles the data generation so you can focus on the integration logic.

DATA

Structured JSON objects

The AI builds valid JSON payloads that match your schema. You can use these immediately in Postman or your test scripts.

PROFILES

Realistic user data

Get full sets of person data and physical addresses. This makes your frontend testing feel much more authentic.

SCHEMA

Custom data structures

Define your own unique object shapes. The AI fills them with realistic values that follow your specific rules.

HUMAN

Manual schema review

You still need to check the final JSON against your production requirements. The AI provides the content, but you verify the structure.

The workflow

What your AI does when you ask for data.

The AI translates your request into specific tool calls to gather the right information.

  1. Define the shape

    The AI analyzes your prompt to determine what kind of JSON structure you need for your endpoint.

    get_custom
  2. Gather identity data

    It pulls realistic names and personal details to populate the user fields in your mock response.

    get_persons
  3. Add location details

    The AI fetches valid address strings to ensure your testing covers geographic data requirements.

    get_addresses
  4. Assemble the payload

    The AI combines all the gathered data into a single, clean JSON object ready for your API.

    get_custom

Try it

Copy these to start.

Use these prompts to get the AI moving immediately.

Starting points

Swap out the bracketed text for your specific needs, like changing the number of users or the specific fields.

Faker API Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_1d6UeDZa3GxcUtj29pBEYYPnwezDodnKDwlrsATh/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Faker API capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "faker-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_1d6UeDZa3GxcUtj29pBEYYPnwezDodnKDwlrsATh/mcp"
    }
  }
}
Copy into chat04
  • Generate a JSON array of 5 users with names, emails, and physical addresses.

  • Create a mock response for a POST /register endpoint including a person object.

  • Build a list of 10 unique addresses for testing a shipping calculator.

  • Make a custom JSON object for a product catalog with names, prices, and IDs.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Faker once, then ask.

Just link the MCP to your client. Your credentials stay encrypted, and you can start generating data right away.

Connect Faker to your AI

FAQ

How this task behaves

  • 01

    Can the AI create data for any field I want?

    Yes, as long as you describe the field, the AI uses the custom tool to build the structure.

  • 02

    Will the AI save these JSON files to my hard drive?

    No, the AI generates the text in your chat window. You'll need to copy and save the files yourself.

  • 03

    Can it generate real, private person data?

    No. The AI only generates fake, synthetic data for testing purposes.

  • 04

    Does it support complex nested objects?

    Yes, you can ask for nested structures and the AI will build them using the available tools.

  • 05

    Can the AI modify my existing database?

    No, this MCP only reads and generates data. It cannot write to or change your external databases.

  • More questions about Faker? See everything the Faker Connector can do

Connect Faker API to Claude, Cursor, ChatGPT & more